我是网络和服务器方面的新手,我正尝试在远程主机的 8000 端口设置一个简单的服务器,使用 python -m http.server 8000 和 telnet 从我的本地计算机开始
我已经为 tcp 流量打开了端口 8000,并且我获得了 ufw status 和 netstat -ntlp | grep LISTEN 的以下输出
Status: active
To Action From
-- ------ ----
8000 ALLOW Anywhere
22/tcp ALLOW Anywhere
80/tcp ALLOW Anywhere
443/tcp ALLOW Anywhere
8000/tcp ALLOW Anywhere
1000/tcp ALLOW Anywhere
8000 (v6) ALLOW Anywhere (v6)
22/tcp (v6) ALLOW Anywhere (v6)
80/tcp (v6) ALLOW Anywhere (v6)
443/tcp (v6) ALLOW Anywhere (v6)
8000/tcp (v6) ALLOW Anywhere (v6)
1000/tcp (v6) ALLOW Anywhere (v6)
netstat -ntlp |监听
tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:5432 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:38463 0.0.0.0:* LISTEN 1233793/node
tcp 0 0 0.0.0.0:8000 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:33899 0.0.0.0:* LISTEN 1233876/node
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN -
tcp6 0 0 :::22 :::* LISTEN -
tcp6 0 0 ::1:631 :::* LISTEN -
tcp6 0 0 :::5432 :::* LISTEN -
tcp6 0 0 :::9445 :::* LISTEN -
tcp6 0 0 :::9101 :::* LISTEN -
tcp6 0 0 :::9103 :::* LISTEN -
tcp6 0 0 :::80 :::* LISTEN -
但我仍然无法从本地计算机远程登录 IP。连接超时 有线索知道发生了什么吗?我没有使用 google cloud 或 aws