Learn R Programming

nanonext (version 1.6.1)

ip_addr: IP Address

Description

Returns a character string comprising the local network IPv4 address, or vector if there are multiple addresses from multiple network adapters, or an empty character string if unavailable.

Usage

ip_addr()

Arguments

Value

A named character string.

Details

The IP addresses will be named by interface (adapter friendly name on Windows) e.g. 'eth0' or 'en0'.

Examples

Run this code
ip_addr()

Run the code above in your browser using DataLab