Get User/Visitor IP Address and Domain Name(URL) Called by User

Here a code to find user or visitors ip address also a code to get url that the client calls. Through these codes a programmer can manage white labeling by programming , ex. different logo for different URL which are access same application hosted on a server and called by different URLs.

code to get Visitors IP Address 

 

String ipAddress = System.Web.HttpContext.Current.Request.UserHostAddress;

 
Code to get URL 

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.
Ebook Download
View all
Learn
View all