How To Get IP Address in ASP.NET
Last Updated 3/20/2019
Get the visitor's IP address in ASP.NET
Whenever a browser sends a request for a page, it also sends a number of other headers to the script, containing information such as the browser type. It also includes information such as the visitors IP address.
In ASP.NET you can get the IP address of your users from the Request.ServerVariables collection. To find how to display the visitor’s IP in C# and VB.NET read these tutorials: