且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何获取用户机器。 asp.net中的IP?

更新时间:2023-02-25 09:44:23





查看这些链接。 />


如何获取客户端IP地址 [ ^ ]

如何在ASP.NET中获取用户的客户端IP地址? [ ^ ]

如何在asp.net(C#)中获取客户端IP。 [ ^ ]

在ASP.NET中查找客户端IP地址和位置 [ ^ ]



希望这有帮助。
Hi,

check these links.

how to get client IP address[^]
How to get a user''s client IP address in ASP.NET?[^]
How to get client IP in asp.net(C#).[^]
Find Client IP Address And Location in ASP.NET[^]

hope this helps.


使用这个

use this
string IP= Request.ServerVariables["HTTP_X_FORWARDED_FOR"];