Below is the code to track user IP Address. Some Asp.NET Application need to track user's ip address for future use or something else.
There are so many method to Track User IP address below is the simplest one. You can use request object to obtain IP Address like this in C#.
string ipAddress = Request.UserHostAddress;