It depends upon the proxy. It may not be possible if the administrator of the proxy has taken steps to prevent it. Here is what I would do to write a general purpose application (on a Windows computer): Look in the registry, and see what the default browser is. Then look at the browser settings. The browser is going to be configured one of three ways: no proxy, SOCKS proxy, or HTTP proxy. If it is set for no proxy, you can connect directly (on the HTTP port if port blocking is in effect). If it is set for a SOCKS proxy, you will be able to get through -- read the settings for the SOCKS proxy from the browser settings, and use them to communicate using the SOCKS protocol. (The SOCKS protocol is very simple to implement -- do a web search.) If the browser is using an HTTP proxy, you will have to encapsulate your traffic in HTTP. However, this may not work -- HTTP proxies often check the traffic to make sure that it is valid HTTP. You should get a free proxy server that supports both SOCKS and HTTP (WinGate comes to mind) to help you develop this. Note that this strategy assumes that the browser is configured properly. Don't do this if you want the cooperation of network administrators. They generally frown upon people who use ports for other than their stated purpose. At 01:00 PM 4/28/00 +0800, you wrote: >I write a client/server program ,the client and server communicate with >winsocket,but if the client connect to internet through proxy ,the client >can not connect to the server.How can I do ? > >yhq >2000/4/27 > > - [To unsubscribe, send mail to [EMAIL PROTECTED] with "unsubscribe firewalls" in the body of the message.]
