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
已提问 4 年前1187 查看次数
1 回答
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
已回答 4 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则