Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
platform
active.directory
adsi
adsi.iis-admin
base
com_ole
complus_mts
component_svcs
database
directx
gdi
graphics_mm
internet.client
internet.server
internet.server.isapi-dev
localization
mapi
messaging
msi
mslayerforunicode
multimedia
networking
networking.ipv6
sdk_install
security
shell
telephony.tapi_2
telephony.tapi_3
telephony.tsp
telephony.wte
tools
ui
ui_shell
win_base_svcs
win16
  
 
date: Sun, 19 Aug 2007 14:11:14 +0200,    group: microsoft.public.platformsdk.networking        back       


HELP Me:how to connect using specific IP address?   
Hi everyone I don't know if I am posting this to the right newsgroup but it
is the closest I found, in case you think you can advice me to another 
newsgroup please feel free to
do so. I am so desperate to get my problem solved.

The issue is related to sockets and networking this is my problem

short version:
I need to connect to an application using a specific IP, i.e. the server I 
will connect to will see that specific IP address
how can I do that in .NET any help please.
----------------------------------------

Detailed version:
I have to build two applications(GenericCustomers.exe and
PremiumCustomers.exe) they will run on the same server
both applications will connect to one server (MainBase) across the Internet
using the same port number 1323
we have two external IP addresses i.e.(Internet IP address) and pointing by
the router to the my server where my applications are running
I need GenericCustomers.exe when connecting the MainBase should use one
external IP address while PremiumCustomers.exe should connect using the
other external IP address.

The MainBase server recognizes applications by their external IP address
which have to be registered in it's database

I can not run each of them on a separate server neither I can use different
port number (otherwise it can be solved by the router)
I am using C# and visual Studio 2005

What I see is that the application when attempts to connect should
initialize the socket with the IP address that I want to start the
connection with
I can not see this as impossible (think of the router applications that do
all the NAT)
but I did not see anything that help in the socket class nor on the Connect
method..
----------------------------------------

guys anyone have encountered such need or can solve this .. please write
back
date: Sun, 19 Aug 2007 14:11:14 +0200   author:   Abdulla Herzallah

Re: HELP Me:how to connect using specific IP address?   
"Abdulla Herzallah"  wrote in message 
news:unxXKol4HHA.5740@TK2MSFTNGP04.phx.gbl...
> Hi everyone I don't know if I am posting this to the right newsgroup but 
> it
> is the closest I found, in case you think you can advice me to another 
> newsgroup please feel free to
> do so. I am so desperate to get my problem solved.
>
> The issue is related to sockets and networking this is my problem
>
> short version:
> I need to connect to an application using a specific IP, i.e. the server I 
> will connect to will see that specific IP address
> how can I do that in .NET any help please.
> ----------------------------------------
>
> Detailed version:
> I have to build two applications(GenericCustomers.exe and
> PremiumCustomers.exe) they will run on the same server
> both applications will connect to one server (MainBase) across the 
> Internet
> using the same port number 1323
> we have two external IP addresses i.e.(Internet IP address) and pointing 
> by
> the router to the my server where my applications are running
> I need GenericCustomers.exe when connecting the MainBase should use one
> external IP address while PremiumCustomers.exe should connect using the
> other external IP address.
>
> The MainBase server recognizes applications by their external IP address
> which have to be registered in it's database
>
> I can not run each of them on a separate server neither I can use 
> different
> port number (otherwise it can be solved by the router)
> I am using C# and visual Studio 2005
>
> What I see is that the application when attempts to connect should
> initialize the socket with the IP address that I want to start the
> connection with
> I can not see this as impossible (think of the router applications that do
> all the NAT)
> but I did not see anything that help in the socket class nor on the 
> Connect
> method..

Call "Bind" with the local IP address you want to use.

> ----------------------------------------
>
> guys anyone have encountered such need or can solve this .. please write
> back
>
>
date: Mon, 10 Sep 2007 20:13:14 -0500   author:   Ben Voigt [C++ MVP] am

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us