Simple bash script to help you choose a free port on your server
-
Option 1: Just run this one-liner to quickly get a free random port. (No need to clone/download the repo)
curl -sSL https://git.io/portgen | bash
-
Option 2: You can clone the repo to your server & run
bash generate.sh
bash status.sh <port_number>