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?
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.
Sign up to join this communityIn 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
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!
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"
.
Apr 8, 2017 at 17:17
arp -a|find "dynamic"
works perfectly well.