This is how I would like to know what some IP addresses coming in to the website.
Therefore, I would like to get their IP address when possible.
Problem is that I now only get it here:
I use this:
Request.Params["HTTP_X_FORWARDED_FOR"] ?? Request.UserHostAddress
The first one gives you the IP if the user is behind a proxy. If it's null, then the second one will give you the right IP.
There are plenty of answered questions about this already. For example: