Comments for Getting The Real IP Of Your Users

21 to 27 of 27 < 1 2 3 >
#21 /* 16 months, 21 days ago */
HTTP_X_FORWARDED_FOR Can and will return multiple IP addresses. Like So
11.11.11.2, 41.241.135.194, 198.54.202.74
Could you tell me which is the correct address?


isn't the last one? i mean the last ip address returned.
#22 /* 15 months, 18 days ago */
hi

thank you for your post

I am new to VS and I am getting an error during compilation saying that Request instance not found in Request.ServerVariables("HTTP_X_FORWARDED_FOR") , am I missing a library declaration?
#23 — Author comment /* 15 months, 18 days ago */
Novice: If you're doing it from within a Control, you may need to use System.Web.HttpContext.Current to get the current context. .Request is a property of the HttpContext.
#24 /* 14 months, 11 days ago */
I've tried using your code in C#, but I still get a lot of those IP: 172.17.1.1 for different visitors.

Do you know why I'd get it?

Cheeers

Dmitri
#25 /* 9 months, 20 days ago */
hi i have tried all mehtods to get Ip like Request.ServerVariables[''REMOTE_ADDR] Requst.UserHostAddress all are working fine on my local or lab web server... but when i have launched it on my web server with OS Window 2003 server it is picking its own Ip only
#26 /* 45 days, 3 hours ago */
The coldfusion example doesnt work. The "forwarded_for" variable doesnt exist - even though I am behind a proxy.

Doh!
#27 /* 20 days, 17 hours ago */
HTTP_X_FORWARDED_FOR can be easily faked, you have been warned.
21 to 27 of 27 < 1 2 3 >
Home | Advertise | About | Contact | Legal © Oli Warner 2001—2007 Proud 9rules member