mirror of
https://gitlab1.ptb.de/waltem01/csharpsocketserver
synced 2024-02-04 23:19:43 +00:00
ip address fix
This commit is contained in:
parent
ca763f2b4d
commit
90035b7c22
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user