Wake on lan WOL (Windows only)

Share your advanced PureBasic knowledge/code with the community.
6theo4
New User
New User
Posts: 8
Joined: Sun Dec 08, 2013 8:44 pm

Re: Wake on lan WOL (Windows only)

Post by 6theo4 »

maybe with:
> route ADD 255.255.255.255 MASK 255.255.255.255 192.168.1.2
destination^ ^mask ^gateway(use interface ip)
User avatar
Michael Vogel
Addict
Addict
Posts: 2797
Joined: Thu Feb 09, 2006 11:27 pm
Contact:

Re: Wake on lan WOL (Windows only)

Post by Michael Vogel »

Thanks, but this can't be done because of missing admin rights on the specific PC in daily life. Anyhow this route is also seen by default for all interfaces (including the loopback) but the broadcast is created only for one interface (Interface 0).

While playing around I also found out, that the internal numbering scheme for interfaces may change (no idea if other paramters, like Hyper-V could influence the behaviour as well) :shock:
So the output channel for the broadcasts is more unpredictable as expected.

I am trying to bind the socket to a specific interface now, if this works, it would be still necessary to enumerate all interfaces to find the right one...
Post Reply