tcpdump vs Wireshark
tcpdump
tcpdump.orgWireshark
wireshark.orgSide by side
| Figure | tcpdump | Wireshark |
|---|---|---|
| Price from | Free | Free |
| Free plan | Yes | Yes |
| Free trial | — | — |
| Open source | — | Yes |
| Windows | Yes | Yes |
| macOS | Yes | Yes |
| Linux | Yes | Yes |
| API | — | Yes |
| Self-hosted | — | Yes |
| Plans published | 1 | 2 |
| Spec score · Network Troubleshooting Software | 7.4 (#11) | 8.2 (#5) |
| Spec score · Network Packet Capture Software | 7.3 (#16) | 8.2 (#6) |
| Spec score · Network Protocol Analyzers | 7.4 (#23) | 8.2 (#10) |
| Spec score · Network Packet Analyzer Software | 7.4 (#26) | 8.3 (#10) |
| License | The project license permits redistribution and use in source and binary forms subject to its listed conditions. | Wireshark is open-source software released under the GNU General Public License version 2, and the downloaded version is the full version without a license fee. |
| Purpose | tcpdump is a tool for network monitoring and data acquisition. | Wireshark captures and interactively browses network traffic as a network protocol analyzer. |
Plans
In their own words
tcpdump
tcpdump is a network monitoring and data acquisition tool that captures traffic through libpcap, an interface for user-level packet capture. It provides command-line tools and PCAP support, and the project lists systems including AIX, BSD variants, GNU/Linux, macOS, Solaris, QNX, and Windows. It is free, with source code available through a public Git repository and native packages or ports on many systems.
Building requires libpcap and a C99-compliant compiler. Windows builds also require WinPcap or Npcap and Visual Studio with CMake. The license permits redistribution and use in source and binary forms under its conditions. Capture permissions depend on the operating system and its configuration; the project cautions that permitted users may capture network traffic, including passwords. Native packages may lag a few versions, while a newer snapshot can be compiled from source. The project lists Linux, macOS, and Windows among its platforms.
Wireshark
Wireshark is a free network protocol analyzer for capturing and examining network traffic. It supports live capture and offline analysis through a graphical interface or the TShark terminal utility, and can inspect hundreds of protocols. Display filters narrow what appears during analysis, though their syntax differs from capture filters. Wireshark reads and writes capture formats including pcap and pcapng, and can decompress gzip-compressed files. Analysis features include VoIP tools, packet coloring rules, and exports to XML, PostScript, CSV, or plain text. It can decrypt traffic for protocols including IPsec, Kerberos, SSL/TLS, WEP, and WPA/WPA2. The software is available for Linux, macOS, and Windows under GNU General Public License version 2, with no license fee for the full version. Windows packages include Npcap, which is needed for live packet capture. What a capture can show depends on the operating system, capture library, network interface, and network configuration; switched networks may not expose unicast traffic between other ports. Community help is available through a Q&A site and users mailing list.