简体   繁体   中英

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? I want to restrict the users who access my page using either IP address or machine name. I am going to host my web application at a remote server. Please help me out in solving this.

Check out this article at W3Schools:

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

you can try:

Request.ServerVariables("remote_addr")

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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