<p>socket communication via proxy server
1 posts in topic
Flat View  Flat View

Posted By:   Anonymous
Posted On:   Thursday, October 3, 2002 12:03 AM

I want to do Socket Communication with the Server connected to the internet.

My PC is accesssing the Internet through Proxy server.so when i am trying the following code

Socket s = new Socket("Host",port) where host is the public Internet Address, it gives me Connect Exception stating that operation timed out.

so i want to know that how to enable proxy settings to access internet for socket to make connection

Re: <p>socket communication via proxy server

Posted By:   Jojo_Paderes  
Posted On:   Wednesday, October 9, 2002 12:44 AM

You have to set the system properties of Java for proxy server access. These properties are:

1. http.proxyHost - IP address of the proxy server

2. http.proxyPort - Listening port of proxy server

You can find useful reference for proxy server tunneling at JavaWorld.com


About | Sitemap | Contact