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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 19541
    
  16

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
 
Don't get me started about those stupid light bulbs.
 
subject: Connection timed out.
 
Similar Threads
IPv6: Lookup error
Lookup issue with IPv6 address on Solaris
unable to connect Sybase using real ip
Getting Connection Timed Out error
Unable to install PMD plugin in Eclipse