EC2 TCP port Connection refused

0

Hi,
i have create a new instance (ID: i-0a9d6e25034d7c41a) and added a security group with a custom TCP port (7070) in inbound trafic.
nothing happens. The port is still blocked.
Im running UFW behind, and having allowed 7070 port too.

To Action From


.......
7070 ALLOW Anywhere
7070 (v6) ALLOW Anywhere (v6)

#######################
{ Error: listen EADDRNOTAVAIL {IP}:7070
at Server.setupListenHandle [as _listen2] (net.js:1269:19)
at listenInCluster (net.js:1334:12)
at doListen (net.js:1460:7)
at process._tickCallback (internal/process/next_tick.js:63:19)
at Function.Module.runMain (internal/modules/cjs/loader.js:744:11)
at startup (internal/bootstrap/node.js:285:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:739:3)
errno: 'EADDRNOTAVAIL',
code: 'EADDRNOTAVAIL',
syscall: 'listen',
address: '{IP}',
port: 7070 }

Thank you.

CASKY
posta 4 anni fa1187 visualizzazioni
1 Risposta
0

Hi,

Doing a quick test to the IP address of your instance on that port I can see that it is giving a connection refused.

[ec2-user ~]$ nc -vz 18.207.237.18 7070
nc: connect to 18.207.237.18 port 7070 (tcp) failed: Connection refused

There are two possible scenarios here, the application you are using is not listening on this port or your firewall is still refusing the connections.

You can see if your application is in fact running and listening on that port by running the following command.

 sudo netstat -tulpn
con risposta 4 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande