How to get the MAC address and IP of the incoming connection on Mongoose Networking Library?

I need to get the mac address and ip of incoming network connections on the web server.

Any idea?

The remote IP address can be found in struct mg_connection
Example here

To get the MAC address, an ARP request is needed. AFAIK, the library does not provide that.

1 Like