diff --git a/code/server/ClientConsole/Program.cs b/code/server/ClientConsole/Program.cs index 5e6affe..0ab3c95 100644 --- a/code/server/ClientConsole/Program.cs +++ b/code/server/ClientConsole/Program.cs @@ -13,7 +13,7 @@ class Program static void StartClient() { - IPEndPoint serverEndPoint = new IPEndPoint(IPAddress.Parse("127.0.0.1"), 3131); + IPEndPoint serverEndPoint = new IPEndPoint(IPAddress.Parse("82.165.19.245"), 3131); UdpClient client = new UdpClient(); // Send connection message to server diff --git a/code/server/Server/Program.cs b/code/server/Server/Program.cs index f3497ea..3c391f8 100644 --- a/code/server/Server/Program.cs +++ b/code/server/Server/Program.cs @@ -35,6 +35,7 @@ class Program // Assign a unique port to the client IPEndPoint clientEndPoint = new IPEndPoint(IPAddress.Any, nextPort++); ; UdpClient clientSocket = new UdpClient(clientEndPoint); + clientSocket.Client.Bind(clientEndPoint); clients[remoteEndPoint] = clientSocket; // Send connection message to client