How To Get A User's Client IP Address In ASP NET
Please visit http://www.technomark.in/How-To-Get-A-User’s-Client-IP-Address-In-ASP.NET.aspx for more information.
We may not be able to find the exact IP Address of the Client.
This is because, each user will be behind a proxy server or Router.
From the router, the user can get IP from a wide range each time the user connect.
Following describes an exact/approximate method for getting the IP Address of the client.
Write down the code for getting the exact IP address of the client.
Here client IP Address is stored in server variable named HTTP_X_FORWARDED_FOR.
If that is empty, we can get IP from server variable named REMOTE_ADDR.
By this way, we can get the exact/approximate IP address of the client.
In this video, we have explained about following thing
How To Get A User’s Client IP Address In ASP NET
Complete steps is described in this video regarding How To Get A User’s Client IP Address In ASP NET
If you got any clarification on this, please write it on Comment section.
We will definitely update you back.
ip address