View previous topic :: View next topic |
Author |
Message |
jeff r -
Joined: 20 Oct 2004 Posts: 3
|
Posted: Thu Nov 18, 2004 7:05 pm Post subject: run wake on lan script or batch file |
|
|
Hi, is there a way to run wake on lan script or batch file from a web page?
I received the "batwrap" bat file thing from the Aprellium Admin (forum post), but I am not sure how to use it. Normally within the lan, I run wol.bat which is:
c:\wol\wol.exe 123456789ab (12... is the mac address)
exit
I would like to be able to wake/boot a server when needed from the internet.
I think this is where I got wol: http://www.gammadyne.com/cmdline.htm#wol its been a while.
Thanks, Jeff |
|
Back to top |
|
 |
Anonymoose -
Joined: 09 Sep 2003 Posts: 2192
|
Posted: Thu Nov 18, 2004 7:45 pm Post subject: |
|
|
You won't be able to send a WOL packet from the internet to your LAN as far as I know. Do you only have one machine to act as a server? You'd need one machine to be on on your LAN permenantly ready to send a WOL packet to the server, which would kind of defeat the object of the whole process. If you have a router, check whether it supports sending WOL packets itself, that's the only other idea I can think of. |
|
Back to top |
|
 |
jeff r -
Joined: 20 Oct 2004 Posts: 3
|
Posted: Fri Nov 19, 2004 5:18 am Post subject: |
|
|
The webserver that would run the wol packet sits next to the computer I want to wake up. All this would be behind the router or within the lan. |
|
Back to top |
|
 |
Anonymoose -
Joined: 09 Sep 2003 Posts: 2192
|
Posted: Fri Nov 19, 2004 10:30 am Post subject: |
|
|
Oh!
Well in that case, you should be able to use the batwrap on the server as a CGI script to just send the WOL packet to the computer when someone views the page with it embedded in. I'd have to see whatever readme came with the batwrap to be able to offer any thoughts on what syntax/links to use though... Does it not give a simple way to just use batwrap to launch wol.bat ? |
|
Back to top |
|
 |
|