Firewall logs often identify a connection by its IP addresses and port numbers. In Wireshark on the Linux desktop, you can turn name resolution off to read those numbers in the packet list or turn it on to see available host and service names.

Network name resolution maps IP addresses to hostnames when Wireshark has a name for the address. Transport name resolution uses a separate mapping for TCP and UDP ports, such as http for port 80.

The controls in View > Name Resolution update the open capture immediately and save the settings in the active configuration profile.

Steps to toggle name resolution in Wireshark:

Start with a saved capture such as web-traffic.pcapng open in Wireshark's Default profile. Use a capture with a TCP connection to a host and service Wireshark can name, and have the corresponding IP address and port handy.

  1. Maximize Wireshark with its title-bar button if the Info column is cut off.
  2. Record the No. value of a TCP [SYN] packet sent to your service.

    Frame 1 goes to www.example.test at 192.0.2.20 on TCP port 80. With both settings on, it shows www.example.test under Destination and http(80) after the arrow in Info.

  3. Choose View > Name Resolution > Resolve Network Addresses to clear it if it is checked.

    If the item is already clear, dismiss the menu. If both items were clear, skip step 5.

  4. Verify that Destination shows your service's numeric IP address on the same packet row.

    Frame 1 now shows 192.0.2.20.

  5. Choose View > Name Resolution > Resolve Transport Addresses to clear it if it is checked.

    If the item is already clear, dismiss the menu.

  6. Verify that Info shows your service's port as a bare number after the arrow on that same row.

    Frame 1 shows 80 after the arrow.

Share this guide