jQuery in Action, 3rd edition
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
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: 9189

Can you open the URL with a web browser?

[How To Ask Questions On JavaRanch]
I agree. Here's the link: http://aspose.com/file-tools
subject: Connection Timed out error
It's not a secret anymore!