/random-port-generator

Simple bash script to help you choose a free port on your server

Primary LanguageShellMIT LicenseMIT

Random port generator

Simple bash script to help you choose a free port on your server

Usage

To get a random free port

  • 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
    

To check the status of desired port

    bash status.sh <port_number>

License

The MIT License