Ip in Local Network

rull

Newcomer
Joined
Oct 6, 2003
Messages
7
Hello
I have a problem in connection between server and client using TCP/IP. Point is that i must use Ip adress to open connection but client is located in a local network which have proxy server. So Server cann't reply because I know only Client's local IP address .
So how i can resolve this problem?
Rull
 
Yes Server is behind the local network.
But i don't know about NAT / SOCKS proxying
 
What kind of server are you attempting to talk to?
The problem is that if the Proxy is required to access the internet you will only be able to use protocols it supports.
 
I'm trying to create Client and Server application myself.
I know only Socket based method of data exchange in a network.
I don't know any other method.
If it is possible please write me how to work with any other protocol which can resolve this problem
 
Maybe it is not easy but a many program support this (for example ICQ, different internet games) and i think that there is not very hard method to connect
 
Have you tried running ICQ from behind a firewall? Most games will require the firewall to have specific ports opened to allow this. IF the only connection to the internet is a Web Proxy ICQ, IRC, and just about every game will fail to connect.
Who installed / manages the proxy on the network?
 
Proxy is managing by our sysadmin. But it configured in such way that I can play Preferance game from internet server.
 
OK. Assume that we configured proxy and it have opened port. How I can Send message to client in local network. For example
we have server at www.server.com and there is one client in local network with ip 192.168.1.11 and the proxy adress is 77.66.44.55 . So can I send smth to this client?
 
If the client and server are both on the same network then then you should be able to communicate via sockets without any problems.
If the firewall supports NAT then it should work without any code changes.

If you are using HTTP requests search in the help for the WebProxy class - this will make things pretty easy.

If the proxy is either SOCKS 4 or SOCKS 5 then I suggest having a look at http://www.mentalis.org/soft/class.qpx?id=9 as they have a nice SOCKS class you can use.
 
Last edited:
Back
Top