/ SECURITY FIELD NOTES
Nmap Reconnaissance: Commands, Results and Troubleshooting
Learn Nmap reconnaissance with scoped lab commands, port-state explanations, service detection, troubleshooting and an evidence checklist for reporting.

Nmap reconnaissance helps you find reachable hosts, check exposed ports and investigate the services answering on an authorised network. Start with a small, agreed scope, record the scan options, then verify what the responses mean. An open port establishes exposure from your scanning position; it does not establish a vulnerability.
This walkthrough uses an illustrative host-only lab with a target at 192.168.56.10. Replace that address only with a system included in your written testing scope. The commands and sample output below are teaching examples, not results from a newly performed assessment.
Define the question and the lab before scanning
Write down the target address, testing window, permitted checks and person to contact if something behaves unexpectedly. For a learning lab, use an isolated virtual network connecting your scanning machine and a target you control. Bridged networking can expose other devices on the physical network, so verify the adapter configuration before running a command.
Decide what you need to learn. “Which approved TCP services can this machine reach?” is a useful first question. “Find everything” gives you little guidance about acceptable traffic or how to interpret incomplete results. Confirm that the address still belongs to the intended target; a reused DHCP address can send an otherwise reasonable command to the wrong device.
Record your installed version with nmap --version. Keep the platform and network mode in your notes because privileges and network position affect scan behaviour. Installation packages are available from the official Nmap download page. A Kali release number alone does not identify the Nmap build used.

Choose a staged reconnaissance workflow
| Question | Example option | What remains uncertain |
|---|---|---|
| Does the approved address respond to discovery? | -sn | A silent host may still be online. |
| What happens on selected TCP ports? | -sT -p 22,80,443 | Other ports and UDP are outside this check. |
| What service answers? | -sV | A fingerprint can be incomplete or misleading. |
| Can a specific script answer an approved question? | --script | Each script has its own behaviour and limitations. |
| Can someone review the observations later? | -oA | Files still need scope, context and interpretation. |
Run each stage because you need its answer. This makes it easier to explain why a later check was necessary and to stop when the agreed scope has been satisfied.

Check host discovery without mistaking silence for absence
nmap -sn 192.168.56.10
The -sn option requests host discovery without the ordinary port scan. Discovery is broader than a single ICMP echo request: the probes used depend on privileges, options and whether the target is on the local Ethernet network. The official host-discovery reference explains these differences.
If the result says the host seems down, check the target console, virtual adapter, address and route first. A host that blocks discovery may still answer an explicitly permitted service check. For that known, single lab target, -Pn can skip discovery. It does not bypass the firewall or make an unreachable service reachable. Avoid applying it casually to a large address range.
Inspect a small set of TCP ports
nmap -sT -p 22,80,443 --reason -oA lab-tcp 192.168.56.10
This example uses TCP connect scanning on three specified ports and records why Nmap assigned a state. It also saves normal, XML and grepable files with the lab-tcp basename. Use a new basename for each evidence set so that a later run does not overwrite work you need to keep.
An ordinary nmap 192.168.56.10 checks the commonly used 1,000 TCP ports, rather than every TCP port or any complete set of UDP ports. A privileged default scan may use SYN scanning; explicitly choosing -sT makes this example's TCP method clear. Nmap documents the available methods in its port-scanning techniques reference.
If your approved assessment requires all TCP ports, agree the extra traffic and time before using -p-. A larger port range changes coverage; it does not turn a port scan into a complete application-security assessment. UDP requires its own scan method and interpretation.
Read port states from the scanner's position
The following output is illustrative:
PORT STATE SERVICE REASON
22/tcp open ssh syn-ack
80/tcp closed http conn-refused
443/tcp filtered https no-response
Nmap's port-state definitions distinguish six states. Open means a service is accepting the relevant traffic. Closed means the port responds but has no listening application for that probe. Filtered means filtering prevents a firm open-or-closed decision. Unfiltered indicates reachability without an open-or-closed determination for that scan technique. Open|filtered and closed|filtered explicitly retain uncertainty between the named states.
Do not write “443 is secure” from a filtered result. The same service can appear differently from another network location. Check the expected access policy with the system owner and retain the original response details. Likewise, a closed result is not evidence that an application has been patched.
Separate a port label from a detected service
nmap -sT -sV -p 22,443 --reason -oA lab-services 192.168.56.10
Without service detection, a label such as mysql on port 3306 can come from a port-name association. With -sV, Nmap sends additional probes and compares responses with its service database. A result is still an observation to corroborate, particularly when a proxy, altered banner or early connection closure affects the reply.
For example, tcpwrapped does not establish that MySQL is running. Keep the finding as an unidentified or restricted service until a permitted follow-up or the asset owner's configuration supplies evidence. A version string also does not prove that a particular CVE is exploitable: package backports and configuration matter. Consult the service-detection documentation before drawing a stronger conclusion.
Treat operating-system identification as a fingerprint
Operating-system detection uses response characteristics to compare the target with known fingerprints. It is more dependable when suitable open and closed ports are available. Firewalls and other network conditions can leave the result uncertain. Keep Nmap's warning beside the suggested OS in your notes instead of replacing it with a confident platform claim.
Ports 135, 139 and 445 can suggest Windows-related services, but port numbers alone do not prove the operating system. Nor does a short network distance prove authorisation, a particular virtualisation platform or isolation from other machines. The OS-detection reference describes fingerprinting and its conditions. Use asset records or console access when the owner needs a confirmed platform identity.
Review script behaviour before adding it
The Nmap Scripting Engine automates many checks, with behaviour varying by script. Read a selected script's help and documentation before including it in the scope. Avoid treating an entire category as harmless. The official NSE reference notes that some default scripts can be intrusive and that scripts are not sandboxed.
The -A option combines OS detection, version detection, default scripts and traceroute when the required privileges are available. It does not automatically mean all ports, a faster timing template or a complete vulnerability assessment. Start with the narrower options that answer your question. See the documented meaning of -A.
Troubleshoot a result before increasing scan intensity
| Problem | First check | Useful next decision |
|---|---|---|
| The host appears down | Target console, IP address, VM adapter and route | Consider a scoped service check with discovery skipped only when justified. |
| Every selected port is filtered | Scanner location and expected firewall policy | Ask the owner whether this view matches the intended access boundary. |
| A familiar service has an unexpected label | Whether the result came from a port name or a response fingerprint | Use approved service detection or owner-side configuration evidence. |
| A scan is taking too long | Target count, port range, retries and extra detection features | Reduce the question before increasing rate or concurrency. |
| Output files are missing | Working directory, permissions and basename | Repeat only the necessary authorised check after fixing the evidence path. |
Turn observations into a useful review record
Keep the command, Nmap version, source network, target, time window and output files together. XML is useful for structured processing; retain the human-readable output for review as well. The output reference explains the supported formats.
A practical record separates observation, interpretation and follow-up. “22/tcp accepted a connection from the lab scanner” is an observation. “SSH may be reachable beyond the intended management boundary” needs the owner's access policy. “Confirm the management subnet restriction and retest from the same source” is a follow-up. If a service should be exposed, document why; indiscriminately closing ports can disrupt legitimate work.
For further study, use our Nmap network-scanning guide for CEH learners for exam context and the broader Nmap learning guide for related topics. This article's purpose is interpreting and documenting a small reconnaissance exercise.
Frequently asked questions
What is Nmap reconnaissance used for?
It gathers network observations such as host responses, port states and service fingerprints. Use those observations to decide which authorised checks or defensive reviews should follow.
Does Nmap perform passive reconnaissance?
The discovery and scanning examples here send traffic and are active checks. Even a list scan may perform DNS lookups unless name resolution is disabled, so describe the actual options used.
What is the difference between -sn and -Pn?
-sn performs host discovery without the normal port scan. -Pn skips that discovery decision and proceeds with requested checks against the supplied targets.
Does a default Nmap scan include UDP?
No. The ordinary scan discussed here covers commonly used TCP ports. UDP testing requires an appropriate method, explicit coverage and separate interpretation of its responses.
Does an open port mean the machine is vulnerable?
No. It shows that a service accepts the tested traffic from that position. Assess whether exposure is intended, then verify the service configuration and applicable security updates.
Does filtered mean a firewall is definitely installed on the host?
No. Filtering can occur along the path or at the host. Preserve the uncertainty and compare the result with network policy rather than naming a particular device without evidence.
Can port 3306 prove that MySQL is running?
No. A conventional port label is a starting hypothesis. Response-based service detection and owner-side records provide stronger evidence, and an inconclusive fingerprint should stay inconclusive.
Is SYN scanning invisible to monitoring?
No. Monitoring systems can detect scan traffic. Choose the method for the agreed assessment and available privileges, and coordinate with the relevant team instead of promising invisibility.
Why can Nmap's OS result be unreliable?
Fingerprinting depends on useful responses. Restrictive filtering, insufficient port responses or intermediate devices can reduce confidence. Record warnings and corroborate the result where identity matters.
Should a beginner start with -A?
A narrower check is easier to interpret. Learn discovery, selected-port scanning and service detection separately before combining features whose additional traffic and script behaviour you understand.
What should I save with scan results?
Save the command, version, target scope, source location, time and output files. Add your interpretation and unresolved questions so another reviewer can distinguish evidence from assumptions.
Can I use this walkthrough on a public website?
Use it only within an explicitly authorised testing scope. A publicly reachable address does not establish permission. Confirm the owner's rules and any hosting-provider restrictions before testing.