GeeCON Prague 2014*
The moose likes Java in General and the fly likes java.net.ConnectException: Connection refused: connect Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Java in General
Bookmark "java.net.ConnectException: Connection refused: connect" Watch "java.net.ConnectException: Connection refused: connect" New topic
Author

java.net.ConnectException: Connection refused: connect

Andrew Lit
Ranch Hand

Joined: Jul 01, 2002
Posts: 135
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

Joined: Jan 30, 2002
Posts: 3451
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?


Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius - and a lot of courage - to move in the opposite direction. - Ernst F. Schumacher
 
GeeCON Prague 2014
 
subject: java.net.ConnectException: Connection refused: connect