Class LocalNetwork
Local network utility methods.
Inheritance
System.Object
LocalNetwork
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class LocalNetwork : object
Methods
GetAddressType(String)
Gets the type of the address.
Declaration
public static AddressType GetAddressType(string ipAddress)
Parameters
Type | Name | Description |
---|---|---|
System.String | ipAddress | The IP address. |
Returns
Type | Description |
---|---|
AddressType |
GetIPAddresses(AddressType[])
Gets a list of local IP addresses (excluding loopback).
Declaration
public static string[] GetIPAddresses(AddressType[] addressTypes)
Parameters
Type | Name | Description |
---|---|---|
AddressType[] | addressTypes | The address types. |
Returns
Type | Description |
---|---|
System.String[] |
GetIPAddresses(AddressType[], Boolean)
Gets a list of local IP addresses (excluding loopback).
Declaration
public static string[] GetIPAddresses(AddressType[] addressTypes, bool allowPrivate)
Parameters
Type | Name | Description |
---|---|---|
AddressType[] | addressTypes | The address types. |
System.Boolean | allowPrivate | Whether to include private addresses. |
Returns
Type | Description |
---|---|
System.String[] |