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
"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 > >