Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Behind Firewall

 
Fardeen Siddiqui
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
thank you very much for the help.
 
Maki Jav
Ranch Hand
Posts: 445
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Maki Jav
Ranch Hand
Posts: 445
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Can anyone help me out with this?


Thanx in advance!


Maki Jav
 
Maki Jav
Ranch Hand
Posts: 445
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am waiting guys!!!


Maki Jav
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic