aspose file tools*
The moose likes Sockets and Internet Protocols and the fly likes Connection timed out. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Connection timed out." Watch "Connection timed out." New topic
Author

Connection timed out.

sarath chadrach
Greenhorn

Joined: Feb 23, 2011
Posts: 5
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

Joined: Oct 27, 2005
Posts: 19672
    
  18

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.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Connection timed out.