Get User IP address
Posted on 2011-04-27
I want to get the user IP address when they visit my site. even if they have a firewall software application installed on their machine.
the code that I have now it display a number different then the IP address that I see when I run the cmd ipconfig /all
when I refresh my page the IP address Is: 184.108.40.206
but when I do a run cmd ipconfig then I see this IP: 10.25.120.194
So, I am not sure which one is correct??? and why I am getting two different one and
what's the code to get the correct IP address from the users machine???
here's my code:
<CFIF #CGI.HTTP_X_Forwarded_For# EQ "">