Learn R Programming

netstat (version 0.1.2)

free_port: Retrieve a Transmission Control Protocol (TCP) port that is not currently in use

Description

Retrieve a Transmission Control Protocol (TCP) port that is not currently in use

Usage

free_port(random)

Value

An integer vector of length one

Arguments

random

Boolean value that defaults to FALSE

Examples

Run this code
if (FALSE) {
  free_port()
  free_port(random = TRUE)
}

Run the code above in your browser using DataLab