I know with Linux, ports can be a little finicky. A process opens the port and keeps it open even after the program crashes. You can check to see what’s got the port tied up with the netstat command. If it’s not installed, Ubuntu and Debian have it in their repos in the net-tools package.

Simply type sudo netstat -lp | grep 30120 and you’ll see what’s currently tying up that port. An example from my sever:

$> sudo netstat -lp | grep 30120
tcp   0   0 0.0.0.0:30120   0.0.0.0:*  LISTEN  1385043/ld-musl-x86
udp6  0   0 0.0.0.0:30120   [::]:*             1385043/ld-musl-x86

This shows the binary chugging along hanging on to port 30120,

Hope this helps, though it doesn’t solve your problem, you can at least get a look under the hood.