• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Connection timed out.

 
sarath chadrach
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,


I have a issue here,

i.e I'm able to connect to a particular URL from the browser(Ex.Internet Explorer) successfully.

But when I'm using HttpURLConnection to hit the same URL I'm getting the error as Connection timed out. The same code is successfully working in my local system but in the production system i'm getting the above error.

Please let me know what can be the issue for the same. Is there any firewall issue could be there.

Thanking you in advance.

Regards,
Sarath.
 
Rob Spoor
Sheriff
Pie
Posts: 20512
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch!

Are you using a proxy in your browser? If so, you must use the URL.openConnection method that takes a java.net.Proxy instance.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic