Estou recebendo este erro no meu aplicativo:
Call From master/192.168.X.X to localhost:11111 failed on connection exception: java.net.ConnectException: Connection refused
E de fato ssh falha:
[user@master API_test]$ ssh localhost -p 11111
ssh: connect to host localhost port 11111: Connection refused
Então eu abri no firewall:
[user@master test]$ sudo iptables -L
.......
ACCEPT tcp -- anywhere anywhere tcp dpt:11111 ctstate NEW
Mas ainda assim o nmap não mostra essa porta como aberta:
[user@master API_test]$ nmap master
Starting Nmap 6.40 ( http://nmap.org ) at 2018-01-19 06:00 PST
Nmap scan report for master (192.168.X.X)
Host is up (0.00049s latency).
Not shown: 998 closed ports
PORT STATE SERVICE
22/tcp open ssh
111/tcp open rpcbind
Nmap done: 1 IP address (1 host up) scanned in 0.06 seconds
Como posso consertar isso?
netstat -na | grep 11111
e editar sua pergunta para incluir a saída netstat?