• Post Reply Bookmark Topic Watch Topic
  • New Topic

Connection refused  RSS feed

 
Tmmet Johnson
Ranch Hand
Posts: 56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am using socket.
The code was working fine.Suddenly,I getting the below error message.

Could anyone let me know when I would get this error?
Is it a firewall or dns issue?
Any ideas/suggestions would be greatly helpful for me.
Thanks in advance,

java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java(Compiled Code))
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:157)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:144)
at java.net.Socket.<init>(Socket.java(Compiled Code))
at java.net.Socket.<init>(Socket.java:121)
 
Joe Ess
Bartender
Posts: 9426
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Connection Refused" usually means that there is no process bound to the port you are trying to connect to. You say your code is "working fine". Does that mean that this is an ongoing process which suddenly stopped working or did you have it working on one system then try to put the client and server on different systems?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!