From 9c8ebfd59f3c9a710801caea6a4e91d1da1fcad2 Mon Sep 17 00:00:00 2001 From: Katharine Chui Date: Wed, 21 Oct 2026 14:15:34 +0200 Subject: [PATCH] make use of isLocalServer during adhocctl client binding --- Core/HLE/proAdhoc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/HLE/proAdhoc.cpp b/Core/HLE/proAdhoc.cpp index d78f3b9212..89926996b0 100644 --- a/Core/HLE/proAdhoc.cpp +++ b/Core/HLE/proAdhoc.cpp @@ -2191,7 +2191,7 @@ AdhocctlClientStatus adhocctlClientMaintenance(SceNetAdhocctlAdhocId *adhoc_id) // If Server is at localhost and we are in P2P mode, try to bind socket to specific adapter before connecting to prevent 2nd instance being recognized as already existing 127.0.0.1 by adhocctl server // (may not works in WinXP/2003 for IPv4 due to "Weak End System" model) - if (isLoopbackIP(server_ip.in.sin_addr.s_addr) && !serverHasRelay) { + if (isLocalServer && !serverHasRelay) { _adhocctl_bind_addr.ip = g_localhostIP.in.sin_addr.s_addr; _adhocctl_bind_addr.port = 0; adhocctl_bind_addr = &_adhocctl_bind_addr;