ASP.NET is an open-source, server-side web-application framework designed for web development to produce dynamic web pages. It was developed by Microsoft to allow programmers to build dynamic web sites, applications and services. ASP.NET’s successor is .NET Core. It is a re-implementation of ASP.NET as a modular web framework, together with other frameworks like Entity Framework. The new framework uses the new open-source .NET Compiler Platform and is cross platform. ASP.NET MVC, Web API, and Web Pages have merged into a unified MVC 6.
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 (C# and VB.NET) you can get the IP address of your users from the Request.ServerVariables
collection. The following ASP.NET code will display the visitor’s IP:
<%Response.Write(Request.ServerVariables[“REMOTE_ADDR”]);%>