在局域网中根据IP地址获得计算机名:
(1)、ping -a IP地址
E:/>ping -a 192.168.0.183
Pinging MARTIN [192.168.0.183] with 32 bytes of data:
Reply from 192.168.0.183: bytes=32 time<1ms TTL=128
Reply from 192.168.0.183: bytes=32 time<1ms TTL=128
Reply from 192.168.0.183: bytes=32 time<1ms TTL=128
Reply from 192.168.0.183: bytes=32 time<1ms TTL=128
Ping statistics for 192.168.0.183:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
(2)、nbtstat -s -a IP地址
E:/>nbtstat -s -a 192.168.0.183
本地连接:
Node IpAddress: [192.168.0.227] Scope Id: []
NetBIOS Remote Machine Name Table
Name Type Status
---------------------------------------------
MARTIN <00> UNIQUE Registered
MARTIN <20> UNIQUE Registered
WORKGROUP <00> GROUP Registered
WORKGROUP <1E> GROUP Registered
WORKGROUP <1D> UNIQUE Registered
..__MSBROWSE__.<01> GROUP Registered
MAC Address = 00-0F-EA-8C-22-9F
宽带连接:
Node IpAddress: [219.131.148.70] Scope Id: []
Host not found.