Fix hardcoded references to 127.0.0.1

These would cause timeouts and fail if you bound to, say, an internal
NIC's IP instead of using the local-only default intended for proxying.