java.rmi.ConnectException: Connection refused to host: <public IP>

Tejas Belur

I'm using Cisco Netflow Collector software and it was collecting netflow data as expected until server admin disabled iptables and security admin enabled firewall for the server. Now it is giving below exception.

The collector is running on internal/private server and Cisco NFC license is tied to public ip and hence hostname is set to public ip in /etc/hosts file

[2015-09-29 12:03:41 GMT+05:30] INFO com.cisco.nfc.cnsxml.CNSXMLMonitor - Starting CNS/XML Interface for NFC 6.0.0 [standard image, build 31]...
[2015-09-29 12:06:51 GMT+05:30] ERROR com.cisco.nfc.cnsxml.CNSXMLMonitor - Could not start CNS Event Service transport
java.rmi.ConnectException: Connection refused to host: <public IP>; nested exception is:
        java.net.ConnectException: Connection timed out
        at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:574)
        at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
        at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
        at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:306)
        at sun.rmi.registry.RegistryImpl_Stub.rebind(Unknown Source)
        at java.rmi.Naming.rebind(Naming.java:160)
        at com.cisco.nfc.cnsxml.CNSXMLMonitor.<init>(CNSXMLMonitor.java:163)
        at com.cisco.nfc.cnsxml.CNSXMLMonitor.main(CNSXMLMonitor.java:192)
Caused by: java.net.ConnectException: Connection timed out
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
        at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
        at java.net.Socket.connect(Socket.java:519)
        at java.net.Socket.connect(Socket.java:469)
        at java.net.Socket.<init>(Socket.java:366)
        at java.net.Socket.<init>(Socket.java:179)
        at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
        at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
        at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:569)
        ... 7 more

The sec admin has allowed ports 22 and 1099 but yet the above exception is thrown. Do i need to change configuration in server or in firewall?

Tejas Belur

This issue was resolved by using a new license from cisco generated using the private IP. Thanks Vishawanath and EJP for your help.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

java.net.ConnectException: Connection refused error when running Hive

From Dev

How to resolve java net ConnectException Connection refused connect even server is up

From Dev

Jetty 9.0.6 - java.net.ConnectException: Connection refused: connect

From Dev

Tomcat exception - java.net.ConnectException: Connection refused: connect

From Dev

com.jcraft.jsch.JSchException: java.net.ConnectException: Connection refused: connect

From Dev

java.rmi.ConnectException: Connection refused to host: 127.0.0.1

From Dev

Unable to open debugger port : java.net.ConnectException "Connection refused"

From Dev

ConnectException: Connection refused when run mapreduce in Hadoop

From Dev

java.net.ConnectException: Connection refused: connect: localhost

From Dev

java.net.ConnectException: Connection refused: connect for HTTPS connections

From Dev

java.net.ConnectException: Connection refused apache mysql

From Dev

Hadoop "failed on connection exception: java.net.ConnectException: Connection refused"

From Dev

Java RMI for remote ip (host)

From Dev

Zookeeper -Kafka: ConnectException - Connection refused

From Dev

Hadoop: java.net.ConnectException: Connection refused

From Dev

DefaultHttpClient call throws connection refused in the same tomcat with public ip

From Dev

Caused by: java.net.ConnectException: Connection refused: no further information

From Dev

RMI connection refused on localhost

From Dev

Java RMI: running RMI application over the Internet with public IP of router

From Dev

java.net.ConnectException: Connection refused TCP

From Dev

Public IP works but with DynDNS I get an ERR_CONNECTION_REFUSED

From Dev

java.net.ConnectException: Connection refused apache mysql

From Dev

java.net.ConnectException: Connection refused: connect,Launch canceled

From Dev

Java RMI client and remote server Connection Refused to localhost

From Dev

RMI: Connection refused to host - Editing /etc/hosts and setProperty() not working

From Dev

Hadoop: java.net.ConnectException: Connection refused

From Dev

java.net.ConnectException: Connection refused: connect

From Dev

Authentication error and java.net.ConnectException: Connection refused

From Dev

Spring boot inside docker container throws java.net.ConnectException: Connection refused (Connection refused)

Related Related

  1. 1

    java.net.ConnectException: Connection refused error when running Hive

  2. 2

    How to resolve java net ConnectException Connection refused connect even server is up

  3. 3

    Jetty 9.0.6 - java.net.ConnectException: Connection refused: connect

  4. 4

    Tomcat exception - java.net.ConnectException: Connection refused: connect

  5. 5

    com.jcraft.jsch.JSchException: java.net.ConnectException: Connection refused: connect

  6. 6

    java.rmi.ConnectException: Connection refused to host: 127.0.0.1

  7. 7

    Unable to open debugger port : java.net.ConnectException "Connection refused"

  8. 8

    ConnectException: Connection refused when run mapreduce in Hadoop

  9. 9

    java.net.ConnectException: Connection refused: connect: localhost

  10. 10

    java.net.ConnectException: Connection refused: connect for HTTPS connections

  11. 11

    java.net.ConnectException: Connection refused apache mysql

  12. 12

    Hadoop "failed on connection exception: java.net.ConnectException: Connection refused"

  13. 13

    Java RMI for remote ip (host)

  14. 14

    Zookeeper -Kafka: ConnectException - Connection refused

  15. 15

    Hadoop: java.net.ConnectException: Connection refused

  16. 16

    DefaultHttpClient call throws connection refused in the same tomcat with public ip

  17. 17

    Caused by: java.net.ConnectException: Connection refused: no further information

  18. 18

    RMI connection refused on localhost

  19. 19

    Java RMI: running RMI application over the Internet with public IP of router

  20. 20

    java.net.ConnectException: Connection refused TCP

  21. 21

    Public IP works but with DynDNS I get an ERR_CONNECTION_REFUSED

  22. 22

    java.net.ConnectException: Connection refused apache mysql

  23. 23

    java.net.ConnectException: Connection refused: connect,Launch canceled

  24. 24

    Java RMI client and remote server Connection Refused to localhost

  25. 25

    RMI: Connection refused to host - Editing /etc/hosts and setProperty() not working

  26. 26

    Hadoop: java.net.ConnectException: Connection refused

  27. 27

    java.net.ConnectException: Connection refused: connect

  28. 28

    Authentication error and java.net.ConnectException: Connection refused

  29. 29

    Spring boot inside docker container throws java.net.ConnectException: Connection refused (Connection refused)

HotTag

Archive