Fallback to loopback address if cannot bind/connect to host returned by InetAddress.getLocalHost()