public string GetIPAddress()
{
try
{
return Request.UserHostAddress;
}
catch (Exception ex)
{
return ex.ToString();
}
}
My .Net Application run on this public IP 200.191.124.500
and i am trying to access public IP using above function but it is given me public IP of my server.
How do I get public and private IP of computer where ASP.NET application open?
it should be match with https://www.whatismyip.com/