In my ASP.NET application, I'm saying something like this to get the client IP address:
string ipAddress = HttpContext.Current.Request.UserHostAddress;
This is the normal, straightforward way that I've always used, and it's always seemed to work. Everybody knows that the above statement is just a wrapper for the REMOTE_ADDR server variable.
Simple enough, right? Well, in the last few days I've been noticing that on my local dev machine, it's returning this as the value:
"fe80::dde4:def3:7f1b:a582%10"
I have no earthly idea why. I'm running Vista x64 and running my app with IIS7. I do have IPv4 and IPv6 enabled, but that usually returns something like:
"1::"
I have no idea why this is happening. Rebooting solves nothing.
EDIT:
I'm using Chrome when this happens.