WOL packet over VPN

Hello, I have a VPN connecting my home network to a remote domain I'm admin of.

So, my home network has a 192.168.2.xxx structure, the remote domain 192.168.1.xxx.

Windows Server SBS 2011 is installed on the main remote server, W7 Ultimate on my work pc.

I have been trying to use WOL directly from my work pc, but it doesn't work. It only works if I enter the remote server with RDP (or Teamviewer or VNC...) and execute the command from there.

I am using a free command-line utility called wolcmd, here's an example of a command which works locally but not remotely:

WolCmd D0-17-38-2F-AF-E1 192.168.1.34 255.255.255.0 21234

So I was wondering, is there a way to make this work via VPN or should I just let it go?

Thanks in advance guys.
Daniele BrunengoIT Consultant, Web DesignerAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Daniele BrunengoConnect With a Mentor IT Consultant, Web DesignerAuthor Commented:
I did it using PSTools from Sysinternals.

A command line like this one solved the problem:

PsExec.exe \\TheServer C:\Users\Whatchamacallit\Thingamajig\BatchFile.bat
0
 
Seaton007Commented:
The utility you are using is probably being blocked by a firewall.
0
 
Daniele BrunengoIT Consultant, Web DesignerAuthor Commented:
There's a hardware firewall, the one managing the VPN. I have to check its rules, I was expecting it to treat the VPN as it treats its local network but I guess that's not the case.
0
 
Daniele BrunengoIT Consultant, Web DesignerAuthor Commented:
Actually I looked around and it looks like this can't be done if the packet is sent from your local pc to the remote server. An SSH script maybe could work? Or anything allowing me to run a command from my local machine and which executes something (the wol batch) on the remote machine.
0
 
Daniele BrunengoIT Consultant, Web DesignerAuthor Commented:
Simple enough reason: I solved it.
0
All Courses

From novice to tech pro — start learning today.