PHP Classes

NT MAC Address: Get the MAC address of a LAN client or server PC

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStar 42%Total: 6,816 All time: 298 This week: 78Up
Version License Categories
ntmacaddress 1.0.0GNU General Publi...Networking, Windows
Description 

Author

This class is meant to retrieve the MAC address associated to a network card of a computer in the same local network.

This class works only under Windows 2000 or later and can retrieve the MAC address of either the network card associated to the IP address of the current Web server or the client accessing to it.

The class does not return anything if the server is running on the loopback addreess (localhost or 127.0.0.x) as it is not associated to a network card.

Innovation Award
PHP Programming Innovation award nominee
November 2004
Number 6


Prize: One downloadable copy of Komodo Pro
Network card MAC addresses are often used as unique values specific to the machine onto which a given application is installed. These unique values are used for instance to bind per machine software licenses using the MAC address as key to grant access to protected code only on that machine.

Currently there is no solution based on a built-in PHP module that lets you retrieve the MAC address of a given network card.

This class provides a solution that resorts to an external Windows utility. Despite it is Windows specific, it provides a way that works under Windows platforms and be useful for the intended purposes.

Manuel Lemos
Picture of Andrea Giammarchi
Name: Andrea Giammarchi <contact>
Classes: 17 packages by
Country: Italy Italy
Age: 46
All time rank: 192 in Italy Italy
Week rank: 147 Down2 in Italy Italy Equal
Innovation award
Innovation award
Nominee: 5x

  Files folder image Files (1)  
File Role Description
Plain text file NtMacAddress.class.php Class Core class

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:6,816
This week:0
All time:298
This week:78Up
User Ratings User Comments (2)
 All time
Utility:71%StarStarStarStar
Consistency:69%StarStarStarStar
Documentation:-
Examples:-
Tests:-
Videos:-
Overall:42%StarStarStar
Rank:3639