Opened on Sep 6, 2012 at 1:59:53 AM
Closed on Sep 6, 2012 at 5:32:01 PM
Last modified on Sep 7, 2012 at 8:38:22 PM
#2257 closed Feature Request (Rejected)
Retreive MAC address from UDPRecv
| Reported by: | vortex91 | Owned by: | |
|---|---|---|---|
| Milestone: | Component: | AutoIt | |
| Version: | Severity: | None | |
| Keywords: | mac address UDPRecv | Cc: |
Description
It would be helpfull to return in array the mac of the connection as part of the array
Attachments (0)
Change History (4)
comment:1 by , on Sep 6, 2012 at 2:00:02 AM
| Version: | 3.3.8.1 |
|---|
comment:2 by , on Sep 6, 2012 at 5:32:01 PM
| Resolution: | → Rejected |
|---|---|
| Status: | new → closed |
You can obtain the local MAC address in other ways.
comment:3 by , on Sep 6, 2012 at 6:19:34 PM
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 , on Sep 7, 2012 at 8:38:22 PM
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.