小编Mik*_*ont的帖子

无法从 Ubuntu 上的外部 IP 访问 Node.js

我敢肯定这是非常noobish,所以请原谅我。我正在尝试在我的 ubuntu 10.04 的端口 8080 上运行 node.js 服务器。

这是服务器上 iptables -L 的结果:

Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
Run Code Online (Sandbox Code Playgroud)

这是 nmap -p 8080 的结果(编辑了 ip 地址,因为一切都是或应该是完全开放的)

nmap 173.203.xxx.xxx -p 8080 -A

Starting Nmap 5.00 ( http://nmap.org ) at 2011-05-19 22:52 PDT
Interesting ports on xxx (173.203.xxx.xxx):
PORT     STATE  SERVICE    VERSION
8080/tcp closed http-proxy
Run Code Online (Sandbox Code Playgroud)

为什么 8080 被视为封闭的?添加这个没有帮助:

iptables -A OUTPUT -p …
Run Code Online (Sandbox Code Playgroud)

ubuntu iptables port node.js

21
推荐指数
2
解决办法
8万
查看次数

标签 统计

iptables ×1

node.js ×1

port ×1

ubuntu ×1