• Post Reply Bookmark Topic Watch Topic
  • New Topic

ConnectException Connection Refused

 
Sanjaya Sarangi
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!