IDEA打开的时候一直弹窗报错,说是端口被占用。
报错消息:
IDE is currently running outside of our known port range (port number is 57948). You will not be able to open JetBrains Academy content with Solve in IDE action. Please check the troubleshooting guide with the instructions how to change the port.
IntelliJ IDEA Education 2022.1
按照网上的方法,进cmd查端口杀掉占用的程序,结果最戏剧的来了,IDEA告诉我的那个端口,直接把IDEA自己给杀掉了,我:wtf????
然后我每次进IDEA提示的被占用端口都不一样,我也不知道它到底想用哪个,官方文档的解决方法(提供可以用的端口段)这样一来也不能用了。
我直接崩溃了
解决问题,他奶奶滴!
官网的解决方法:
Open Windows Firewall.
Go to Advanced Settings.
Right-click Inbound Rules and select New Rule....
Select Port.
Enter a port range that is used by your IDE of choice, in this case it's 63342-63362.
Allow the connection.
Restart your system.
如果以上方法不生效,尝试在命令行执行嗯下面的命令:
net stop winnat
net start winnat
解决了吗,我的跟你的情况一样
建议重启