fix minor ClientNetworkManager and ServerNetworkManager
This commit is contained in:
parent
a69f133d0a
commit
593f53fc47
2 changed files with 5 additions and 5 deletions
|
@ -98,8 +98,8 @@ namespace ZoFo.GameCore.GameManagers.NetworkManager
|
|||
public static IPAddress GetIp()
|
||||
{
|
||||
string hostName = Dns.GetHostName(); // Retrive the Name of HOST
|
||||
string myIP = Dns.GetHostByName(hostName).AddressList[1].ToString();// Get the IP
|
||||
return IPAddress.Parse(myIP);
|
||||
//string myIP = Dns.GetHostByName(hostName).AddressList[1].ToString();// Get the IP
|
||||
return IPAddress.Parse("127.0.0.1");
|
||||
}
|
||||
|
||||
//поток 2
|
||||
|
|
|
@ -54,9 +54,9 @@ namespace ZoFo.GameCore.GameManagers.NetworkManager
|
|||
public static IPAddress GetIp()
|
||||
{
|
||||
string hostName = Dns.GetHostName(); // Retrive the Name of HOST
|
||||
var ipList =Dns.GetHostByName(hostName).AddressList;
|
||||
string myIP = ipList[ipList.Count()-1].ToString();// Get the IP
|
||||
return IPAddress.Parse(myIP);
|
||||
//var ipList =Dns.GetHostByName(hostName).AddressList;
|
||||
//string myIP = ipList[ipList.Count()-1].ToString();// Get the IP
|
||||
return IPAddress.Parse("127.0.0.1");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
Loading…
Add table
Reference in a new issue