PyCharm binds to a port that I need to use :(
Answered
Hello friends.
I've joined a new company and they have a setup for running the software during dev that includes celery.
The issue is, celery needs port 6942 (on our setup) and pycharm binds to it first (I believe is the subscription stuff?).
Is there a way to circumvent this? I can't change the port number for bigger reasons, so I need to do something on PyCharm's end.
Thanks :D
Please sign in to leave a comment.
Hi, which OS you are using?
Hi @Pavel, I`m currently using Linux Mint 19.1.
Thanks :)
Thank you, it seems the port number is hardcoded https://github.com/JetBrains/intellij-community/blob/ae6f7b344b3c267e71c687697d495017008a9df2/platform/platform-impl/src/com/intellij/idea/SocketLock.java#L135 The only solution I came up with is to bind the port before launching PyCharm (e.g. nc -l 6942) so IDE will pick the next one available (6943). That's kind of a stupid workaround, but I have no better ideas at the moment.