

Make sure you're looking at your ethernet interface and not your wireless interface. The Physical Address value for your ethernet card is your MAC address. When the command window appears, type ipconfig /all. For PCs running Windows 8 and later, launch the "Command" program by searching for it in your applications list. Finding the Ethernet MAC Address Microsoft Windowsįor PCs running Windows 7 and earlier, Go to Start Menu > Programs > Accessories > DOS Command Prompt. Both wired and wireless network interfaces have these addresses. It is a 12 digit hexadecimal number usually delimted by colons, e.g. Berkeley Statistics Annual Research Symposium (BSTARS)Įvery computer's network interface has a unique identifer called a MAC address.Artificial Intelligence/Machine Learning.Well, you're out of luck unless you can have the client volunteer that information and transmit via other means. #look for the output line describing our IP address #run the external command, break output into lines So, if you are building some kind of LAN based system and your clients are on the same ethernet segment, then you could get the MAC address by parsing the output of arp -n (linux) or arp -a (windows).Įdit: you ask in comments how to get the output of an external command - one way is to use backticks, e.g. The client MAC address will not be available to you except in one special circumstance: if the client is on the same ethernet segment as the server. You can get the client IP from $_SERVER Client MAC address Server MAC addressįor the MAC address, you could parse the output of netstat -ie in Linux, or ipconfig /all in Windows. You can get the server IP address from $_SERVER.
