Tuesday, February 2, 2010

Re: getClientIP ?? strange format...

Tomas,

You could try disable IPV6:

System preferences -> Network -> Ethernet -> Advanced -> Configure IPV6 = Off

Also comment out the IPV6 addresses in /etc/hosts file

Or try to access that site not by http://localhost but by ip like http://192.168.1.101

Andras

On Feb 2, 2010, at 3:18 AM, tokasaa@gmail.com wrote:

Hi,

anybody know why cake or PHP native method is returning IP in this strange format??

getClientIP() ........ fe80::222:41ff:fe2e:b64b

$_SERVER['REMOTE_ADDR'] .... fe80::222:41ff:fe2e:b64b

PS: I am running apache on MacOS Leopard using XAMPP.

Many thanks Tomas

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups “CakePHP” group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
 
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: