Hi,
Thanks for releasing the beta of Multiplicity 4.06 — the slave MAC addresses now show correctly.
Unfortunately, in my home network, the Wake-on-LAN function does not work, even though the MAC address is correct. My own program MkIpScanner sends the magic packet and wakes the computers without any issues.
After testing and analysis, it turned out that the problem lies in how Multiplicity creates the UDP socket to send the magic packet:
If the socket is created without binding (i.e., no bind) or
if the socket is bound to '0.0.0.0' and the magic packet is sent to '255.255.255.255',
then WOL DOES NOT WORK and the packet does not get sent.
However, the following two configurations do work:
Example 1: Bind to '0.0.0.0' and send to the local subnet broadcast (e.g., '192.168.2.255'):
sock := TUDPBlockSocket.Create;
try
sock.CreateSocket;
sock.Bind('0.0.0.0', '0');
sock.MulticastTTL := 64;
sock.EnableBroadcast(True);
sock.Connect('192.168.2.255', '9');
sock.SendString(packet);
finally
sock.Free;
end;
Example 2: Bind to a specific local IP address of the network interface and send to the global broadcast '255.255.255.255':
(this is often used way in my software)
sock := TUDPBlockSocket.Create;
try
sock.CreateSocket;
sock.Bind('192.168.2.114', '0'); // local IP of the network interface
sock.MulticastTTL := 64;
sock.EnableBroadcast(True);
sock.Connect('255.255.255.255', '9');
sock.SendString(packet);
finally
sock.Free;
end;
In my home network, with my Intel I226-V network card and drivers, only these configurations work properly.
Please consider implementing in Multiplicity UDP socket binding to the local IP address of the main network interface, as in Example2. The current way of sending to 255.255.255.255 without binding causes WOL not to work for me.
Thank you for your attention and willingness to improve.
Best regards.
One more thing: cases like mine might be common worldwide. If you implement correct socket binding to the IP of the primary network interface (main network card in the computer), Multiplicity will work properly everywhere.
Tomorrow - hmmm today morning I will test it in my company on another master PC with another network card.
Best regards Mirek