Forum Discussion
Ping a printer using printer name
Method 1: Use ping + hostname
1. Open Command Prompt (CMD) → Enter:
cmd
ping printer name
If successful, the network DNS or NetBIOS resolution is normal.
2. If it fails, continue to the next step.
Method 2: Checking DNS Resolution via nslookup
1. Type in CMD:
cmd
nslookup Printer Name
If an IP address is returned, DNS is resolving properly, but the firewall may be blocking ICMP (Ping).
2. If “Host not found” is returned, DNS is not recording the printer name correctly.
Method 3: Using Test-NetConnection (PowerShell)
1. Open PowerShell as administrator and run:
powershell
Test-NetConnection -ComputerName Printer name -Port 9100
-Port 9100 is a common port for printers.
2. If “TcpTestSucceeded: True” is displayed, network connectivity is normal.
Method 4: Check the local host file (add resolution manually)
1. Open Notepad as administrator → Open C:\Windows\System32\drivers\etc\hosts.
2. Add at the end of the file:
plaintext
IP address Printer name
3. Save the file and try pinging the printer name again.