我无法从其他计算机连接到本地主机

use*_*965 7 server permissions networking remote-access localhost

我可以/var/www/html/通过localhost在 URL 栏中键入来查看我在其中创建的网页。

几个月前,我什至可以通过在其他计算机上输入我的 ip 地址来访问这些页面,但现在当我在手机上输入我的 ip 地址时,服务器超时;我的朋友也无法通过输入我的 IP 地址进行连接。

最近我从unixmen 的教程中安装了 webmin ,我想可能它改变了读取和执行权限。所以我执行了命令chmod -R 775,但它没有改变任何东西(仍然无法从其他计算机连接)。

从主机上一切正常。

的输出ifconfig是:

eth0      Link encap:Ethernet  HWaddr 08:9e:01:00:10:ad  
          inet addr:183.83.83.29  Bcast:183.83.127.255  Mask:255.255.192.0
          inet6 addr: fe80::a9e:1ff:fe00:10ad/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:443584 errors:0 dropped:0 overruns:0 frame:0
          TX packets:378897 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:470991396 (470.9 MB)  TX bytes:96527317 (96.5 MB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:154813 errors:0 dropped:0 overruns:0 frame:0
          TX packets:154813 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:20729684 (20.7 MB)  TX bytes:20729684 (20.7 MB)

pan1      Link encap:Ethernet  HWaddr 42:dd:4f:ed:a2:f2  
          inet addr:10.141.41.1  Bcast:10.141.41.255  Mask:255.255.255.0
          inet6 addr: fe80::40dd:4fff:feed:a2f2/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:174 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:32909 (32.9 KB)
Run Code Online (Sandbox Code Playgroud)

use*_*965 9

谢谢大家,我认为这是防火墙,通过使用以下命令禁用站点https://help.ubuntu.com/12.04/serverguide/firewall.html 中给出的防火墙:

sudo ufw disable

我可以从手机打开索引页。