diff --git a/ClientServerLib/ClientServerLib/CServer.cs b/ClientServerLib/ClientServerLib/CServer.cs index 23a7e6fc..6ca7e3bb 100644 --- a/ClientServerLib/ClientServerLib/CServer.cs +++ b/ClientServerLib/ClientServerLib/CServer.cs @@ -205,13 +205,15 @@ namespace ServerLib public static string GetLocalAddress() { - IPAddress[] ips = Dns.GetHostAddresses(Dns.GetHostName()); + return Dns.GetHostName(); + + /*IPAddress[] ips = Dns.GetHostAddresses(Dns.GetHostName()); foreach (IPAddress ip in ips) { if (ip.AddressFamily == System.Net.Sockets.AddressFamily.InterNetwork) return ip.ToString(); } - return ""; + return "";*/ } #region server control