When resolving the hostname, only the first IP address is forwarded. While this is ok, it can pose issues on systems with IPv6 enabled. Specifically, localhost is resolved to ::1 when loopback addresses are permitted. This can lead to connection errors with services that bind their sockets to IPv4 addresses, such as 127.0.0.1 or 0.0.0.0.