Home All Groups Group Topic Archive Search About

How to send a WOL Magic Packet?

Author
15 Nov 2007 10:57 PM
Martin
I want to write a little app that will send out the special "magic
packet" to start up a computer on my LAN.

I've downloaded a couple of free apps that do this but they're rather
simplistic (eg: they don't save the needed info from one use to the
next). I'm thinking it shouldn't be too difficult to write something
myself. But, I don't know the details of what the "magic packet" is
made up of or how it's laid out. I think it's a UDP message but that's
about all I know.

Can anyone point me to something that would tell me what I need to
know? Maybe even some VB6 code?

Thanks

Author
15 Nov 2007 11:25 PM
Randy Birch
Can you post the code you have already (all of it), or point us to the code
you're using?

--


Randy Birch
http://vbnet.mvps.org/

Please respond to the newsgroups so all can benefit.


"Martin" <martinval***@comcast.net> wrote in message
news:97jpj35rnk815g3hcnvtgdqohsm09o7lor@4ax.com...
I want to write a little app that will send out the special "magic
packet" to start up a computer on my LAN.

I've downloaded a couple of free apps that do this but they're rather
simplistic (eg: they don't save the needed info from one use to the
next). I'm thinking it shouldn't be too difficult to write something
myself. But, I don't know the details of what the "magic packet" is
made up of or how it's laid out. I think it's a UDP message but that's
about all I know.

Can anyone point me to something that would tell me what I need to
know? Maybe even some VB6 code?

Thanks
Author
15 Nov 2007 11:52 PM
Michael C
Show quote
"Martin" <martinval***@comcast.net> wrote in message
news:97jpj35rnk815g3hcnvtgdqohsm09o7lor@4ax.com...
>I want to write a little app that will send out the special "magic
> packet" to start up a computer on my LAN.
>
> I've downloaded a couple of free apps that do this but they're rather
> simplistic (eg: they don't save the needed info from one use to the
> next). I'm thinking it shouldn't be too difficult to write something
> myself. But, I don't know the details of what the "magic packet" is
> made up of or how it's laid out. I think it's a UDP message but that's
> about all I know.
>
> Can anyone point me to something that would tell me what I need to
> know? Maybe even some VB6 code?

Mate, I was interested in this myself so went to the extra trouble of
googling it. In all of 30 seconds I had an answer. I stuck it in VB and it
worked.

Michael
Author
16 Nov 2007 1:35 AM
Martin
On Thu, 15 Nov 2007 18:25:54 -0500, "Randy Birch"
<rgb_removet***@mvps.org> wrote:

>Can you post the code you have already (all of it), or point us to the code
>you're using?

I have nothing - I'm not using any code yet.

What I have are a couple of free, compiled apps that I downloaded and
installed.
Author
16 Nov 2007 1:38 AM
Martin
Show quote
On Fri, 16 Nov 2007 10:52:12 +1100, "Michael C" <mike@nospam.com>
wrote:

>"Martin" <martinval***@comcast.net> wrote in message
>news:97jpj35rnk815g3hcnvtgdqohsm09o7lor@4ax.com...
>>I want to write a little app that will send out the special "magic
>> packet" to start up a computer on my LAN.
>>
>> I've downloaded a couple of free apps that do this but they're rather
>> simplistic (eg: they don't save the needed info from one use to the
>> next). I'm thinking it shouldn't be too difficult to write something
>> myself. But, I don't know the details of what the "magic packet" is
>> made up of or how it's laid out. I think it's a UDP message but that's
>> about all I know.
>>
>> Can anyone point me to something that would tell me what I need to
>> know? Maybe even some VB6 code?
>
>Mate, I was interested in this myself so went to the extra trouble of
>googling it. In all of 30 seconds I had an answer. I stuck it in VB and it
>worked.
>
>Michael
>

Would you mind pointing me to what you found?

I spent at least 30 minutes googling and found nothing in the way of
code. What I did find were some complete applications - a couple of
which I downloaded, installed and played with a little (as I explained
in my original post).
Author
16 Nov 2007 1:47 AM
Michael C
"Martin" <martinval***@comcast.net> wrote in message
news:nuspj35a8sgofrakg7ourb02o6cnlh3va1@4ax.com...
> Would you mind pointing me to what you found?
>
> I spent at least 30 minutes googling and found nothing in the way of
> code. What I did find were some complete applications - a couple of
> which I downloaded, installed and played with a little (as I explained
> in my original post).

Search google for "magic packet vb6" and click on the very first link. Code
is at the bottom of the page, ignore the bit that says "email this code to
me".

Show quote
>
>
Author
16 Nov 2007 3:28 PM
Martin
Show quote
On Fri, 16 Nov 2007 12:47:20 +1100, "Michael C" <mike@nospam.com>
wrote:

>"Martin" <martinval***@comcast.net> wrote in message
>news:nuspj35a8sgofrakg7ourb02o6cnlh3va1@4ax.com...
>> Would you mind pointing me to what you found?
>>
>> I spent at least 30 minutes googling and found nothing in the way of
>> code. What I did find were some complete applications - a couple of
>> which I downloaded, installed and played with a little (as I explained
>> in my original post).
>
>Search google for "magic packet vb6" and click on the very first link. Code
>is at the bottom of the page, ignore the bit that says "email this code to
>me".
>

Michael C - Thanks for the tip. I downloaded that info and used it to
write a little program that does just what I want.

FWIW, I had been googling for "wake on lan", searching both in the
groups and on the internet in general and had been unsuccessful in
finding any code.

Thanks again.
Author
18 Nov 2007 10:05 PM
Michael C
"Martin" <martinval***@comcast.net> wrote in message
news:9fdrj3pagggf8qsng2kvh7ak7udb6qi4a9@4ax.com...
> Michael C - Thanks for the tip. I downloaded that info and used it to
> write a little program that does just what I want.
>
> FWIW, I had been googling for "wake on lan", searching both in the
> groups and on the internet in general and had been unsuccessful in
> finding any code.

You need to put the term vb6 in there otherwise you just get articles on
wol.

Michael

AddThis Social Bookmark Button