public void StopListener() { if (mServer != null) { mServer.StopListening(); mServer.Dispose(); mServer = null; } }