pick-port

Get a free TCP or UDP port for the given IP address

port-client

A powerful utility for managing processes on specified ports, including options for checking port status, killing processes, handling multiple ports, enabling interactive mode, and supporting graceful termination.