Ip in Local Network

rull

Member
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 cannt reply because I know only Clients local IP address .
So how i can resolve this problem?
Rull
 
The client is behind a proxy, but the server is not. That correct?

Is the proxy just proxying web access or does it do NAT / SOCKS proxy as well?
 
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.
 
Im trying to create Client and Server application myself.
I know only Socket based method of data exchange in a network.
I dont know any other method.
If it is possible please write me how to work with any other protocol which can resolve this problem
 
Its not going to be easy using raw sockets unless the proxy will support port forwarding.
It may be worth looking at web services as an alternate method.
 
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.
 
In that case you would need to speak to him about opening the relevant ports to allow you application to comunicate through the proxy.
 
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 by a moderator:
Back
Top