I'm trying to find the MAC address for my network printer using cmd.

I've tried using nbtstat -a (ipaddress) and it says host not found. But the IP works when I ping it. Is there another command that can pull the information for me?

  • Is the printer on the same layer-2 LAN and layer-3 network as your PC?
    – Ron Maupin
    Mar 18, 2016 at 22:18
  • 2
    if they are on same network you can do: arp -a|find "x.x.x.x"
    – arana
    Mar 18, 2016 at 22:23
  • 1
    Possible duplicate of How to find MAC address of a machine in my network
    – DavidPostill
    Mar 18, 2016 at 22:54
  • I found a much easier way. I ping the device and then after enter ARP -A and it gives me even more information than I needed. BTW, arp -a|find is not a valid command
    – awoitte
    Mar 18, 2016 at 23:06
  • 1
    @awoitte Rubbish. arp -a|find "dynamic" works perfectly well.
    – DavidPostill
    Apr 3, 2016 at 13:00

2 Answers 2


In Windows, if you know the printer's IP address, you can use "ping" and "arp /a" to find the same information. You will need to do some searching. If you don't mind clearing your DNS cache with "ipconfig /flushdns" the list will be shorter.


I used nbtstat -a as well. If you know the IP of the printer you can do nbtstat -a {IP address}, without the brackets of course :). It'll kick back the MAC address of the device associated with that IP

  • 2
    OP stated in the question that using nbtstat -a <IP> returns "host not found", advising to run that command is probably not going to help. If you have any other advice, feel free to edit your answer to include these information!
    – Adalee
    Apr 8, 2017 at 15:32
  • The command may work if the device utilizes NetBIOS over TCP/IP. I.e., you will likely see the MAC address in the output if the system uses that networking protocol, but, if it doesn't, which is likely if the system is a printer, then relying on nbtstat -a ip_address to obtain the MAC address is not the best way to obtain that address. Instead, he could just ping the IP address and then examine the ARP cache with arp -a or arp -a | find "xxx.xxx.xxx.xxx".
    – moonpoint
    Apr 8, 2017 at 17:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.