java.net.ConnectException: Connection refused

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.

  • GitHub comment 2#254573249
    via GitHub by woz5999
    ,
  • GitHub comment 3#257031457
    via GitHub by shrabok-surge
    ,
  • GlassFish server error
    via Stack Overflow by user3396201
    ,
  • Kairos-Kafka Questions
    via GitHub by bbuffam
    ,
    • java.net.ConnectException: Connection refused at sun.nio.ch.Net.connect0(Native Method) at sun.nio.ch.Net.connect(Net.java:454) at sun.nio.ch.Net.connect(Net.java:446) at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:648) at com.santaba.agent.agentmonitor.PeerSocketChannel.<init>(PeerSocketChannel.java:44) at com.santaba.agent.agentmonitor.AgentStatus._checkPeerStatus(AgentStatus.java:140) at com.santaba.agent.agentmonitor.AgentStatus.checkAgent2(AgentStatus.java:99) at com.santaba.agent.agentmonitor.AgentStatus.checkAgentRunning(AgentStatus.java:504) at com.santaba.agent.watchdog.WatchdogMain.main(WatchdogMain.java:377) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.rzo.yajsw.app.WrapperJVMMain.executeMain(WrapperJVMMain.java:126) at org.rzo.yajsw.app.WrapperJVMMain.main(WrapperJVMMain.java:66)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    22 more bugmates