port for network

Get a free port from system.

Signature

> port (start) (end)

Parameters

  • start: The start port to scan (inclusive)
  • end: The end port to scan (inclusive)

Examples

get a free port between 3121 and 4000

> port 3121 4000
3121

get a free port from system

> port