I trying to get a persons ip address using <cfoutput>#cgi.REMOTE_ADDR#</cfoutput>, but all i'm getting is 0:0:0:0:0:0:0:1.Anyone know why and a better why to get it?
K0rrupt wrote:
I trying to get a persons ip address using
<cfoutput>#cgi.REMOTE_ADDR#</cfoutput>, but all i'm getting is0:0:0:0:0:0:0:1.Anyone know why and a better why to get it?
You have yet to respond to Owain's IPv6 remark. I hope you are now convinced that 0:0:0:0:0:0:0:1 is actually the localhost IP. That is, it is the same address as 127.0.0.1, but then in IPv6 notation. Your computer is the only localhost. You can therefore safely assume that CGI.REMOTE_ADDR will return the IP address of other client computers out of your domain.
Message was edited by BKBK
North America
Europe, Middle East and Africa
Asia Pacific