This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Connection timeout in URL connection" Watch "Connection timeout in URL connection" New topic

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" Connection timed out: connect" comming.

Please do the needful.

Rob Spoor

Joined: Oct 27, 2005
Posts: 19654

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

How To Ask Questions How To Answer Questions
I agree. Here's the link:
subject: Connection timeout in URL connection
Similar Threads
how to parse html webpage
how to open a web page and checks the http responce
Help Please- on design approach for data collection across n/w
problem in connection when used proxy
cannot able to reterive value comes as null