怎样在命令提示符中,查看一个IP地址的服务器通不通

2025-01-01 00:45:22
推荐回答(5个)
回答1:

ping IP地址,比如
ping 192.168.0.2
如果是通的,显示这样的信息:

Pinging 192.168.0.2 with 32 bytes of data:

Reply from 192.168.0.2: bytes=32 time<1ms TTL=64

Reply from 192.168.0.2: bytes=32 time<1ms TTL=64

Reply from 192.168.0.2: bytes=32 time<1ms TTL=64

Reply from 192.168.0.2: bytes=32 time=1ms TTL=64

Ping statistics for 192.168.0.2:

Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

Approximate round trip times in milli-seconds:

Minimum = 0ms, Maximum = 1ms, Average = 0ms

否则,就是这样的:

Pinging 192.168.1.4 with 32 bytes of data:

Request timed out.

Request timed out.

Request timed out.

Request timed out.

Ping statistics for 192.168.1.4:

Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

回答2:

使用Ping命令,如你要Ping百度的服务器就可以这样:
ping www.baidu.com -t (注意有空格)
IP地址可以这样写:
ping 221.180.122.65 -t
如果和服务器通的话会返回响应时间多少ms,不通的话是返回Request time out。

回答3:

ping xxx.xxx.xxx.xxx(ip地址)
如果返回reply from xxx.xxx.xxx.xxx这是通的,另外,本地也可一使用ipconfig,在cmd中输入ipconfig后回车,出现相关信息

回答4:

guojingcha 说得很全面了,不过最好能在 ping命令后面加个“(空格)-t”,这样的话在你不关闭窗口的情况下它会一直ping下去的。

回答5:

ping ***.***.***.***

看他返回的信息