wood burning stoves 2.0*
The moose likes Sockets and Internet Protocols and the fly likes Problem With Proxy Server Access Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Problem With Proxy Server Access" Watch "Problem With Proxy Server Access" New topic
Author

Problem With Proxy Server Access

Jojo Paderes
Greenhorn

Joined: Sep 29, 2002
Posts: 3
I'm looking for a good reference source or some advice on how to configure stand-alone Java applications for Proxy Server access to a https site. Currently I'm having some difficulties setting up the Java https system properties for proxy server authentication (username and password). Here's a sample Java command line I'm using to set the system properties for proxy server access:
java -DproxySet=true -Dhttps.proxyHost=192.168.0.1 -Dhttps.proxyPort=3128 HelloProxyServer
Any recommendations or tips? Thanks in advance!


JOJO PADERES<p>visit:<br />Pinoy Java Users Group -<a href="http://www.pinoyjug.ph" target="_blank" rel="nofollow">http://www.pinoyjug.ph</a><br />IIEE-MIT Chapter - <a href="http://www.iiee-mit.8m.com" target="_blank" rel="nofollow">http://www.iiee-mit.8m.com</a>
Raghav Mathur
Ranch Hand

Joined: Jan 12, 2001
Posts: 641
not sure if i understood your question well . What i can tell you is that it is possible to make your java application to work as a proxy server . Is that what you want to know ?


Raghav.
Jojo Paderes
Greenhorn

Joined: Sep 29, 2002
Posts: 3
Thanks for replying Mr. Raghav Mathur
Currently I'm configuring our Java client application to enable it to connect to a https web server via a proxy server. So far I was able to configure the client application by using this command line when running the said application:
c:\java -DproxySet=true -Dhttps.proxyHost=192.168.0.1 -Dhttps.proxyPort=3128 MySSLClientApp
The client app works fine when it connects to the web server assuming that the proxy server's security configurations are default (I'm using WinRoute in Windows 2000). However, other users cannot connect to the web server on certain proxy servers types and settings (for example applying security policies on internet users). The following are the errors users have encountered so far:
1. java.io.IOException: Unable to tunnel through 165.28.97.89:80. Proxy returns "HTTP/1.0 407 Proxy Authentication Required"
2. java.net.ConnectException: Operation timed out: connect
Is there something that I have to implement in our client app so that it can pass thru on some proxy server to connect to the iConnect web server, or the adjustment should be done at the proxy server end.
Thanks!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem With Proxy Server Access