我试图让其他计算机访问我的本地服务器,但我在本地尝试过,即使我自己也无法在本地访问它。
你应该知道的几件事:
通过http://172.26.141.106:5201/访问我的服务器
我可以通过以下两种方式访问我的服务器:
的结果 ifconfig | grep inet
inet addr:172.17.0.1 Bcast:0.0.0.0 Mask:255.255.0.0
inet addr:172.26.141.106 Bcast:172.26.141.255 Mask:255.255.255.0
inet6 addr: fe80::f767:cd56:9641:d3a9/64 Scope:Link
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
Run Code Online (Sandbox Code Playgroud)
的输出cat /etc/hosts:
127.0.0.1 localhost.localdomain localhost
127.0.0.1 hearen.pc
127.0.0.1 hearen-OptiPlex-7050
127.0.0.1 staging
127.0.0.1 arthas
172.26.141.106 localhost hearen.pc
Run Code Online (Sandbox Code Playgroud)
$ sudo ufw disable
Firewall stopped and disabled on system startup
$ sudo ufw status
Status: inactive
Run Code Online (Sandbox Code Playgroud)
有什么办法让我错过了吗?我想要的只是让其他人通过http://172.26.141.106:5201/访问我的服务器
任何帮助将不胜感激 :)