replace localhost with 127.0.0.1

resolving localhost requires some extra work, and I have an open support ticket with Sonatype where we think that an error we are receiving is because localhost is returning an IPv6 address.