/errors/nmap/host-seems-down-try-pn
nmap: Note: Host seems down. If it is really up, but blocking our ping probes, try -Pn
The commands on this page have not been executed by our verification runner yet.updated
- tool
- Nmap
- exit code
- 0
- versions
- Nmap 7.x
- os
- linux, macos, windows
Note: Host seems down. If it is really up, but blocking our ping probes, try -Pn means Nmap's host discovery phase got no answer, so it skipped the port scan. Host discovery sends ICMP echo and a few TCP probes; many hosts and firewalls drop all of them. If you know the host is up, run the scan with -Pn, which treats the host as online and goes straight to port scanning: nmap -Pn -p 22,80,443 HOST. Nmap still exits with status 0, as the run itself succeeded.
What it looks like
Note: Host seems down. If it is really up, but blocking our ping probes, try -Pn
Nmap done: 1 IP address (0 hosts up) scanned in N secondsFixes
nmap -Pn HOST # skip discovery, scan the top 1000 ports
nmap -Pn -p 22,443 HOST # only the ports you care about (much faster with -Pn)
sudo nmap HOST # root: ICMP, timestamp, SYN to 443 and ACK to 80 as discovery
sudo nmap -PS22,443 -PA80 HOST # custom discovery probes the firewall allows
nmap -Pn --reason -p 22 HOST # show why each port got its stateWith -Pn and many targets, scans take longer: every address is scanned even if nothing lives there. On a local network, sudo nmap -sn 192.168.1.0/24 uses ARP, which firewalls on the hosts cannot block.
Which discovery probes are used
| Situation | Default discovery probes |
|---|---|
| Root, target on the local Ethernet network | ARP requests (and IPv6 neighbor discovery) |
| Root, remote target | ICMP echo, TCP SYN to 443, TCP ACK to 80, ICMP timestamp |
| Unprivileged user | TCP connect() to ports 80 and 443 |
| -Pn | None: every target is treated as up |
Sources
Related pages
commands · nmapnmap -sn 192.168.1.0/24: find live hosts on a network (ping scan)nmap -sn 192.168.1.0/24 finds live hosts without scanning ports. Run it with sudo for ARP discovery, list only the IPs, and handle hosts that block probes.commands · nmapnmap -p: scan specific ports, port ranges or all 65535 portsnmap -p 22,80,443 HOST scans only those ports; -p 1-1024 a range, -p- all 65535, -p U:53,T:22 mixes UDP and TCP. --top-ports N and --open narrow the results.errors · nmapnmap: You requested a scan type which requires root privileges. QUITTING!nmap quits with requires root privileges when a SYN, UDP or OS scan needs raw sockets. Run it with sudo, use a TCP connect scan (-sT), or grant capabilities.flags · nmapnmap -sV: detect service versions on open portsnmap -sV probes open ports to identify the real service and version instead of guessing from the port number. Intensity levels, options and reading results.