Asp.net with C# provides ways of determining IP addresses of visitors to your website. Simply check the server variables HTTP_X_FORWARDED_FOR, as well as REMOTE_ADDR. The server variable HTTP_X_FORWARDED_FOR will return the real IP address of the person. If the person is behind a proxy or router, the server variable REMOTE_ADDR will return the IP address of the proxy or router.
What is the C# code to determine a visitor's IP address?
To determine a person actual IP address first check the server variable HTTP_X_FORWARDED_FOR: