C# Class UlteriusServer.Api.Services.Network.NetworkService

Mostrar archivo Open project: Ulterius/server

Public Methods

Method Description
ConnectedDevices ( ) : List
GetAddress ( ) : IPAddress
GetDisplayAddress ( ) : string
GetIpAddress ( ) : IPAddress

Gets the IP address of the current PC

GetMacAddress ( ) : string

Gets the MAC address of the current PC.

GetPhysicalIpAdress ( ) : string
GetPublicIp ( string serviceUrl = "https://api.ulterius.io/network/ip/" ) : string

Private Methods

Method Description
GetIPv4Address ( ) : string
GetIpNetTable ( IntPtr pIpNetTable, [ pdwSize, bool bOrder ) : int
GetReverseDns ( string ip, int timeout ) : string
IsMulticast ( IPAddress ip ) : bool

Returns true if the specified IP address is a multicast address

Method Details

ConnectedDevices() public static method

public static ConnectedDevices ( ) : List
return List

GetAddress() public static method

public static GetAddress ( ) : IPAddress
return System.Net.IPAddress

GetDisplayAddress() public static method

public static GetDisplayAddress ( ) : string
return string

GetIpAddress() public static method

Gets the IP address of the current PC
public static GetIpAddress ( ) : IPAddress
return System.Net.IPAddress

GetMacAddress() public static method

Gets the MAC address of the current PC.
public static GetMacAddress ( ) : string
return string

GetPhysicalIpAdress() public static method

public static GetPhysicalIpAdress ( ) : string
return string

GetPublicIp() public static method

public static GetPublicIp ( string serviceUrl = "https://api.ulterius.io/network/ip/" ) : string
serviceUrl string
return string