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.
Asked
Active
Viewed 1,570 times
2
-
Answers already provided, but remember this will only work for static IPs. Also see this: http://stackoverflow.com/questions/735350/how-to-get-a-users-client-ip-address-in-asp-net?rq=1 – Moo-Juice Aug 01 '13 at 15:46
-
@VegetarianVulture: Please stop adding `Any help will be appreciated` to other people's posts. – Hasturkun Aug 01 '13 at 15:57
1 Answers
0
Check out this article at W3Schools:
http://www.w3schools.com/asp/coll_servervariables.asp
you can try:
Request.ServerVariables("remote_addr")

Jmoreland91
- 178
- 1
- 11