ports
Inspect, check, and pick TCP/UDP ports from the L4 pool.
TCP and UDP tunnels expose a public port on the tunnel apex (tcp.intunnel.eu:<port>,
udp.intunnel.eu:<port>). Those ports come from a shared, server-managed pool. The
ports helpers let you see the range, test a specific port, or grab a free one — all
scoped to a protocol (tcp or udp).
tunnelctl ports range <tcp|udp>
tunnelctl ports check <tcp|udp> <port>
tunnelctl ports pick <tcp|udp>ports range
Show the allowed port range and how many you're currently using.
$ tunnelctl ports range tcp
tcp: 10000-60000 (used by you: 3)ports check
Test whether a specific port is free to reserve. Exits 0 if available, 1 if not — handy for scripting.
$ tunnelctl ports check tcp 27017
tcp:27017 is available
$ tunnelctl ports check tcp 27017
tcp:27017 not available (already in use by other user)# gate an `up` on availability
tunnelctl ports check tcp 27017 && tunnelctl up tcp 27017 5432ports pick
Print a random free port from the pool to stdout (just the number — nothing else), so it composes cleanly:
$ tunnelctl ports pick tcp
47382
# use it directly
tunnelctl up tcp "$(tunnelctl ports pick tcp)" 5432Suggestion, not a reservation
pick only suggests a currently-free port; it doesn't hold it. Another client could take
it between pick and up. up tcp <port> is the authoritative step — it reserves the
port (and fails if it was taken in the meantime).