diff --git a/ZoFo/GameCore/GameManagers/NetworkManager/ClientNetworkManager.cs b/ZoFo/GameCore/GameManagers/NetworkManager/ClientNetworkManager.cs
index 6f58b5e..f75fb9a 100644
--- a/ZoFo/GameCore/GameManagers/NetworkManager/ClientNetworkManager.cs
+++ b/ZoFo/GameCore/GameManagers/NetworkManager/ClientNetworkManager.cs
@@ -98,7 +98,7 @@ namespace ZoFo.GameCore.GameManagers.NetworkManager
public static IPAddress GetIp()
{
- string hostName = Dns.GetHostName(); // Retrive the Name of HOST
+ /*string hostName = Dns.GetHostName(); // Retrive the Name of HOST
var ipList = Dns.GetHostByName(hostName).AddressList;
foreach (var ip in ipList)
{
@@ -106,8 +106,8 @@ namespace ZoFo.GameCore.GameManagers.NetworkManager
{
return ip;
}
- }
- return IPAddress.Loopback;
+ }*/
+ return IPAddress.Parse("127.0.0.1");
}
//поток 2
diff --git a/ZoFo/GameCore/GameManagers/NetworkManager/ServerNetworkManager.cs b/ZoFo/GameCore/GameManagers/NetworkManager/ServerNetworkManager.cs
index 98b93b6..ba4b981 100644
--- a/ZoFo/GameCore/GameManagers/NetworkManager/ServerNetworkManager.cs
+++ b/ZoFo/GameCore/GameManagers/NetworkManager/ServerNetworkManager.cs
@@ -52,7 +52,7 @@ namespace ZoFo.GameCore.GameManagers.NetworkManager
///
public static IPAddress GetIp()
{
- string hostName = Dns.GetHostName(); // Retrive the Name of HOST
+ /*string hostName = Dns.GetHostName(); // Retrive the Name of HOST
var ipList = Dns.GetHostByName(hostName).AddressList;
foreach (var ip in ipList)
{
@@ -60,8 +60,8 @@ namespace ZoFo.GameCore.GameManagers.NetworkManager
{
return ip;
}
- }
- return IPAddress.Loopback;
+ }*/
+ return IPAddress.Parse("127.0.0.1");
}
///
diff --git a/ZoFo/GameCore/Server.cs b/ZoFo/GameCore/Server.cs
index 329763c..dbbfa94 100644
--- a/ZoFo/GameCore/Server.cs
+++ b/ZoFo/GameCore/Server.cs
@@ -127,7 +127,7 @@ namespace ZoFo.GameCore
players = new List();
new MapManager().LoadMap();
- AppManager.Instance.server.RegisterGameObject(new EntittyForAnimationTests(new Vector2(0, 0)));
+ //AppManager.Instance.server.RegisterGameObject(new EntittyForAnimationTests(new Vector2(0, 0)));
AppManager.Instance.server.RegisterGameObject(new Player(new Vector2(740, 140)));
AppManager.Instance.server.RegisterGameObject(new Zombie(new Vector2(1000, 1000)));
AppManager.Instance.server.RegisterGameObject(new Ammo(new Vector2(140, 440)));