摘要:
using System;using System.Collections.Generic;using System.Text;using System.Net;//为了IPEndPoint而添加的引用using System.Net.Sockets;namespace GetClntIP{ class Program { static void Main(string[] args) { TcpListener tcpListener = new TcpListener(9000);//监听的端口号,可根据需要修改 tcpListener.Start(); //loop for listen 阅读全文