Replace 127.0.0.1 with os hostname as default host.