rull Posted October 6, 2003 Posted October 6, 2003 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 Quote
Administrators PlausiblyDamp Posted October 6, 2003 Administrators Posted October 6, 2003 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? Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
rull Posted October 6, 2003 Author Posted October 6, 2003 Yes Server is behind the local network. But i don't know about NAT / SOCKS proxying Quote
Administrators PlausiblyDamp Posted October 6, 2003 Administrators Posted October 6, 2003 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. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
rull Posted October 6, 2003 Author Posted October 6, 2003 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 Quote
Administrators PlausiblyDamp Posted October 6, 2003 Administrators Posted October 6, 2003 It's 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. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
rull Posted October 7, 2003 Author Posted October 7, 2003 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 Quote
Administrators PlausiblyDamp Posted October 7, 2003 Administrators Posted October 7, 2003 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? Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
rull Posted October 7, 2003 Author Posted October 7, 2003 Proxy is managing by our sysadmin. But it configured in such way that I can play Preferance game from internet server. Quote
Administrators PlausiblyDamp Posted October 7, 2003 Administrators Posted October 7, 2003 In that case you would need to speak to him about opening the relevant ports to allow you application to comunicate through the proxy. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
rull Posted October 8, 2003 Author Posted October 8, 2003 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 http://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? Quote
Administrators PlausiblyDamp Posted October 8, 2003 Administrators Posted October 8, 2003 (edited) 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. Edited May 4, 2007 by PlausiblyDamp Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.