java.net.ConnectException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

First of all, check if your firewall is not blocking your connection. If it's not, you might need to explicitly set advertised.host.name to "advertised.host.name = yourIpAddress", this forces the hosts returned to be the resolvable IP address of your VM.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • Exception on reconnect attempt - smartfoxserver.com
    via by Unknown author,
    • java.net.ConnectException: Connection refused: connect at sun.nio.ch.Net.connect(Native Method) at sun.nio.ch.SocketChannelImpl.connect(Unknown Source) at sun.nio.ch.SocketAdaptor.connect(Unknown Source) at sun.nio.ch.SocketAdaptor.connect(Unknown Source) at org.xsocket.stream.io.impl.IoProvider.openSocket(IoProvider.java:356) at org.xsocket.stream.io.impl.IoProvider.createClientIoHandler(IoProvider.java:219) at org.xsocket.stream.Connection.<init>(Connection.java:162) at org.xsocket.stream.NonBlockingConnection.<init>(NonBlockingConnection.java:396) at org.xsocket.stream.NonBlockingConnection.<init>(NonBlockingConnection.java:209) at it.gotoandplay.utils.net.xmlsocket.XMLSocket.connect(XMLSocket.java:134) at it.gotoandplay.smartfoxclient.SmartFoxClient.connect(SmartFoxClient.java:1237) at com.nhm.dlltest.SocketConnector.handleEvent(SocketConnector.java:301) at it.gotoandplay.smartfoxclient.SFSEventDispatcher.dispatchEvent(SFSEventDispatcher.java:96) at it.gotoandplay.smartfoxclient.SmartFoxClient.dispatchConnectionError(SmartFoxClient.java:4550) at it.gotoandplay.smartfoxclient.SmartFoxClient.handleEvent(SmartFoxClient.java:4431) at it.gotoandplay.smartfoxclient.SFSEventDispatcher.dispatchEvent(SFSEventDispatcher.java:96) at it.gotoandplay.smartfoxclient.http.HttpConnection.send(HttpConnection.java:165) at it.gotoandplay.smartfoxclient.http.HttpConnection.connect(HttpConnection.java:68) at it.gotoandplay.smartfoxclient.SmartFoxClient.tryBlueBoxConnection(SmartFoxClient.java:4498) at it.gotoandplay.smartfoxclient.SmartFoxClient.onError(SmartFoxClient.java:4471) at it.gotoandplay.utils.net.xmlsocket.XMLSocket.fireErrorEvent(XMLSocket.java:206) at it.gotoandplay.utils.net.xmlsocket.XMLSocket.connect(XMLSocket.java:140) at it.gotoandplay.smartfoxclient.SmartFoxClient.connect(SmartFoxClient.java:1237) at com.nhm.dlltest.SocketConnector.handleEvent(SocketConnector.java:301) at it.gotoandplay.smartfoxclient.SFSEventDispatcher.dispatchEvent(SFSEventDispatcher.java:96) at it.gotoandplay.smartfoxclient.SmartFoxClient.dispatchConnectionError(SmartFoxClient.java:4550) at it.gotoandplay.smartfoxclient.SmartFoxClient.handleEvent(SmartFoxClient.java:4431) at it.gotoandplay.smartfoxclient.SFSEventDispatcher.dispatchEvent(SFSEventDispatcher.java:96) at it.gotoandplay.smartfoxclient.http.HttpConnection.send(HttpConnection.java:165) at it.gotoandplay.smartfoxclient.http.HttpConnection.connect(HttpConnection.java:68) at it.gotoandplay.smartfoxclient.SmartFoxClient.tryBlueBoxConnection(SmartFoxClient.java:4498) at it.gotoandplay.smartfoxclient.SmartFoxClient.onError(SmartFoxClient.java:4471) at it.gotoandplay.utils.net.xmlsocket.XMLSocket.fireErrorEvent(XMLSocket.java:206) at it.gotoandplay.utils.net.xmlsocket.XMLSocket.connect(XMLSocket.java:140) at it.gotoandplay.smartfoxclient.SmartFoxClient.connect(SmartFoxClient.java:1237) at com.nhm.dlltest.SocketConnector.handleEvent(SocketConnector.java:301) at it.gotoandplay.smartfoxclient.SFSEventDispatcher.dispatchEvent(SFSEventDispatcher.java:96) at it.gotoandplay.smartfoxclient.SmartFoxClient.dispatchConnectionError(SmartFoxClient.java:4550) at it.gotoandplay.smartfoxclient.SmartFoxClient.handleEvent(SmartFoxClient.java:4431) at it.gotoandplay.smartfoxclient.SFSEventDispatcher.dispatchEvent(SFSEventDispatcher.java:96) at it.gotoandplay.smartfoxclient.http.HttpConnection.send(HttpConnection.java:165) at it.gotoandplay.smartfoxclient.http.HttpConnection.connect(HttpConnection.java:68) at it.gotoandplay.smartfoxclient.SmartFoxClient.tryBlueBoxConnection(SmartFoxClient.java:4498) at it.gotoandplay.smartfoxclient.SmartFoxClient.onError(SmartFoxClient.java:4471) at it.gotoandplay.utils.net.xmlsocket.XMLSocket.fireErrorEvent(XMLSocket.java:206) at it.gotoandplay.utils.net.xmlsocket.XMLSocket.connect(XMLSocket.java:140) at it.gotoandplay.smartfoxclient.SmartFoxClient.connect(SmartFoxClient.java:1237) at com.nhm.dlltest.SocketConnector.handleEvent(SocketConnector.java:301) at it.gotoandplay.smartfoxclient.SFSEventDispatcher.dispatchEvent(SFSEventDispatcher.java:96) at it.gotoandplay.smartfoxclient.SmartFoxClient.dispatchConnectionError(SmartFoxClient.java:4550) at it.gotoandplay.smartfoxclient.SmartFoxClient.handleEvent(SmartFoxClient.java:4431) at it.gotoandplay.smartfoxclient.SFSEventDispatcher.dispatchEvent(SFSEventDispatcher.java:96) at it.gotoandplay.smartfoxclient.http.HttpConnection.send(HttpConnection.java:165) at it.gotoandplay.smartfoxclient.http.HttpConnection.connect(HttpConnection.java:68) at it.gotoandplay.smartfoxclient.SmartFoxClient.tryBlueBoxConnection(SmartFoxClient.java:4498) at it.gotoandplay.smartfoxclient.SmartFoxClient.onError(SmartFoxClient.java:4471) at it.gotoandplay.utils.net.xmlsocket.XMLSocket.fireErrorEvent(XMLSocket.java:206) at it.gotoandplay.utils.net.xmlsocket.XMLSocket.connect(XMLSocket.java:140) at it.gotoandplay.smartfoxclient.SmartFoxClient.connect(SmartFoxClient.java:1237) at com.nhm.dlltest.SocketConnector.handleEvent(SocketConnector.java:301) at it.gotoandplay.smartfoxclient.SFSEventDispatcher.dispatchEvent(SFSEventDispatcher.java:96) at it.gotoandplay.smartfoxclient.SmartFoxClient.dispatchConnectionError(SmartFoxClient.java:4550) at it.gotoandplay.smartfoxclient.SmartFoxClient.handleEvent(SmartFoxClient.java:4431) at it.gotoandplay.smartfoxclient.SFSEventDispatcher.dispatchEvent(SFSEventDispatcher.java:96) at it.gotoandplay.smartfoxclient.http.HttpConnection.send(HttpConnection.java:165) at it.gotoandplay.smartfoxclient.http.HttpConnection.connect(HttpConnection.java:68) at it.gotoandplay.smartfoxclient.SmartFoxClient.tryBlueBoxConnection(SmartFoxClient.java:4498) at it.gotoandplay.smartfoxclient.SmartFoxClient.onError(SmartFoxClient.java:4471) at it.gotoandplay.utils.net.xmlsocket.XMLSocket.fireErrorEvent(XMLSocket.java:206) at it.gotoandplay.utils.net.xmlsocket.XMLSocket.connect(XMLSocket.java:140) at it.gotoandplay.smartfoxclient.SmartFoxClient.connect(SmartFoxClient.java:1237) at com.nhm.dlltest.SocketConnector.handleEvent(SocketConnector.java:337) at it.gotoandplay.smartfoxclient.SFSEventDispatcher.dispatchEvent(SFSEventDispatcher.java:96) at it.gotoandplay.smartfoxclient.SmartFoxClient.onClose(SmartFoxClient.java:4465) at it.gotoandplay.utils.net.xmlsocket.XMLSocket.fireDisconnectEvent(XMLSocket.java:196) at it.gotoandplay.utils.net.xmlsocket.XMLSocketClientHandler.onDisconnect(XMLSocketClientHandler.java:36) at org.xsocket.stream.NonBlockingConnection.onDisconnectEvent(NonBlockingConnection.java:856) at org.xsocket.stream.Connection$HandlerCallback.onDisconnect(Connection.java:1589) at org.xsocket.stream.io.impl.IoMultithreadedHandler$IOEventHandler$3.run(IoMultithreadedHandler.java:181) at org.xsocket.stream.io.impl.IoMultithreadedHandler$TaskQueueProcessor.processTask(IoMultithreadedHandler.java:277) at org.xsocket.stream.io.impl.IoMultithreadedHandler$TaskQueueProcessor.run(IoMultithreadedHandler.java:265) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Vincent Ostermann
    2 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    3 more bugmates