• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.net.ConnectException: Connection refused: connect

 
Andrew Lit
Ranch Hand
Posts: 135
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
i can't figure aout how to deal with this exception, which is being cought in this line :
Socket s = new Socket("localhost", 6564);
thank you in advance
 
Michael Morris
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Andrew Lit:
Hi,
i can't figure aout how to deal with this exception, which is being cought in this line :
Socket s = new Socket("localhost", 6564);
thank you in advance


Do you have a service running on port 6564?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic