If I remember right aolserver or the driver makes the presumption that localhost = unix domain socket so using 127.0.0.1 tells it to look for a tcp socket.