This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Sockets and Internet Protocols and the fly likes Connection timeout in URL connection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Connection timeout in URL connection" Watch "Connection timeout in URL connection" New topic
Author

Connection timeout in URL connection

jagrutkumar dalwadi
Ranch Hand

Joined: Mar 26, 2009
Posts: 83

I want to fire particular url through java. code is put here.



When i am using this code, "Exception in thread "main" java.net.ConnectException: Connection timed out: connect" comming.

Please do the needful.

Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 20077
    
  30

Can you open that site from a browser? If so, does the browser use a proxy?


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
 
Have you checked out Aspose?
 
subject: Connection timeout in URL connection
 
It's not a secret anymore!