//server start static void Main(string[] args) { Console.WriteLine("Starting server... Server IP:" + Packet.GetIPAdress()); lisenerSocket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); _clients = new List <ClientData>(); IPEndPoint ip = new IPEndPoint(IPAddress.Parse(Packet.GetIPAdress()), 4242); lisenerSocket.Bind(ip); Thread lisenerThred = new Thread(LisenThread); lisenerThred.Start(); }