TCP Connect Scan

Published Jan 19, 2023
Contribute to Docs

A TCP connect scan establishes a complete connection to the target host by completing a TCP three-way handshake. After the scan is complete, Nmap terminates the connection.

Note: This is not to be confused with another common scan technique, the TCP SYN stealth scan (-sS), which completes up to half of its connection with the target host. Therefore, the TCP connect scan takes longer and requires more packets to perform.

The following image shows how this scan connects with the TCP three-way handshake and then terminates afterward:

TCP handshake and network scan


nmap -sT <target>

A TCP connect scan connects to a


The following example performs a TCP connect scan on the site

nmap -sT

Note: This is a site explicitly set up for testing Nmap. Scans should only be performed on domains with explicit permissions given to the user.

This results in the following output:

Starting Nmap 7.80 ( ) at 2022-12-24 17:08 EST
Nmap scan report for (
Host is up (0.095s latency).
Other addresses for (not scanned): 2600:3c01::f03c:91ff:fe18:bb2f
Not shown: 992 closed ports
22/tcp open ssh
25/tcp filtered smtp
80/tcp open http
135/tcp filtered msrpc
139/tcp filtered netbios-ssn
445/tcp filtered microsoft-ds
9929/tcp open nping-echo
31337/tcp open Elite
Nmap done: 1 IP address (1 host up) scanned in 4.03 seconds

All contributors

Looking to contribute?

Learn Cybersecurity on Codecademy