Jump to content

xmen

New Members
  • Posts

    1
  • Joined

  • Last visited

xmen's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. Hello, I am using <?php $ip = $_SERVER['REMOTE_ADDR']; $arp = "/usr/sbin/arp"; $mac = shell_exec("sudo $arp -an " . $ip); preg_match('/..:..:..:..:..:../',$mac , $matches); $mac = @$matches[0]; echo $mac ?> to see/verify in my browser if there will be a return for echo $mac, but there is nothing appearing on the webpage and using var_dump($mac) returns NULL on the webpage. Basically, I would want to get the client mac address on LAN. Hoping for your favorable response. Thank you.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.