比如:有一套网站,客户从哪台电脑上登录就可以得到这台机子的IP和主机名?
------解决方案--------------------------------------------------------
IP:
Request.UserHostAddress
Name:
Request.UserHostName
------解决方案--------------------------------------------------------
Request.UserHostAddress
------解决方案--------------------------------------------------------
如果是App_Code类的:
HttpContext.Current.Request.UserHostAddress
------解决方案--------------------------------------------------------
同上
------解决方案--------------------------------------------------------
你想做黑客吖!
------解决方案--------------------------------------------------------
mark 帮你顶
------解决方案--------------------------------------------------------
可以引用VisualBasic,
Microsoft.VisualBasic.Devices.Computer computer = new Microsoft.VisualBasic.Devices.Computer();
Label2.Text = computer.Name;