Specify port range for Jupyter Notebook

Hello,

I’m looking into specifying a range of ports for jupyter notebook per our firewall rules.

Per Render Template — Open OnDemand 1.8.12 documentation

I tried below setting in before.sh.erb, but it didn’t help

port=$(find_port [10000..60000])

I would appreciate your advice on this matter.

Thank you!

Hi!

Your answer might be in this post websocket/VNC port range/settings - #3 by efranz from before. You can set the port range in the cluster config file, so submit.yml.

Something like this should work

    batch_connect:
          min_port: 2000
          max_port: 6000
1 Like

Thank you. I saw this, but vnc part confused me. I will try. Thank you.

1 Like

Seems like it worked. Thank you and have a wonderful day!

1 Like