阅读背景:

如何在asp.net中获取服务器/网站的IP地址?

来源:互联网 

When a user request comes in, I can use Context.Request.UserHostAddress to get the user's IP address. How can I get the IP address of the website/server at runtime? I have some reporting code that can be used by multiple websites on the same server, and each website uses a different IP address. So I need to be able to detect the website's IP address at runtime.When a user request comes in, I can use Context




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: