PyCharm Remote Python Interpreter keeps changing the port it uses

Answered

 

Hi

I need to run a remote python Interpreter over SSH, I also need to open ports on the firewall in order to get this working 

When I run it, I I get this

ssh://me@10.208.16.4:2222/usr/bin/python3 -u /home/ssh_user/.pycharm_helpers/pydev/pydevd.py --multiproc --qt-support --client '0.0.0.0' --port 38894 --file /code/mycode/stuff.py

If I run it again I get a different port 

.....  --port 34130

Can I fix this port number so it does not change ?

thanks

Martin

 

 

 

 

 

0
6 comments

Hi Mg, unfortunately it's not possible. We have a feature request about this: PY-21325. As a workaround one can use Remote Debug Server, which allows to specify the port: https://www.jetbrains.com/help/pycharm/remote-debugging.html#python-debug-server

0
Avatar
Permanently deleted user

Same problem here.

The randomly generated ports are blocked by my firewall and I can not open them, is there a way to set a static port?

0
Avatar
Permanently deleted user

I have the same problem. Mine ssh host is in fact a docker image.Additional ports are not exposed. A more over I can not expose random port number.

0

Hi Ivan,

Sorry for inconvenience. Please vote for https://youtrack.jetbrains.com/issue/PY-21325 in order to increase its priority.

0

Please sign in to leave a comment.