如何获取用户的主机名,IP和MAC地址?以及如何存储在数据库中? [英] how to get user's HostName, IP, and MAC Address ? and how to store in database?
本文介绍了如何获取用户的主机名,IP和MAC地址?以及如何存储在数据库中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何获取用户的主机名,IP和MAC地址?并存储在数据库中?
当用户的访问站点自动存储在数据库中时
帮我plz
how to get user''s HostName, IP, and MAC Address ? and store in database?
when user''s visit site automatically store in data base
help me plz
推荐答案
要获取主机名和地址,您可以使用 ^ ].据我所知,MAC地址是什么,没有可靠的机制可以提取它.
对于连接和使用数据库,请查看例如 http://www.dotnetperls.com/sqlclient [ ^ ]
To get host name and address you can use HttpRequest Class[^]. What comes to MAC address, as far as I know there''s no reliable mechanism to fetch it.
For connecting to and using a database, have a look at for example http://www.dotnetperls.com/sqlclient[^]
这篇关于如何获取用户的主机名,IP和MAC地址?以及如何存储在数据库中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文