Showing posts with label Wake On LAN. Show all posts
Showing posts with label Wake On LAN. Show all posts

Tuesday, May 25, 2010

Android Market Update WoL Wake On Lan Wan Now Available

WoL Wake On Lan Wan is my newest Android Application.
I was looking for a WoL app that wouldn't FC on me and would support any UDP port, IPs and Domain names, multiple packets, multiple profiles, one-click widgets... so I made my own. The application is robust, extremely flexible, and powerful.
Want to know more about WoL? Have a Linksys Router you're having trouble configuring? Depicus is also a great source of information and tools.


Here is the current feature-set:
  • Multiple Profiles - It can store as many as your external storage can handle. Saving the profiles on the external storage also allows the user to share profiles with other phones if desired. Just look in the WoLANWAN directory and copy any .dat file to another phone's similarly named directory to share a profile (I use Astro for my Android File Explorer needs)
  • Profile Grouping - Want one widget for both your WiFi and WAN configurations for the same computer? Now you can group them and create a group widget that sends packets to all the computers in the group. Have a data center with loads of computers? Group them and wake up your entire data center with one touch.
  • IP and Domain Support - Not everyone has a dedicated external IP for WoW and so they turn to dynamic DNS like dyndns.org to provide a fully-qualified domain name that resolves to their machine. On the other hand when using WoL on an intranet there's probably no need for domain name because the IP is fixed or known.
  • UDP Ports 0-65535 - OK, I didn't test ALL of them but, I did test a non-standard port for my own implementation and it worked like a champ. Why limit a user to 7 or 9? You know what your firewall needs!
  • Toggle Broadcast - With the ability to turn broadcast on for profiles to use while connected to WiFi and turn it off for profiles to use while connected to 3G/Edge/G etc WoL Wake on Lan Wan has you covered.
  • Send Multiple Packets - It's UDP... meaning connectionless. Packets can lose their way sometimes in the internet, so sending a configurable number of packets at a configurable interval is a great way to make sure the message gets to the remote computer. This is also great for testing your router and machine configurations (I use a tool called Wake On Lan Monitor).
  • One-Touch Widgets - Do I really have to open the application and pick a profile every time I want to wake up my computer? No! Of course not, we know how lazy... er.. busy you are so with One-Touch Widgets you can save your precious energy. This is also really handy if you have loads of profiles and frequently use one at the bottom of the list.
  • Sorting - With a bunch of different profiles, it's nice to be able to see them alphabetically, or reverse alphabetically, or more recently changed - you get the idea.
  • Localization - The application is now localized in French and Spanish... very poorly. If you would like to submit a change to some of the poorly localized UI feel free to email me or leave a comment on my blog here. Also, if we're not localized in the language that you're interested in please email me so that I can give you a list of strings to translate.
  • CSV Export and Import - As wonderful and amazing as phones are, it sure is a pain to type on them. That's why with the new CSV export and import you can export a sample and then type a bunch of them in from a computer. Import the new CSV and voila no need to peck away on your phone for hours on end. For those of you who may be having trouble here is the order the columns should be in the CSV: Name, MAC, IP or Domain Name, UDP Port, Broadcast ("true" or "false"), Subnet Mask, Send Multiple ("true" or "false"), Packet Count, Interval (seconds). Also, please note that every column must be filled with a value.
  • Tasker task export - But wait, there's more! I finally had a chance to purchase Tasker (cool app!) and added a Tasker export to the context menu (long-press) in the main screen. You can also create it yourself by using the Action Intent in Misc. The settings are Action=com.benfinnigan.wol.widgetlaunch Cat=Launcher Extra=CPATH:<Enter the name of the profile or group profile here>
  • NO ADVERTISING - Seriously? For something as simple as a wake on lan app, no one wants to be bothered by ads.
Here are some screenshots and the QR Code:

Thursday, November 13, 2008

WOL Wake On LAN

Have a Linksys Router you're trying to get working with WOL?
Wake On LAN
Wake On LAN (Local Area Network, this is your group of computers) is functionality that allows you to turn your computer on by sending a specially built message to it.

If you're a computer geek Wake On LAN is functionality supported either by your motherboard or your operating system and your NIC (Network Interface Card - this is what you use for your Internet Connection) that listens for special packets called Magic Packets that it then uses to power on or wake up from a non-interactive state.

Wake On LAN can wake up windows from sleep (s3) or hibernate (s4) but you're looking for motherboard support if you want to power on your computer from a shut down state (s5).
What are those s numbers?

Magic Packets
Magic Packets are specially formed UDP packets that signal a specific NIC to send a wake command to the computer. The structure of these packets is a 6 byte header (all ones - so FF FF FF FF FF FF in hex) and the MAC address of the computer to be woken up repeated 16 times for a total of 102 bytes.

MAC Address
A MAC address (Media Access Control address) is a special and mostly unique identifier for NIC Cards. Typically it is 6 Bytes long with the first 3 bytes being used to identify the make of the NIC Card and the last 3 bytes being used to identify your specific card. It's important to note that these MAC addresses or Physical addresses are not guaranteed to be unique, or in other words they can be reused.

Finding your MAC Address and Subnet Mask
The first thing you want to do if you're interested in WOL (Wake On LAN) is get some information about your computer. You can do this a couple of ways, through a command prompt, or through Windows Network Connections, and you may need help from another computer on the internet for your external IP address.

First go to Start>Control Panel>Network Connections. There should be a default one named Local Area Connection. Right-click this icon and choose Status. The choose the Support tab. Then click the Details button. Write down your Physical Address (This is your MAC Address) and Subnet Mask.

If you're doing it from a command prompt I'm going to assume you know what one is and how to launch it etc etc. The command you want to type in is ipconfig /all and you will see information about the various NICs installed in your computer. Look for Ethernet adapter Local Area Connection: as this is the default for a windows internet connection and find the Physical Address (something like 00-00-00-00-00-00), and the Subnet Mask (something like 255.255.255.0).

Finding your Internet-Exposed IP Address
The easiest way to do this is to go to http://www.benfinnigan.com/WOL/whatismyip.asp and write down the IP address it returns. There shouldn't be anything else on the page.

Monday, November 10, 2008

WOL - Wake On LAN through Linksys router

Want to learn more about WOL before starting?

How I got my Linksys WRT54G to Broadcast WOL Packets to my LAN
In my particular set up I have a cable modem, piping internet to a VOIP router piping internet to a wireless Linksys WRT54G router piping internet to my machine.



I wanted to be able to turn on my computer at home without having to call my dear wife and ask her to march downstairs and fire it up. Here are the steps that I performed to make it work:
  1. Prep the NIC Card: Start>Control Panel>Network Connections>Local Area Connection>Properties>Configure> Then looked around for Wake Up, Wake On LAN, settings under the advanced tab and made sure that everything was enabled for magic packets.

    Then I went into the power management tab and unchecked the "Allow the computer to turn off this device to save power" checkbox.


  2. Prep the Motherboard: While my computer is booting I see the Dell logo and some text about how to get into settings or BIOS (typically F2 or F10 or F something). Once I was inside the BIOS I looked around for settings in regard to Wake on LAN sometimes abbreviated WOL. I made sure that WOL was enabled.

  3. Prep the Routers: This is where it gets interesting. Linksys doesn't natively support forwarding ports to the broadcast IP of 255 (you get some JavaScript error "IP value is out of range [0 - 254]"), so to get around it you can try one of two methods (they both worked for me):
    1) I used firefox and DOM Inspector to change the value of the IP for port forwarding thereby circumventing the Javasacript validation. You have to have DOMI installed in Firefox, then inspect the page with the port forwarding for applications and gaming, then right-click the value in DOMI, choose edit, and set it to 255. After that is complete just save the settings.



    2) I also tried saving the html page and modifying the form manually. This also worked like a charm. You need to remember to change the action property of the form to prepend the url of the router. If your router was 192.168.1.1 then your form tag might be <form name="portRange" action="http://192.168.1.1/PortRange.tri" method="post"> assuming PortRange.tri was what you orginally found in the form. You also need to change the value of the IP you're forwarding to be 255. This is what my HTML looked like when I was done:
    <input class="num" onblur="check_valid_value(this,0,254,errmsg.err34,this.defaultValue,lanip,networkip,broadcastip)" maxlength="3" size="3" value="255" name="ip1">

    On the VOIP router I just forwarded the port I decided to use as the Linksys WRT54G which forwards to the broadcast on my LAN.

    Wait, what UDP port am I forwarding you ask? It doesn't really matter. Typically WOL is on 7 or 9 but as long as you pick a port that isn't being used by another application (in other words pick something really high) then you're probably just fine.
  4. Test the setup: So, to test the Wake on LAN settings I used this WOL monitor and wrote my own application for sending packets. Why would I write my own packet sender? Because I couldn't find one out there that didn't apply the subnet mask to the IP and broadcast the message. With my setup I wanted the packet to go directly to my VOIP router, so I built my own WOL application. It's pretty simple:

I also added functionality to send the packet every few seconds so that I could power down my machine while I had a remote machine sending packets to me every 60 seconds and see if my machine turned back on. If you don't want the click once installer you can download it from http://www.benfinnigan.com/WOL/WOL.zip Like usual, if you find the app useful, please drop me a line.

If you're having a hard time getting WOL to work for you, then try this forum to get your particular issue sorted out.

Update:05/27/2010
New! I have an Android App available for WoL and WoW. It's called WoL Wake on Lan Wan. Check it out here: http://blog.benfinnigan.com/2010/05/android-market-update-wol-wake-on-lan.html
Download it:




Disclaimer: The views expressed in this blog entry are provided "as-is" with no guarantee expressed or implied. If tweaking this stuff bricks your box or your router I'm not responsible. Any sites I've linked to are not to be construed as an endorsement and I cannot be held responsible for anything that goes on within other internet sites and their products or forums.