Should a MAMP return ::1 as IP on localhost?

Viewed 40093

I need to retrieve a user's IP. My localhost is returning ::1 as the IP. I am curious, if this is an expected behaviour? I'm running MAMP on Snow Leopard.

5 Answers

You have to disable IPv6 support in your OS for apache to stop showing these IPv6 format addresses, when you want the IPv4 format. I disabled IPv6 support and its working as expected now.

I recently ran into this issue, though i don't ever remember enabling ipv6 support on my Windows 7 system, could be done by Microsoft in one of their updates (maybe).

Related