switch out localhost for 127.0.0.1

Some situations don't play well with `localhost`. Let's just use `127.0.0.1` instead.