我想要我的访客IP地址和PC名称列表 [英] i want my visitors ip addresses and pc name list

查看:122
本文介绍了我想要我的访客IP地址和PC名称列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要检查一些客户的PC名称和IP地址,以获取我的网站用户及其IP地址的列表...

i want to check some clients pc name and ip address for that i want list of my website users and their ip addresses...

推荐答案

当您询问昨天,我非常仔细地解释了您能做和不能做的事情. 获取客户端的IP地址和PC名称 [ ^ ]

24小时不会以任何方式改变这种状况.
When you asked this yesterday, I explained very carefully, what you could and couldn''t get. get ip address and pc name of client[^]

24 hours does not change that in any way.


Google在您发布...之前.

http://makhaai.blogspot.in/2010/04/get-client- ip-address-aspnet.html [ ^ ]
http://www.c-sharpcorner .com/uploadfile/krishnasarala/find-client-ip-address-and-location-in-Asp-Net/ [ http://stackoverflow.com/questions/6330133/get-client-machine-name [ ^ ]
Google before you post....

http://makhaai.blogspot.in/2010/04/get-client-ip-address-aspnet.html[^]
http://www.c-sharpcorner.com/uploadfile/krishnasarala/find-client-ip-address-and-location-in-Asp-Net/[^]

And you cannot get client''s machine name.. Why in the world do you need it?

http://stackoverflow.com/questions/6330133/get-client-machine-name[^]


我不确定您在谈论客户的PC名称.除非您在Intranet中,否则无法获取访问者的PC名称.


要获取IP,
I am not sure what you are talking about client''s pc name. It is not possible to get PC name of a visitor unless you are in intranet.


To get the IP,
IPAddress = Request.ServerVariables("HTTP_X_FORWARDED_FOR")
If IPAddress = "" Then
   IPAddress = Request.ServerVariables("REMOTE_ADDR")



获取主机名



To get the host name

hostName =  Dns.GetHostByAddress(IPAddress).HostName



欢呼



cheers


这篇关于我想要我的访客IP地址和PC名称列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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