ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

解决pycharm和hyper-V端口冲突问题

2022-04-04 15:00:51  阅读:319  来源: 互联网

标签:hyper bind 端口 https PyCharm pycharm port


 

Unable to start PyCharm Community at all! FOLLOW

 

Minebro10215

Created October 31, 2021 16:54

I recently using PyCharm for my project until one day when I open PyCharm, it doesn't start at all! It stuck at the screen below for forever! When I open Task Manager it said that PyCharm use about 100-300 MB of RAM out of 8GB and using 0% CPU. After multiple time trying to kill it using Task Manager then open it again, it still stuck at that screen. I decided to reinstall PyCharm but it still stuck then reinstall it again but with JetBrain Toolbox! Still not work... So, I try to uninstall PyCharm then clear all JetBrain folders in %LocalAppData% and %AppData% but it still not works. Is there any possible solution for this problem?

 

>Address already in use: bind

To lock folders IDE is starting a server on localhost, it tries to bind on the first available port between 6942 and 6991, this exception is thrown if IDE was not able to bind on any of the ports in this range. All 50 ports are unlikely to be already used on a machine, so it appears to be a networking issue or some security software which doesn't permit IDE to bind on any port in this range even on localhost interface.

Usually a simple PC restart solves this issue. 

Let me know how it goes. 

 

From <https://intellij-support.jetbrains.com/hc/en-us/community/posts/4409002362898>

 

解决hyper-V开启带来的端口问题 

问题描述:

今天无法启动intelliJ系软件pycharm,经研究是端口问题。

目标端口未被占用但发现被保护

解决hyper-V开启导致的端口问题:

方案一:

From  https://github.com/docker/for-win/issues/3171#issuecomment-459205576

the workaround worked for me, the steps are:

  1. Disable hyper-v (which will required a couple of restarts)

dism.exe /Online /Disable-Feature:Microsoft-Hyper-V

  1. When you finish all the required restarts, reserve the port you want so hyper-v doesn't reserve it back

netsh int ipv4 add excludedportrange protocol=tcp startport=6942 numberofports=10

  1. Re-Enable hyper-V (which will require a couple of restart)

dism.exe /Online /Enable-Feature:Microsoft-Hyper-V /All

when your system is back, you will be able to bind to that port successfully.

方案二:

重启电脑并立即开启目标软件也可以解决。

 

From <https://www.cnblogs.com/venusian/p/12345733.html>

netsh int ipv4 show excludedportrange protocol=tcp

 

From <https://blog.cyanoxygen.xyz/posts/HyperV-vs-preserved-ports/>

 

 

 

标签:hyper,bind,端口,https,PyCharm,pycharm,port
来源: https://www.cnblogs.com/yusisc/p/16099181.html

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有