Archive for November, 2011|Monthly archive page

MAMP and virtual local hosts / IPv6

Recently I recognized that my local access to virtual hosts created with MAMP ( ) is pretty slow. It takes a couple of seconds to actually send the request.
MAMP (Pro) adds virtual hosts to the /etc/hosts file on mac with as its IP-address, so that I could just enter http://myapplicationname:8888 to get to the local development environment of my app.
As I got similar timeouts accessing my hosts when I enabled IPv6 for them I guessed that there was a connection.
Adding the equivalent for IPv6 ( ::1 ) did the trick then finally.
::1 myapplicationname
to the /etc/hosts and it works blazing fast as regular.

Seems like OSX nowadays always does an IPv6 lookup, even for localhosts.