Finding the IP address of your Raspberry Pi is a fundamental skill for any project involving the device. Whether you are setting up a headless server, configuring network shares, or accessing it remotely, you need to know where to connect. This guide walks through the most reliable methods, from simple software commands to practical hardware checks.
Understanding IP Address Types
Before diving into the search methods, it helps to understand the two types of addresses you might be looking for. The local IP address is used within your private network, such as 192.168.1.x, and is assigned by your router. The public IP address is the single address your entire home network presents to the internet, assigned by your Internet Service Provider. For most local tasks like file transfer or terminal access, you need the local address.
Using Command Line Interface
If you have physical access to the terminal or SSH access to the Raspberry Pi, the quickest way to find the address is through command line tools. These commands query the operating system directly for network configuration data, ensuring you see the exact address the device is currently using.
hostname -I : This is the simplest command, returning all active IP addresses for the device.
ip addr show : This provides a detailed view of all network interfaces, allowing you to see the specific address for eth0 or wlan0 .
ifconfig : Although deprecated in some distributions, this classic command remains a clear and familiar option for many users.
Checking Your Router
When physical access is not possible, checking the router’s connected device list is the most straightforward alternative. Every router maintains a dynamic host configuration protocol (DHCP) table that logs which devices are currently online and their assigned addresses. The exact navigation path varies by manufacturer, but the information is usually found in the "Connected Devices" or "Network Map" section.
Look for the device name, which is often set to "raspberrypi" by default, or identify it by the MAC address, which will look like B8:27:EB:XX:XX:XX.
Utilizing Avahi-Zeroconf
Many modern networks support Avahi, which allows devices to broadcast their presence using the ".local" domain name system. This means you can often reach your Raspberry Pi without needing to look up the specific number. If your Pi is running a standard distribution with Avahi installed, you can simply ping the device name followed by .local in your terminal. For example, if your Pi is named "raspberrypi," you can resolve its address by connecting to raspberrypi.local.
Employing Network Scanning Tools
For a more comprehensive view of your network, dedicated scanning tools can map out every active device. Applications like Advanced IP Scanner for cross-platform networks or Fing for mobile users allow you to scan the subnet quickly. These tools ping each address in a range and return the hostname and manufacturer, making it easy to spot the device labeled "Raspberry Pi Foundation."