Get A Visitor's IP Address In ASP.NET

Here is the code snippet returns a website visitor's IP address in ASP.NET and C#.

Here a code snippet to find a visitor's IP address and URL. This code can be used in your ASP.NET page's code behind. 
 
Code to get a visitor's IP address: 
  1. String ipAddress = System.Web.HttpContext.Current.Request.UserHostAddress;  
Code to get URL:
  1. string url = Request.Url.AbsoluteUri;   
Now you can manage logo or other managements through these information or can use ip address to find unique visitors on your site.
 
Here is a detailed tutorial, Get IP Address In ASP.NET.