fm.liveswitch.LocalNetwork Class Reference

Local network utility methods. More...

Static Public Member Functions

static String[] getIPAddresses (AddressType[] addressTypes)
 Gets a list of local IP addresses (excluding loopback). More...
 
static String[] getIPAddresses (AddressType[] addressTypes, boolean allowPrivate)
 Gets a list of local IP addresses (excluding loopback). More...
 
static AddressType getAddressType (String ipAddress)
 
static byte[] getAddressBytes (String ipAddress)
 
static String getAddress (byte[] addressBytes)
 

Detailed Description

Local network utility methods.

Member Function Documentation

◆ getAddress()

static String fm.liveswitch.LocalNetwork.getAddress ( byte[]  addressBytes)
static

◆ getAddressBytes()

static byte [] fm.liveswitch.LocalNetwork.getAddressBytes ( String  ipAddress)
static

◆ getAddressType()

static AddressType fm.liveswitch.LocalNetwork.getAddressType ( String  ipAddress)
static

◆ getIPAddresses() [1/2]

static String [] fm.liveswitch.LocalNetwork.getIPAddresses ( AddressType[]  addressTypes)
static

Gets a list of local IP addresses (excluding loopback).

Parameters
addressTypesThe address types.
Returns

◆ getIPAddresses() [2/2]

static String [] fm.liveswitch.LocalNetwork.getIPAddresses ( AddressType[]  addressTypes,
boolean  allowPrivate 
)
static

Gets a list of local IP addresses (excluding loopback).

Parameters
addressTypesThe address types.
allowPrivateWhether to include private addresses.
Returns