Skip to content

More complete PHP to get MAC from machines on LAN

Notifications You must be signed in to change notification settings

AleSal/PHP_MAC2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

PHP_MAC2

More complete PHP to get MAC from machines on LAN

After a long search over the web for some script that could get the correct mac address of clients trying to connect to my PfSense Captive Portal and finding a lot of lines that didn't worked, I wrote this, works on any server with any device connected to the network.

**This script is formatted for BSD ARP, if you use it under Linux or Windows change the line according to the platform,i.e. "arp -a" or "arp -n"

**This version also gives you if the user comes from behind a proxy or not, and also outputs the hostname and MAC address.

About

More complete PHP to get MAC from machines on LAN

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages