• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Connection timeout in URL connection

 
jagrutkumar dalwadi
Ranch Hand
Posts: 83
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20493
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you open that site from a browser? If so, does the browser use a proxy?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic