Use hostname

Hi.

osx 10.9 localhost primary is ::1.
So using hostname is more useful than IP address.

Thanks.