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 Applets and the fly likes Connection timed out when server is present in a far off place 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 » Applets
Bookmark "Connection timed out when server is present in a far off place" Watch "Connection timed out when server is present in a far off place" New topic
Author

Connection timed out when server is present in a far off place

Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9956
    
163

We have a web application on JBoss-3.2.3. It makes use of Applets. To paint the applet, a request is sent to a server using a HttpURLConnection. Evertyhing works fine when the browser(client) and the server are on the same network. However, if the client(browser) is in Australia and the server in India(i.e. long distance between server and client), then the Applet crashes with a Connection timed out exception. Any solution for this?
The code looks something like:



[My Blog] [JavaRanch Journal]
Dave Robbins
Ranch Hand

Joined: Sep 16, 2003
Posts: 131
checkout setReadTimeout
it's in the parent class URLConnection

Dave
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Connection timed out when server is present in a far off place
 
Similar Threads
Read XML output from a URL
HttpURLConection and ClassCastException
Connection timed out.
Getting a requested URL page back to a Server from the Internet
Http Post