我在这一行有一个错误:
new ServerSocket(2106, 50, InetAddress.getByName("83.4.200.1"));
错误日志:
Exception in thread "main" java.net.BindException: Cannot assign requested address: JVM_Bind
83.4.200.1
是我的 ip,当我放在那里127.0.0.1
或192.168.1.2
使用相同的端口时,一切正常。我已经通过写作检查了所有端口netstat -a -n
,但没有 2106。
非常感谢您阅读本文,我希望您能帮助我解决我的问题