Using Wireshark to get or pull the IP address of an Unknown Host (2024)

Wireshark is a powerful tool that can analyze traffic between hosts on your network. But it can also be used to help you discover and monitor unknown hosts, pull their IP addresses, and even learn a little about the device itself. Here’s how I used Wireshark to find the IP address of an unknown host on my LAN.

What are Wireshark and IP Addresses?

Wireshark is a network monitor and analyzer. It works below the packet level, capturing individual frames and presenting them to the user for inspection. Using Wireshark, you can watch network traffic in real-time, and look inside to see what data is moving across the wire.

An IP address is a unique identifier used to route traffic on the network layer of the OSI model. If you think of your local network as a neighborhood, a network address is analogous to a house number. When you know the IP address of a host, it’s possible to access and interact with it.

Finding an IP address with Wireshark using ARP requests

Address Resolution Protocol (ARP) requests can be used by Wireshark to get the IP address of an unknown host on your network. ARP is a broadcast request that’s meant to help the client machine map out the entire host network.

ARP is slightly more foolproof than using a DHCP request – which I’ll cover below – because even hosts with a static IP address will generate ARP traffic upon startup.

To pull an IP address of an unknown host via ARP, I started Wireshark and began a session with the Wireshark capture filter set to arp, as shown above.

I then wait for the unknown host to come online. I used my cell phone and toggled the WiFi connection on and off. Regardless, when an unknown host comes online it will generate one or more ARP requests. Those are the frames you should look for.

I spotted the request and clicked on it. I used Wireshark’s Packet details view to analyze the frame. I looked at the Address resolution protocol section of the frame, especially the Sender IP address and Sender MAC address.

In this case, you can see my phone received an IP address of 192.168.1.182 from the router, and you can identify the device as an Apple phone by looking at the vendor OUI.

Quick Guide Recap

Finding IP Address with Wireshark using ARP Requests:

  1. Initiate a Wireshark session with ‘arp’ as the capture filter.
  2. Wait for the target device to come online and generate ARP requests.
  3. Click on an ARP request to analyze it.
  4. In ‘Packet details’ view, focus on ‘Sender IP address’ and ‘Sender MAC address’ in the ‘Address resolution protocol’ section.

Wireshark IP address puller using DHCP requests

Another easy way to determine the IP address of an unknown host on your network is to use DHCP traffic. This method only works if the host requests an IP address.

If you’re dealing with a situation where someone has put a malicious physical network device on your corporate network; this method isn’t recommended – they’ve likely set a static address. But for normal use, it works just as well as ARP.


To capture DHCP traffic, I like to start a new session with no capture filter and set the Wireshark display filter to udp.port==67 as shown above. Then I waited for the unknown host to come online and requested an IP address from my DHCP server.

You can also force every host on your network to request a new IP address by setting the lease time to an hour or two and capturing network traffic. In this case, you’d want to browse through hostnames until you find the target client.

Note that the frame I captured has a source IP address of 0.0.0.0. This is normal until the host is assigned a valid IP address by the DHCP server.

I clicked on the captured frame, and looked at the Packet details view. I browsed until I found the entry for Bootstrap protocol and clicked the arrow to expand it

I scrolled through the list of options until I found the Requested IP address, which showed what the DHCP server attempted to assign. In just about every case this correlates to the IP address of the host machine, despite the fact it’s phrased as a request.

You can also find a handful of other useful options like the IP address lease time and Host name of the unknown client requesting an address.

Quick Guide Recap

Wireshark IP Address Puller Using DHCP Requests:

  1. Start a new Wireshark session without a capture filter and set the display filter to ‘udp.port==67’.
  2. Wait for the target device to come online and request an IP address from the DHCP server.
  3. Optionally, to force all hosts to request a new IP, set the lease time to a short duration and capture network traffic. Look for the target client among the hostnames.
  4. Click on the captured frame with a source IP address of 0.0.0.0 (normal until the host is assigned a valid IP address).
  5. In ‘Packet details’ view, find and expand the ‘Bootstrap protocol’ entry.
  6. Scroll to ‘Requested IP address’, showing the IP address the DHCP server attempts to assign (usually correlates to the host’s IP).
  7. Other useful options to note include ‘IP address lease time’ and ‘Host name’ of the unknown client requesting an address.

Getting the IP address of an unknown host with Wireshark

Those two methods are sure-fire ways to find the IP address of an unknown host. Depending on your network, there may be others. For instance, sending out a broadcast ping will work in some situations when you share a collision domain with the host. But especially for home networking, where all devices are more or less directly connected to a switch, analyzing ARP and DHCP requests are the best choices for discovering an IP address.

  • How to filter for destination IP with Wireshark

Wireshark IP Puller FAQs

Is it illegal to run Wireshark on a public network?

It isn’t illegal to run Wireshark on a public network. However, pay attention to the Terms and Conditions of the network you want to use Wireshark on. It may prohibit the use of Wireshark, in which case you could be banned from the network or even sued for using it.

How do I view the MAC address of a received packet in Wireshark?

To view all of the MAC addresses in a captured packet stream:

  1. Open a packet capture file in Wireshark
  2. Go to Statistics and then Conversations.
  3. Click on the Ethernet tab.

You will see all of the MAC addresses from the captured packets.

Can you pull OPs with Wireshark over wifi?

Yes. Wireshark can capture packets off of a WiFi network as long as the computer it is installed on has a WiFi transceiver and is in promiscuous mode. Wireshark uses the Airpcap standard for wireless packet capture.

What devices can Wireshark use to capture packets?

Wireshark captures packets through the network interface of the computer that it is installed on. It can run on Windows, Linux, macOS, FreeBSD, OpenBSD, Solaris, and Unix.

How do I trace a specific IP address in Wireshark?

If you only want to see the traffic to and from Wireshark in a trace file, load it into Wireshark and then apply a filter to the packet data. You enter this filter in the bar across the top of the packet display pane where you will see the words Apply a display filter. For example, if you want to trace the activity of 192.168.0.12 you should type in:

ip.addr == 192.168.0.12

This will filter the records in the display panel so that you only see the packet going to or coming from that address.

How do I get the IP address of a hostname in Wireshark?

You don’t need to open up Wireshark to get the IP address of a hostname or a domain.

  1. Open a Command Prompt window and type in:
    nslookup <hostname>
  2. Type in the name of the host that you want to get the IP address for instead of <hostname>.
  3. If you already have Wireshark open and you want to look in passing packets for the IP address of a known hostname, open a packet stream in Wireshark then enter a display filter. This should be:
    ip.host == <hostname>
  4. Give the name of the host instead of <hostname>.

More Wireshark tutorials:

  • Wireshark cheat sheet
  • How to decrypt SSL with Wireshark
  • Running a remote capture with Wireshark and tcpdump
  • Wireshark ‘no interfaces found’ error explained
  • Identify hardware with OUI lookup in Wireshark
  • Best Wireshark alternatives
Using Wireshark to get or pull the IP address of an Unknown Host (2024)

FAQs

How to find an unknown IP address using Wireshark? ›

Quick Guide Recap
  1. Initiate a Wireshark session with 'arp' as the capture filter.
  2. Wait for the target device to come online and generate ARP requests.
  3. Click on an ARP request to analyze it.
  4. In 'Packet details' view, focus on 'Sender IP address' and 'Sender MAC address' in the 'Address resolution protocol' section.
Dec 29, 2023

How to find host IP address in Wireshark? ›

Click the "Statistics" tab from the menu across the top. Click the End points option from the drop down. Click the "IPv4" or "IPv6" tab depending on device. Any IP addresses detected on devices (including your laptop) will be listed under the "Address" column.

How to check an unknown IP address? ›

How to manually identify unknown devices on a network
  1. Open the Command prompt or Terminal in your Windows, Linux, or macOS system.
  2. Search all the network settings, such as default gateway and IP address, through the command prompt.
  3. Type the command "arp -a" to view the list of all IP addresses connected to your network.

How do I ping an IP address in Wireshark? ›

Start up the Wireshark packet sniffer, and begin Wireshark packet capture. The ping command is in c:\windows\system32, so type either “ping –n 10 hostname” or “c:\windows\system32\ping –n 10 hostname” in the MS-DOS command line (without quotation marks), where hostname is a host on another continent.

How to find hidden IP address? ›

Users with Windows can search 'CMD' from the start menu, open Command Prompt, and type 'ipconfig' to see their IP details. On the flip side, Mac aficionados should navigate to System Preferences, select Network, and identify their active connection to reveal the IP.

How do I find a host IP address? ›

Right click the windows button in the lower left of your screen. Select command prompt from the list. A black and white window will open where you will type ipconfig /all and press enter. There is a space between the command ipconfig and the switch of /all.

How do I find the IP address of a host name? ›

In an open command line, type ping followed by the hostname (for example, ping dotcom-monitor.com). and press Enter. The command line will show the IP address of the requested web resource in the response.

How do I find the IP address of a host in terminal? ›

If you enter the command “ifconfig” in the terminal, all information will be displayed. You can also use the commands “ip addr” or “ip a”. Confirm with [Enter]. You'll now be shown all IP addresses that are in your network.

How do I copy an IP address from Wireshark? ›

In Wireshark:

Go to "Statistics -> Endpoints" Click on the IP TAB. Use "copy" to copy the data in CSV format to clipboard. Import the data in a tool of choice.

How to find the IP address that sent the most packets in Wireshark? ›

4 - What is the IP address of the host which sent the most number of bytes?
  1. To find this answer, first make sure you reset your filters. ...
  2. On the top menu bar of Wireshark application, click on the Statistic menu then Endpoint.
  3. Another menu will pop-up. ...
  4. Click on the 'Tx Bytes' column to sort it, from high to low.
Oct 13, 2023

Is Wireshark an IP scanner? ›

Whether commissioning or troubleshooting a system, duplicate IP addresses can lead to a number of issues. Wireshark is a useful tool for scanning the network for possible issues including duplicate IPs.

Why would an IP address be unknown? ›

If you see an IP address that you do not recognize, this is likely a bot click. Security software installed on email servers can and will click links.

How do I find the IP address of a network? ›

On Linux, type the command “ifconfig” and press Return. On Windows, type the command “ipconfig” and press Return. Get more information by typing the command “arp -a.” You should now see a basic list of the IP addresses for devices connected to your network.

How to ping an unknown device on a network? ›

Open Command Prompt/Terminal.

Type “ping -a <IP Address>” and press Enter.

How do I find an untraceable IP address? ›

The easiest way to hide your IP address, in our opinion, is to use a VPN. What it does: VPNs, which stands for Virtual Private Networks, hide a user's IP address, replacing it with either a dedicated address, a static address that's shared with multiple users, or a dynamic address that changes with each connection.

Can a hidden IP address be traced? ›

Can an IP address be traced then? Certainly, when a VPN disconnects, your data is no longer encrypted, and your real IP address is exposed. Your ISP has access to the activity of your IP address (e.g., the websites you visit), so you're a much easier target for tracking when you disconnect from a VPN.

How can IP address not be traced? ›

There are essentially two methods you can choose from to hide your IP address. One is using a proxy server, and the other is using a virtual private network (VPN).

Top Articles
Spark Staff
How to Build a Decentralized Web3 Ecosystem?
Bleak Faith: Forsaken – im Test (PS5)
Methstreams Boxing Stream
Part time Jobs in El Paso; Texas that pay $15, $25, $30, $40, $50, $60 an hour online
Myexperience Login Northwell
News - Rachel Stevens at RachelStevens.com
What Are the Best Cal State Schools? | BestColleges
Plus Portals Stscg
Self-guided tour (for students) – Teaching & Learning Support
Fcs Teamehub
City Of Spokane Code Enforcement
Legacy First National Bank
Craigslist/Phx
How Quickly Do I Lose My Bike Fitness?
Why Is Stemtox So Expensive
Aktuelle Fahrzeuge von Autohaus Schlögl GmbH & Co. KG in Traunreut
Oro probablemente a duna Playa e nomber Oranjestad un 200 aña pasa, pero Playa su historia ta bay hopi mas aña atras
Arboristsite Forum Chainsaw
Pinellas Fire Active Calls
Jeff Now Phone Number
Drug Test 35765N
Wiseloan Login
Egusd Lunch Menu
Gen 50 Kjv
Tinyzonehd
Movies - EPIC Theatres
Vivification Harry Potter
Salemhex ticket show3
APUSH Unit 6 Practice DBQ Prompt Answers & Feedback | AP US History Class Notes | Fiveable
Best New England Boarding Schools
The Wichita Beacon from Wichita, Kansas
Cheap Motorcycles Craigslist
Tendermeetup Login
Ni Hao Kai Lan Rule 34
Metro 72 Hour Extension 2022
Ljw Obits
Craigslist Pets Huntsville Alabama
Mohave County Jobs Craigslist
What Is A K 56 Pink Pill?
The best bagels in NYC, according to a New Yorker
Worcester County Circuit Court
Live Delta Flight Status - FlightAware
Trivago Anaheim California
Yale College Confidential 2027
Ehc Workspace Login
John Wick: Kapitel 4 (2023)
York Racecourse | Racecourses.net
Myhrkohls.con
How To Find Reliable Health Information Online
Ocean County Mugshots
Latest Posts
Article information

Author: Kelle Weber

Last Updated:

Views: 5316

Rating: 4.2 / 5 (53 voted)

Reviews: 84% of readers found this page helpful

Author information

Name: Kelle Weber

Birthday: 2000-08-05

Address: 6796 Juan Square, Markfort, MN 58988

Phone: +8215934114615

Job: Hospitality Director

Hobby: tabletop games, Foreign language learning, Leather crafting, Horseback riding, Swimming, Knapping, Handball

Introduction: My name is Kelle Weber, I am a magnificent, enchanting, fair, joyous, light, determined, joyous person who loves writing and wants to share my knowledge and understanding with you.