会员
周边
新闻
博问
融资
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
0x0c,0x0d
Write The CODE,Change The World!
首页
新随笔
联系
管理
2023年5月4日
.net 随机端口
摘要: 使用TcpListener获取一个可用的端口 public static int GetRandomPort() { var listener = new TcpListener(IPAddress.Any, 0); listener.Start(); var port = ((IPEndPoint
阅读全文
posted @ 2023-05-04 14:38 Hey,Coder!
阅读(22)
评论(0)
推荐(0)
编辑
公告