using System.Net; using System.Net.Sockets; namespace Client; internal class Program { static void Main(string[] args) { while (true) { Socket clientSocket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); IPEndPoint endPoint = new IPEndPoint(IPAddress.Parse("127.0.0.1"), 20000); clientSocket.Connect(endPoint); } } }