File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Sockets and Internet Protocols and the fly likes ConnectException Connection Refused Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply Bookmark "ConnectException Connection Refused" Watch "ConnectException Connection Refused" New topic
Author

ConnectException Connection Refused

Sanjaya Sarangi
Greenhorn

Joined: Dec 21, 2003
Posts: 1
Hi Javaguys
I have a typical problem. I am trying to connect to my server from the client with some serialized object communication. When i try to Write the object to the Servlet i am getting exception like this...
java.net.ConnectException: Connection refused: connect
But from some client machines (Different network), the code is working fine.
i am pastin the portion of code .
I will be greatful if some one can help me out.

Once again I must tell you, from maximum Netwrok or machines the code isrunning fine. I am getting the error from a partcular Netwrok. Is it because of some firewall protection???
Thanks in advance
Robert Z
Greenhorn

Joined: Jan 18, 2001
Posts: 5
what's your problem
the connection refused tells you that your socket-client cannot connect to the server either it is not running or you can't reach it..
hope this helps.
robert
Rishi Tyagi
Ranch Hand

Joined: Feb 14, 2002
Posts: 100
There may be some other reasons also but out of them one is, the machine ip address from where u are trying to connect is not authorise to access the link.
Rishi
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: ConnectException Connection Refused
 
Similar Threads
Post to Servlet from Applet doesn't work
EOF Exception while reading from applet
applet to servlet
Servlet could not send Objects to an Applet
Passing objects between a servlet and an applet