From c2b77452a8df56016c92fa926e9eb46475f88493 Mon Sep 17 00:00:00 2001 From: MayaTheShy Date: Sun, 9 Nov 2025 22:00:01 -0500 Subject: [PATCH] feat: implement fallback to hardcoded EntityServer port 48247 in domain list reply handling --- src/OverteClient.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/OverteClient.cpp b/src/OverteClient.cpp index 80ead1e..69f5247 100644 --- a/src/OverteClient.cpp +++ b/src/OverteClient.cpp @@ -1078,8 +1078,16 @@ void OverteClient::handleDomainListReply(const char* data, size_t len) { } else { std::cout << "[OverteClient] Warning: No EntityServer found in assignment client list" << std::endl; std::cout << "[OverteClient] This might be expected for non-authenticated connections." << std::endl; - std::cout << "[OverteClient] Sending EntityQuery to domain server as fallback..." << std::endl; - sendEntityQuery(); // Try sending to domain server anyway + + // Try hardcoded EntityServer port 48247 (common default) + std::cout << "[OverteClient] Trying hardcoded EntityServer port 48247..." << std::endl; + m_entityServerPort = 48247; + std::memcpy(&m_entityServerAddr, &m_udpAddr, m_udpAddrLen); + reinterpret_cast(&m_entityServerAddr)->sin_port = htons(48247); + m_entityServerAddrLen = m_udpAddrLen; + + std::cout << "[OverteClient] Sending EntityQuery to 127.0.0.1:48247..." << std::endl; + sendEntityQuery(); } }