random_port {proffer} | R Documentation |
Choose a random free TCP port.
Description
Choose a random free TCP port.
Usage
random_port(lower = 49152L, upper = 65535L)
Arguments
lower |
Integer of length 1, lower bound of the port number. |
upper |
Integer of length 1, upper bound of the port number. |
Details
This function is a simple wrapper around
parallelly::freePort()
with the default port range
covering ephemeral ports only.
Value
Port number, positive integer of length 1.
Examples
random_port()
[Package proffer version 0.1.6 Index]