WakeOnLAN.WakeUp Method (String, String, Int32)

Tungsten Suite

WakeOnLANWakeUp Method (String, String, Int32)

Broadcasts a magic packet to wake up the machine with the given MaC address

Namespace:  W.Net
Assembly:  Tungsten.Net (in Tungsten.Net.dll) Version: 2.0.2
Syntax
C#
public static bool WakeUp(
	string macAddress,
	string ipBroadcastAddress = "192.168.1.255",
	int port = 9
)

Parameters

macAddress
Type: SystemString
The MAC address of the machine to wake up
ipBroadcastAddress (Optional)
Type: SystemString
The broadcast address. This should be determined by the machine's IP address and the desired network mask.
port (Optional)
Type: SystemInt32
The socket port

Return Value

Type: Boolean
True if the magic packet was successfully sent, otherwise False
Remarks
See Also