static void Main(string[] args) { Console.WriteLine($"Starting server on {Packet.GetIpAddress()}"); listenerSocket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); _clients = new List <ClientData>(); var ipEndpoint = new IPEndPoint(IPAddress.Parse(Packet.GetIpAddress()), 4242); listenerSocket.Bind(ipEndpoint); Thread listenThread = new Thread(ListenThread); listenThread.Start(); }