diff --git a/src/backends/unix/network.c b/src/backends/unix/network.c index 3cb5aa60..93b8449f 100644 --- a/src/backends/unix/network.c +++ b/src/backends/unix/network.c @@ -829,7 +829,7 @@ NET_Socket(char *net_interface, int port, netsrc_t type, int family) if (!net_interface || !net_interface[0] || !Q_stricmp(net_interface, "localhost")) { - Host = (family == AF_INET6) ? "::" : "0.0.0.0"; + Host = (family == AF_INET6) ? "::1" : "0.0.0.0"; } else { diff --git a/src/backends/windows/network.c b/src/backends/windows/network.c index 11c255d4..8ffdce2c 100644 --- a/src/backends/windows/network.c +++ b/src/backends/windows/network.c @@ -821,7 +821,7 @@ NET_IPSocket(char *net_interface, int port, netsrc_t type, int family) if (!net_interface || !net_interface[0] || !stricmp(net_interface, "localhost")) { - Host = (family == AF_INET6) ? "::" : "0.0.0.0"; + Host = (family == AF_INET6) ? "::1" : "0.0.0.0"; } else {