This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Servlets and the fly likes Unable to connect a remote server from a servlet using HttpsUrlConnection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "Unable to connect a remote server from a servlet using HttpsUrlConnection" Watch "Unable to connect a remote server from a servlet using HttpsUrlConnection" New topic
Author

Unable to connect a remote server from a servlet using HttpsUrlConnection

Mohan Panigrahi
Ranch Hand

Joined: Sep 28, 2001
Posts: 142
Hi,
I am able to connect to a remote server using HttpsUrlConnection, from a standalone java program. But when I try to do so from within a servlet, the connection times out.
Any pointer on why this can happen would be appreciated.
Note : The server on which servlet is deployed and the server to which it is establishing connection are on different machines.
Thank
 
 
subject: Unable to connect a remote server from a servlet using HttpsUrlConnection