Page 1 of 1
WOL question
Posted: Wed May 03, 2006 7:28 pm
by TeddyLM
Hi all
Is ist possible to wake up a host (on LAN) with TCP protocol instead of udp ? I wrote a tool to send a magic packet via broadcast and wonder if it's possible to send such a packet directly to a host (with static IP).
Posted: Wed May 03, 2006 7:58 pm
by Trond
Theoretically TCP requires a connection. But I don't know in practise.
Posted: Wed May 03, 2006 9:16 pm
by Nik
The magic packets are sent to MAC addresses not IP addresses since a turned off computer doesn't have a Mac Address, so I don't think it's possible.
Posted: Wed May 03, 2006 10:20 pm
by ABBKlaus
Trond is absolutely right see here :
http://msdn.microsoft.com/library/en-us ... cket_2.asp
SOCK_STREAM = Provides sequenced, reliable, two-way, connection-based byte streams with an OOB data transmission mechanism. Uses TCP for the Internet address family.
SOCK_DGRAM = Supports datagrams, which are connectionless, unreliable buffers of a fixed (typically small) maximum length. Uses UDP for the Internet address family.
Posted: Wed May 03, 2006 10:34 pm
by TeddyLM
thanks