aspose file tools*
The moose likes Java in General and the fly likes Behind Firewall Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Behind Firewall" Watch "Behind Firewall" New topic
Author

Behind Firewall

Fardeen Siddiqui
Greenhorn

Joined: Dec 08, 2000
Posts: 21
Hi all,
I have made an application which uses the url class to fetch data from a particular url. This works fine if the user has direct connection to net, but it does not work behind firewalls.
Can someone tell me how can it be made to work behind firewalls.
Thanks
Fardeen
Prasanna KumarBP
Greenhorn

Joined: Jul 25, 2001
Posts: 21
since yu r using url connection there (i think http) should not be any problem with firewall. i think problem may be with proxy. if ur connected thro' proxy set proxy properties.
hope this helps
-regards
prasanna
Fardeen Siddiqui
Greenhorn

Joined: Dec 08, 2000
Posts: 21
How do i configure proxy settings, in the application, is there a way in which the application can automatically picks up the proxy settings of the user.
Prasanna KumarBP
Greenhorn

Joined: Jul 25, 2001
Posts: 21
enjoy this code
Properties propSystem = System.getProperties();
propSystem.put("proxySet", "true");
propSystem.put("proxyHost", "192.168.10.25"); // proxy ip
propSystem.put("proxyPort", "80"); // proxy port
hope this helps
-regards
prasanna
Fardeen Siddiqui
Greenhorn

Joined: Dec 08, 2000
Posts: 21
Hi prasanna,
thank your for your help.
I wanted to know how can i pick the proxyip automatically without having to enter it, coz the application will be running at the clients machine.
Prasanna KumarBP
Greenhorn

Joined: Jul 25, 2001
Posts: 21
hi
i don't think it is possible. for example chat applications like yahoo, icq ,... when yu specify 'using proxy' they will ask for proxy ip and port.
-prasanna
Fardeen Siddiqui
Greenhorn

Joined: Dec 08, 2000
Posts: 21
Hi,
thank you very much for the help.
Maki Jav
Ranch Hand

Joined: May 09, 2002
Posts: 437
Hi,

Is it enough to add the above code in you application ie putting values in System properties besides your connection code etc Or do we need to do something further more?


Maki Jav


Help gets you when you need it!
Maki Jav
Ranch Hand

Joined: May 09, 2002
Posts: 437
Hi,

Can anyone help me out with this?


Thanx in advance!


Maki Jav
Maki Jav
Ranch Hand

Joined: May 09, 2002
Posts: 437
I am waiting guys!!!


Maki Jav
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Behind Firewall