MainServer: prefer IPv4 address if available