Attachments (0)
Change History (4)
comment:1 by , 14 years ago
| Version: | 3.3.8.1 |
|---|
comment:2 by , 14 years ago
| Resolution: | → Rejected |
|---|---|
| Status: | new → closed |
You can obtain the local MAC address in other ways.
comment:3 by , 14 years ago
Not the local mac. take the code below as example
UDPStartup()
$Broadcast=UdpOpen("255.255.255.255", 69, 3)
if @Error <> 0 Then
Msgbox(0,"",@error)
Exit
EndIf
UDPSend ($Broadcast,"data")
While 1
$data = UDPRecv($Broadcast, 200, 3)
If $data <> "" Then
; MsgBox(0, "UDP DATA", $data[0], 1)
EndIf
Wend
Func OnAutoItExit()
UDPCloseSocket($Socket)
UDPShutdown()
EndFunc
In this case your broadcasting and getting response from clients. If you want to obtain the MAC of clients which is clearly in all the incoming traffic you can not via autoit. If you just set a flag for the incomming connection to have the mac of connected client it would be very helpfull for building server with clients.
comment:4 by , 14 years ago
The MAC address does not exist on the same layer as the UDP socket. What you want is ARP. We will not be building ARP into AutoIt nor will we add extensions to other protocols to have limited ARP capabilities.

Automatic ticket cleanup.