diff --git a/CMakeLists.txt b/CMakeLists.txt
index 19a2ab8893..3d30e7e0b5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -2252,6 +2252,8 @@ add_library(${CoreLibName} ${CoreLinkType}
Core/HLE/sceNet.h
Core/HLE/sceNet_lib.cpp
Core/HLE/sceNet_lib.h
+ Core/HLE/NetAdhocCommon.cpp
+ Core/HLE/NetAdhocCommon.h
Core/HLE/sceNetAdhoc.cpp
Core/HLE/sceNetAdhoc.h
Core/HLE/sceNetAdhocMatching.cpp
diff --git a/Core/Core.vcxproj b/Core/Core.vcxproj
index 95afc14886..4623e05f56 100644
--- a/Core/Core.vcxproj
+++ b/Core/Core.vcxproj
@@ -627,6 +627,7 @@
+
@@ -1140,6 +1141,7 @@
+
diff --git a/Core/Core.vcxproj.filters b/Core/Core.vcxproj.filters
index e9d8adab35..f37280cbaa 100644
--- a/Core/Core.vcxproj.filters
+++ b/Core/Core.vcxproj.filters
@@ -520,6 +520,9 @@
HLE\Libraries
+
+ HLE\Libraries
+
HLE\Libraries
@@ -1758,6 +1761,9 @@
HLE\Libraries
+
+ HLE\Libraries
+
HLE\Libraries
diff --git a/Core/HLE/NetAdhocCommon.cpp b/Core/HLE/NetAdhocCommon.cpp
new file mode 100644
index 0000000000..a01ffe1a33
--- /dev/null
+++ b/Core/HLE/NetAdhocCommon.cpp
@@ -0,0 +1,18 @@
+// Copyright (c) 2025- PPSSPP Project.
+
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, version 2.0 or later versions.
+
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License 2.0 for more details.
+
+// A copy of the GPL 2.0 should have been included with the program.
+// If not, see http://www.gnu.org/licenses/
+
+// Official git repository and contact information can be found at
+// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
+
+#include "Core/HLE/NetAdhocCommon.h"
diff --git a/Core/HLE/NetAdhocCommon.h b/Core/HLE/NetAdhocCommon.h
new file mode 100644
index 0000000000..0113609245
--- /dev/null
+++ b/Core/HLE/NetAdhocCommon.h
@@ -0,0 +1,19 @@
+// Copyright (c) 2025- PPSSPP Project.
+
+// This program is free software: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, version 2.0 or later versions.
+
+// This program is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License 2.0 for more details.
+
+// A copy of the GPL 2.0 should have been included with the program.
+// If not, see http://www.gnu.org/licenses/
+
+// Official git repository and contact information can be found at
+// https://github.com/hrydgard/ppsspp and http://www.ppsspp.org/.
+
+#pragma once
+
diff --git a/UWP/CoreUWP/CoreUWP.vcxproj b/UWP/CoreUWP/CoreUWP.vcxproj
index 672b819f73..fa433fa784 100644
--- a/UWP/CoreUWP/CoreUWP.vcxproj
+++ b/UWP/CoreUWP/CoreUWP.vcxproj
@@ -214,6 +214,7 @@
+
@@ -478,6 +479,7 @@
+
diff --git a/UWP/CoreUWP/CoreUWP.vcxproj.filters b/UWP/CoreUWP/CoreUWP.vcxproj.filters
index dada5b41fc..b459ebb663 100644
--- a/UWP/CoreUWP/CoreUWP.vcxproj.filters
+++ b/UWP/CoreUWP/CoreUWP.vcxproj.filters
@@ -126,6 +126,7 @@
+
@@ -538,6 +539,7 @@
+
diff --git a/android/jni/Android.mk b/android/jni/Android.mk
index 5987d02894..bd579004fb 100644
--- a/android/jni/Android.mk
+++ b/android/jni/Android.mk
@@ -708,6 +708,7 @@ EXEC_AND_LIB_FILES := \
$(SRC)/Core/HLE/sceNet_lib.cpp \
$(SRC)/Core/HLE/proAdhoc.cpp \
$(SRC)/Core/HLE/proAdhocServer.cpp \
+ $(SRC)/Core/HLE/NetAdhocCommon.cpp \
$(SRC)/Core/HLE/sceNetAdhoc.cpp \
$(SRC)/Core/HLE/sceNetAdhocMatching.cpp \
$(SRC)/Core/HLE/sceNetApctl.cpp \
diff --git a/libretro/Makefile.common b/libretro/Makefile.common
index dc7a0ddf64..604727db4c 100644
--- a/libretro/Makefile.common
+++ b/libretro/Makefile.common
@@ -739,6 +739,7 @@ SOURCES_CXX += \
$(COREDIR)/HLE/sceMpeg.cpp \
$(COREDIR)/HLE/sceNet.cpp \
$(COREDIR)/HLE/sceNet_lib.cpp \
+ $(COREDIR)/HLE/NetAdhocCommon.cpp \
$(COREDIR)/HLE/sceNetAdhoc.cpp \
$(COREDIR)/HLE/sceNetAdhocMatching.cpp \
$(COREDIR)/HLE/sceNetApctl.cpp \