无法连接到本地网络服务器

无法连接到本地网络服务器

当我尝试连接到安装在局域网中的 PC 上的 Web 服务器时,我无法获取索引页,但计算机配置良好,因为我可以 ping 和 ssh 它:

$ ping 172.16.69.196
PING 172.16.69.196 (172.16.69.196) 56(84) bytes of data.
64 bytes from 172.16.69.196: icmp_seq=1 ttl=64 time=0.091 ms
64 bytes from 172.16.69.196: icmp_seq=2 ttl=64 time=0.072 ms
^C
--- 172.16.69.196 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.072/0.081/0.091/0.013 ms

远程控制

ssh [email protected]
The authenticity of host '172.16.69.196 (172.16.69.196)' can't be established.
RSA key fingerprint is e8:8b:cd:a4:db:73:68:86:ea:bf:a9:c4:50:ab:3b:ae.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '172.16.69.196' (RSA) to the list of known hosts.
[email protected]'s password: 
zynq> exit
Connection to 172.16.69.196 closed.

我唯一不能做的是使用网络浏览器进行 wget 或连接

 $ wget 172.16.69.196
 --2014-11-19 17:30:54--  http://172.16.69.196/
 Connecting to 172.16.69.196:80... connected.
 HTTP request sent, awaiting response... 200 OK
 Length: 3269 (3,2K) [text/html]
 Saving to: ‘index.html.2’

 0% [                                                                                                                                                                                                    ] 0           --.-K/s 

什么也没有发生,但如果我从带有 Web 服务器的 PC 执行 wget,我会得到:

zynq> wget http://172.16.69.196
Connecting to 172.16.69.196 (172.16.69.196:80)
index.html           100% |*******************************|  3269  --:--:-- ETA

这怎么可能?

答案1

最可能的原因是防火墙阻止了对端口 80 的访问。这是 Linux 吗?如果是,请说明是什么版本?在许多最新的基于 Fedora 的发行版中,iptables 不会安装。它们使用防火墙。如果是这种情况,请执行以下操作并尝试从其他计算机访问该页面。

systemctl stop firewalld.service

相关内容