find_free_port
Find free local ports by binding them, optionally within a range, so you can start a server on another port instead of stopping the process holding one.
Instructions
Find ports that are free right now, verified by binding them, optionally within a range (e.g. 3000-3999). Use it to start a server on another port instead of stopping what holds one.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | how many free ports (default 1) | |
| range | No | where to look, e.g. 3000-3999 (default: from 1024 up) |