.remotemac R/O Property


For the currently selected socket (selection is made through sock.num) returns the MAC address of the host with which this socket had the most recent or currently has a connection.



Value Range:

Default = ""

See Also:

sock.remoteip, sock.remoteport, sock.bcast


For UDP connections, when the on_sock_data_arrival event handler is entered, the sock.remotemac will contain the MAC address of the sender of the current UDP datagram being processed. Outside of the on_sock_data_arrival event handler, the property will return the source MAC address of the most recent datagram received by the socket.