But if you are already using a VPN can't you just send the packet to the broadcast ip 192.168.51.255 for example?
For example, from my mobile connected to the wifi i simply send the packet to the adress 192.168.x.255:9 to the specific mac adrress and it works. Haven't tested it using a vpn, with...