本文参考了这篇文档
https://blog.csdn.net/LiuYongSheng/article/details/156948583
有的时候我们启动游戏,会报错6969端口被另外一个程序占用,但是使用命令
netstat -ano | findstr “6969”
进行查看,发现并没有程序在使用。那么大概率,这个接口被系统预留了。
解决方案有两种。
临时解决方案:net stop winnat停止服务,然后启动游戏服务进程,最后再恢复服务net start winnat
永久解决方案:net stop winnat停止服务,然后netsh int ipv4 add excludedportrange protocol=tcp startport=6969 numberofports=1 store=persistent 排除这个端口的预留,最后再恢复服务net start winnat









一般都是服务端开多了
自用方案,可能不适用所以人
BepInEx\config\com.fika.core.cfg,搜索UDP Port,更改端口