Wake-on-LAN Remote Wake-Up software library for ColdFusion

ActiveSocket is a Network Communication component for Windows Developers. It runs on any 32 bit and 64 bit Windows Platform, incl. Windows 7, Windows 2008, Windows 2003, Windows 2000, Windows Vista and Windows XP.
It features many IP protocols, incl.: SSH (Secure Shell), RSH (Remote Shell), HTTP(s), FTP, ICMP Ping, NTP, SNMP v1/v2c (Get,GetNext,Set), SNMP MIB translation, SNMP Trap Sender, SNMP Trap Receiver, Telnet, DNS, TCP, UDP, IP-to-Country, Wake-On-LAN and more. Samples are included many popular development platforms, incl. Visual C# .NET, Visual Basic .NET, ASP .NET, Visual Basic, Visual C/C++, ASP, Java, Javascript, PHP, Borland Delphi, Borland C++ Builder, ColdFusion.

Wake-on-LAN (also called WOL, or WoL) is an Ethernet networking standard based on message broadcast, that allows a workstation or server to be turned on remotely by a 'magic packet' network message.

To do so, Wake on LAN must be supported by the motherboard and needs to be enabled (on most motherboards, it is disabled by default). With Wake-on-LAN, a network card listens for a special packet called "Magic Packet." This Magic Packet is broadcasted on a LAN. When a computer with Wake-on-LAN enabled receives the packet, the network card instructs the computer to power on and boots the machine.

ActiveSocket can be well integrated into ColdFusion environments. This document describes how ActiveSocket can be integrated into ColdFusion projects.

Step 1: Download and install ActiveSocket

Download ActiveSocket from the ActiveXperts Download Site and start the installation. The installation guides you through the installation process.

Step 2: Create a new ColdFusion document

Create a new blank webdocument with the ".cfm" extention. First of all we are going to build the form whitch commands and properties of the device can be filled in. Then we are going to make a source code that connects to the device.

Step 3: Implementation

Sending a telnet command to a server is quit simple. Setting up a telnet-connection can be done in four simple steps.

  • Make the ActiveSocket object
  • Fill in the properties
  • Connect to the host
  • Send the command

Once the object is created the rest is easy. To make the ActiveSocket object in ColdFusion you need the following code snippet:

 <cfobject class="ActiveXperts.WOL" type="com" name="objWOL" Action="Create"> 

Full Sample Code

There are WOL samples included with the product. You can also find them on the ActiveXperts FTP site: ftp.activexperts-labs.com/samples/asocket.