We have Request.UserHostAddress to get the IP address in ASP.NET, but this is usually the user\'s ISP\'s IP address, not exactly the user\'s machine IP address
Request.UserHostAddress
use this
Dns.GetHostEntry(Dns.GetHostName())