ip address fix

This commit is contained in:
waltem01 2022-09-22 12:11:44 +02:00
parent ca763f2b4d
commit 90035b7c22

View File

@ -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);