Untitled
Anonymous
csharp
11/18/2023 10:42 AM
736 B
23
Indexable
public class Program
{
private static TcpListener _tcpListener;
static void Main(string[] args)
{
StartServer();
Console.ReadLine();
}
public static void StartServer()
{
IPAddress ipAddress = IPAddress.Parse("127.0.0.1");
int port = 8888;
_tcpListener = new TcpListener(ipAddress, port);
_tcpListener.Start();
Console.WriteLine("run.");
_tcpListener.Stop();
}
}Editor is loading...
Leave a Comment