diff --git a/SocketLib.cs b/SocketLib.cs index e5af36c..9805791 100644 --- a/SocketLib.cs +++ b/SocketLib.cs @@ -24,7 +24,9 @@ public static class Connection { port = (int)_port; // Get computers' ipv4 address - if (ipAddress == null) { + if (_ipAddress != null) + ipAddress = _ipAddress; + else { try { string hostName = Dns.GetHostName(); IPHostEntry entryList = Dns.GetHostEntry(hostName);