在局域网中根据IP地址获得计算机名

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值