I need to know the MAC and the IP address of the connect clients, how can I do this in PHP?
We can get MAC address in Ubuntu by this ways in php
$ipconfig = shell_exec ("ifconfig -a | grep -Po 'HWaddr \K.*$'"); // display mac address echo $ipconfig;