@arashnh11 FYI @mario edited his original response to fix it to the correct solution. To repeat his solution (since edits do not trigger an email):
Yes you can set the port range that WebSockify uses, simply modify your cluster configuration like so:
batch_connect:
vnc:
min_port: 2000
max_port: 65535
You can also set the min/max port range in individual batch connect applications as well.
Note the context of this in a full cluster config is:
v2:
metadata:
title: "Owens"
login:
host: "owens.osc.edu"
job:
adapter: "torque"
host: "owens-batch.ten.osc.edu"
lib: "/opt/torque/lib64"
bin: "/opt/torque/bin"
version: "6.0.1"
batch_connect:
vnc:
min_port: 2000
max_port: 65535
script_wrapper: "module restore\nmodule load ondemand-vnc\n%s"