佬唐

博客园 首页 新随笔 联系 订阅 管理

在局域网中根据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.

posted on 2010-02-03 08:49  佬唐  阅读(527)  评论(0)    收藏  举报