Network Binding Help WOL on different subnet

OK, so I found a workaround.
Still not sure how to send a WOL to a different subnet with the Network Binding BUT I did it with a script.
I found a python script that does it from a user called rschuetzler on github.
With some minor modification it works like a charm :slight_smile:
Of course you need to install the Jython-Scripting Automation

import socket, struct

class Waker():
    def makeMagicPacket(self, macAddress):
        # Take the entered MAC address and format it to be sent via socket
        splitMac = str.split(str(macAddress),':')
    
        # Pack together the sections of the MAC address as binary hex
        hexMac = struct.pack('BBBBBB', int(splitMac[0], 16),
                             int(splitMac[1], 16),
                             int(splitMac[2], 16),
                             int(splitMac[3], 16),
                             int(splitMac[4], 16),
                             int(splitMac[5], 16))
    
        self.packet = '\xff' * 6 + hexMac * 16 #create the magic packet from MAC address
    
    def sendPacket(self, packet, destIP, destPort = 7):
        # Create the socket connection and send the packet
        s=socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
        s.sendto(packet,(destIP,destPort))
        s.close()
        
    def wake(self, macAddress, destIP, destPort=7):
        self.makeMagicPacket(macAddress)
        self.sendPacket(self.packet, destIP, destPort)
        print 'Packet successfully sent to', macAddress
        
if __name__ == '__main__':
    #This is all the information that needs to be changed to make this work for you
    mac = 'AF:2F:0F:CF:0F:2F' #The MAC address of the device you want to wake
    ip = '192.168.1.123' #The IP address where the packet should be sent
    port = 9 #The port the packet will be sent on
    
    wol = Waker()
    wol.makeMagicPacket(mac)
    wol.sendPacket(wol.packet, ip, port)