find-free-port
find-free-port copied to clipboard
suggestion: command line version
hi, I think it could be helpful to have a command line version:
> find-free-port 3000 3100
3000
usage example:
#!/bin/bash
port=$(find-free-port 3000)
run-server --port $port
run-client --addr 0.0.0.0:$port