简体   繁体   English

如何获取访问我的网页的客户端的IP地址,其中我的网页或WebApp托管在某个远程服务器上

[英]How to get IP address of the Client accessing my page where My web page or WebApp is hosted at some remote server

How to get IP address or machine name of the user accessing my page's URL? 如何获取访问我页面URL的用户的IP地址或计算机名称? I want to restrict the users who access my page using either IP address or machine name. 我想限制使用IP地址或计算机名称访问我的页面的用户。 I am going to host my web application at a remote server. 我将在远程服务器上托管我的Web应用程序。 Please help me out in solving this. 请帮我解决这个问题。

Check out this article at W3Schools: 在W3Schools中查看此文章:

http://www.w3schools.com/asp/coll_servervariables.asp http://www.w3schools.com/asp/coll_servervariables.asp

you can try: 你可以试试:

Request.ServerVariables("remote_addr")

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM