Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何获取运行 asp.net 应用程序的 IIS 框的 IP 地址?我试过了:
HttpContext.Current.Request.ServerVariables["SERVER_NAME"];
这是可能吗?
以下是所有变量:
HttpContext.Current.Request.UserHostAddress; should work
链接 1