如何捕获pc的主机名和macaddress [英] how can catch hostname and macaddress of pc

查看:71
本文介绍了如何捕获pc的主机名和macaddress的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi frainds我尝试捕获与LAN连接的pc的ip_address,mac_address和主机名与路由器或交换机。我不知道如何捕获pc和mac_address的主机名。我正在使用ip地址的代码

展开 | 选择 | Wrap | 行号

解决方案

我不相信mac地址被退回在HTTP标头中,但您可以这样检查:

展开 | 选择 | Wrap | 行号


我在捕捉ipaddress的问题有时候代理地址被捕获而不是ip所以我想要另一个那个pc的识别。


jha,


有一些链接这里有一些检索MAC地址的方法,但它们都依赖于局域网上的机器 - 我不是认为你可以在WWW上做到这一点。


你究竟要做的是什么?


B博士

hi frainds i try to catch ip_address,mac_address and hostname of pc that is connected in lan with router or switch. i dont know how to catch hostname of pc and mac_address. i am using code for ip address

Expand|Select|Wrap|Line Numbers

解决方案

I don''t believe mac address is returned in the HTTP header, but you can check like this:

Expand|Select|Wrap|Line Numbers


my problems in catching ipaddress some time proxy address is catched instead of ip so i want to another identification of that pc.


jha,

There''s some links here which have some methods to retrieve the MAC address but they all rely on the machine being on a LAN - I don''t think you will be able to do this across the WWW.

What is it you''re trying to do exactly?

Dr B


这篇关于如何捕获pc的主机名和macaddress的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆