wood burning stoves 2.0*
The moose likes Sockets and Internet Protocols and the fly likes Connection Timed out error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Connection Timed out error" Watch "Connection Timed out error" New topic

Connection Timed out error

Felipe Walker
Ranch Hand

Joined: Sep 23, 2003
Posts: 41
I am trying to connect to a webserver and read a file. I am using a URLConnection and keep getting the error
java.net.ConnectException: Connection timed out:connect

any suggestions?

I am trying to connect to the file via vpn to my companys website on port 80
Joe Ess

Joined: Oct 29, 2001
Posts: 8935

Can you open the URL with a web browser?

"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
It is sorta covered in the JavaRanch Style Guide.
subject: Connection Timed out error