OK, using your version of the script returns,
Scan started using env parameters: WOL(1) and NET(1)
Computer (from sockets): ARCAOS-44454C4.lan 192.168.0.106
ARCAOS-44454C4: 192.168.0.106: 70:20:84:0e:35:53
wake on lan sent: 7020840e35537020840e35537020840e35537020840e35537020840
e35537020840e35537020840e35537020840e35537020840e35537020840e35537020840e3553702
0840e35537020840e35537020840e35537020840e35537020840e3553
With a 25 second delay between the Computer line and the rest. The line wrap was left. And your last idea shows in the .lan suffix.
No more need to add your hosname and @ip into hosts file which has @localip only
The lan is taken because you intrf is on a lan (this is a commun default domain used for home domain when on lan)
All my equipment have ".lan" set by my internet router DNS when on, lan interface
The 25s may be normal with WOL set to 1 making it scans all @ip up to .255
I tried a litle modification to set as "UNDEFINEDxxx" equipment not having a hostname (could not try)
My last modification is to add UNDEFINEDxxx (xxx is the last qualifier of the @ip) for registered equipment without hostname and add into WPS parms of this UNDEFINED hostname the corresponding found @ip following hostname
I changed some process to use @ip if hostname has UNDEFINED into its name
I comment the 2 initial SET line into de macaddr.cmd and use those from config.sys
uncomment bof lines if you would like set these two vars without config.sys update
e.g. remove /* and */ of both lines and set value to 1 or 0
/* 'SET WOL=1' */
/* 'SET NET=1' */
Curious to know if undefined equipment are found with this update ?
(restriction, changing an equipment without the hostname with an other equipment without hostname and using the same @ip may be indicated using same icon title)
Update: NO good, have to review (a litle better but undefined didn't work as expected)