Recent

Author Topic: [SOLVED] Wake On Lan  (Read 5360 times)

Edson

  • Hero Member
  • *****
  • Posts: 1302
[SOLVED] Wake On Lan
« on: April 05, 2018, 07:42:33 am »
I need to implement WOL (Wake On Lan). I'm using Synapse in my Application and I don't know if it's possible to implement WOL with Synapse.

Any suggestion are welcome.
« Last Edit: April 08, 2018, 08:12:15 pm by Edson »
Lazarus 2.2.6 - FPC 3.2.2 - x86_64-win64 on Windows 10

tr_escape

  • Sr. Member
  • ****
  • Posts: 432
  • sector name toys | respect to spectre
    • Github:
Re: Wake On Lan
« Reply #1 on: April 05, 2018, 08:06:00 am »
If you want to wake on lan to other computer, maybe this thread is can help you:

https://www.delphipraxis.net/95163-wake-lan-wol-fuer-delphi-2007-indy.html


benohb

  • Full Member
  • ***
  • Posts: 213
Re: Wake On Lan
« Reply #2 on: April 05, 2018, 08:13:40 am »
http://synapse.ararat.cz/doc/help/synamisc.html


procedure WakeOnLan(MAC, IP: string);


Quote
By this function you can turn-on computer on network, if this computer supporting Wake-on-lan feature. You need MAC number (network card indentifier) of computer for turn-on. You can also assign target IP addres. If you not specify it, then is used broadcast for delivery magic wake-on packet. However broadcasts workinh only on your local network. When you need to wake-up computer on another network, you must specify any existing IP addres on same network segment as targeting computer.

Edson

  • Hero Member
  • *****
  • Posts: 1302
Re: Wake On Lan
« Reply #3 on: April 06, 2018, 11:07:38 pm »
If you want to wake on lan to other computer, maybe this thread is can help you:

https://www.delphipraxis.net/95163-wake-lan-wol-fuer-delphi-2007-indy.html

OK. I will check.

http://synapse.ararat.cz/doc/help/synamisc.html

So easy?. I'm preparing a test for this instruction. Thanks.

I just don't know the format of the MAC. I guess it will be something like "91:75:1a:ec:9a:c7"
Lazarus 2.2.6 - FPC 3.2.2 - x86_64-win64 on Windows 10

Edson

  • Hero Member
  • *****
  • Posts: 1302
Re: Wake On Lan
« Reply #4 on: April 08, 2018, 08:11:59 pm »
Using  WakeOnLan()  http://synapse.ararat.cz/doc/help/synamisc.html works OK. Just some PC doesn't respond but I'm sure it's a BIOS LAN setting problem or something with the LAN driver.
Lazarus 2.2.6 - FPC 3.2.2 - x86_64-win64 on Windows 10

 

TinyPortal © 2005-2018