From 41805d7de9c9c4de34cd478e54ddaec36c09123d Mon Sep 17 00:00:00 2001 From: "derek.holloway" Date: Wed, 5 Aug 2026 13:56:12 -0700 Subject: [PATCH] Allow external remote address get --- MistoxServer/Server/ServerConnection.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/MistoxServer/Server/ServerConnection.cs b/MistoxServer/Server/ServerConnection.cs index 38bd741..6392baf 100644 --- a/MistoxServer/Server/ServerConnection.cs +++ b/MistoxServer/Server/ServerConnection.cs @@ -82,9 +82,11 @@ namespace Mistox.Server { } } + public IPAddress getRemote() { + return _remoteAddress.Address; + } + public void Dispose() { - if (!Connected) return; - Connected = false; _cts.Cancel(); _client.Close(); @@ -93,7 +95,6 @@ namespace Mistox.Server { _parent.Connections.TryRemove(UserName, out _); _parent.InvokeUserDisconnected(this); - _parent.Alive = false; // Remove this item from the Dictionary on the Server for garbage collection } }