Maybe useful?

Things worth telling about

WOL for Windows (works with multiple network cards)


WOL (wake on LAN):

  • You need device ready to wake up (your computer, NAS, ...)

  • Download TomazWOL.exe and run it in command line or create batch file.

Usage: TomazWOL.exe MAC_address [0 or 1]

MAC_address format: 11:22:33:44:55:66, 11-22-33-44-55-66 or 112233445566 

optional:
0 = send broadcast on network card with default gateway,
       only from first network card it finds with default gateway,
1 = send broadcast on all network cards

If you like this program and you want to be improved, you can donate :)





Example: C:\Temp\TomazWOL 60-67-20-1F-63-5A 1

==============================================================

TomazV WOL - For Windows :), v1.0, 25.10.15 (compiler: MinGW)

--------------------------------------------------------------

 WOL sent from IP Address: 169.254.23.8 to MAC: 6067201F635A
 WOL sent from IP Address: 192.168.164.1 to MAC: 6067201F635A
 WOL sent from IP Address: 127.0.0.1 to MAC: 6067201F635A
 WOL sent from IP Address: 192.168.4.102 to MAC: 6067201F635A


Why have I created my wol program?

On my laptop I have Winodws 7 with virtual machines. So I have multiple network cards (virtual :).
When laptop is connected via ethernet cable I can wake up my NAS, but when my laptop is connected to wireless connection wolcmd.exe and other programs don't work!
More info here.

I have installed Eclipse and wrote TomazWOL in C which send magic packet on all network cards installed on my system. It is compiled with MinGW and all .dll integrated in exe file (--static), so no installation is needed. I have set broadcast to 255.255.255.255 and UDP port 7.
It works for me and I didn't parameterized broadcast or port. Maybe in next release, if someone donates anything:)

If I wouldn't write my wol, one solution would be to change routing table (for wifi network card) to lower matric for broadcast traffic. That would be too easy, and not real challenge :)

Example WOL magic packet:



© 2015 by TomazV.

You're welcome to link to this site or use a single image and brief description to link back to any post. Republishing posts in their entirety is prohibited without permission.

News | About | Contacts