The well-known Depicus WoL pages provide Windows binaries (GUI and CLI) to send WoL packets, as well as an online form.
If you are on Linux or prefer sending it on your own (I mean, not using a closed binary), you can use a few lines of Python as explained by myf00 with Python3 code.
The following code is the same for Python2 (just removed b prefix in front of binary strings).
#!/usr/bin/python from socket import socket, AF_INET, SOCK_DGRAM, SOL_SOCKET, SO_BROADCAST data = '\xFF\xFF\xFF\xFF\xFF\xFF' + '\xAA\xAA\xAA\xAA\xAA\xAA' * 16 sock = socket(AF_INET, SOCK_DGRAM) sock.setsockopt(SOL_SOCKET, SO_BROADCAST, 1) sock.sendto(data, ('<broadcast>', 9)) sock.close()Replace AA's in \xAA\xAA\xAA\xAA\xAA\xAA with your MAC address.
If you're on LAN, should work as is. If you're on the internet, replace <broadcast> with your public IP address (you may need to enable a "WoL proxy" feature, or manually configure your router to forward UDP port 9 packets to your server).