如何在asp.net中跟踪IP地址和系统名称 [英] how to Track ip address and system name in asp.net
本文介绍了如何在asp.net中跟踪IP地址和系统名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在asp.net中跟踪IP地址和系统名称
解决方案
查看此代码。
字符串 ip = Server.HTMLEncode(Request.UserHostAddress);
这将给你ip as a string。
注意:
你会得到127.0 .0.1每次如果你从localhost运行它。
此外,请参阅此链接
< a href =http://stackoverflow.com/questions/6160991/how-to-get-client-machine-name-in-asp-net-c>如何在ASP.NET / C#中获取客户端计算机名称 [ ^ ]
问候..:)
http://dotnetstock.com/technical/how-to-get-ip-addre ss-of-a-client-system-using-asp-net [ ^ ]
http://forums.asp.net/t/821809.aspx [ ^ ]
http://stackoverflow.com/questions/3606297/finding-the-ip-address- of-my-system-on-asp-net-page [ ^ ]
问候......:)
获取客户端的IP地址使用VB.NET中的TcpClient [ ^ ]
问候。 :)
how to Track ip address and system name in asp.net
解决方案
Have a look at this code.
String ip= Server.HTMLEncode(Request.UserHostAddress);
This will give you ip as a string.
Note:
You will get 127.0.0.1 every time if you run it from localhost.
Further,refer to this link
How to get Client Machine Name in ASP.NET / C#[^]
Regards..:)
http://dotnetstock.com/technical/how-to-get-ip-address-of-a-client-system-using-asp-net[^]
http://forums.asp.net/t/821809.aspx[^]
http://stackoverflow.com/questions/3606297/finding-the-ip-address-of-my-system-on-asp-net-page[^]
regards...:)
Get the client's IP address using TcpClient in VB.NET[^]
Regards. :)
这篇关于如何在asp.net中跟踪IP地址和系统名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文