Finding your Raspberry Pi's IP Address

In order to connect to your Pi from a web browser, or remotely using a Terminal, you'll need to find your Pi's IP Address. Its IP address is like a postal address, and allows you to find your Pi on your local network.

Most likely you're sitting in front of your Pi connected to a monitor, and looking at the graphical desktop, or perhaps just a blank screen with text known as the Command Prompt.

Getting from desktop to command-prompt

If you're looking at your desktop, the first thing you'll need to do is get to a commmand prompt. You can do this by double-clicking the LXTerminal icon which should be near the bottom-left corner of your screen.

A black window should pop up with a green and blue prompt in it. This will normally contain a prompt like "pi@raspberrypi ~ $" and it's immediately after this that you should type the below commands.

Finding your Raspberry Pi's IP address - if you're using a network cable

If you're using your Pi with a network cable, you should type:

ifconfig eth0

Find your Pi IP.

The result of this command should be a glut of text and numbers, most of which we can ignore. The bit we're looking for is the group of numbers immediately following "inet addr".

If you have difficulty finding it, you can try:

ifconfig eth0 | grep inet | awk '{ print $2 }'

Which will strip the wheat from the chaff and show you the numbers you need, prefixed by "addr:"

"grep" is a really useful command to get to grips with, it can take the output of another command and filter it for things of interest.

Finding your Raspberry Pi's IP address - if you're using wifi

If you're using WiFi, you should replace eth0 with wlan0 in the commands above, for example:

ifconfig wlan0 | grep inet | awk '{ print $2 }'

Or you can use the shorthand if you're comfortable scanning for the IP address:

ifconfig wlan0

Sometimes you wont see an IP address. This means you've not got a connection on that device and should try the other one. It may also mean you need to set up your WiFi connection, or that there's something wrong with your network cable connection.

Finding your Raspberry Pi's IP Address - from your laptop/desktop computer!

You can also find your Raspberry Pi by doing what's known as an "IP Scan" across your whole network. Most home networks will have about 254 possible combinations of IP address, so looking at them all is an easy task for a computer.

We use something called Angry IP Scanner ( ), this runs on Linux, MacOS X or Windows and lets you scan your entire local network to find devices- including any Pi's you might be running.

When you run Angry IP Scanner it should automatically pick a sensible IP Range for you- all you need to do is press Start and keep an eye out for your Raspberry Pi.

Angry IP Scanner.

As you can see above, Angry IP Scanner found my Pi on the local network with its default hostname of "raspberrypi". It also found a couple of Android phones, and a Slice!

Things to remember

Your Raspberry Pi may have a different IP address depending on whether it's connected to WiFi or Ethernet, and that address might even change from time to time. If you ever find yourself unable to connect, you can always double-check!

That's all folks!

Search above to find more great tutorials and guides.

Plasma 2040

Swathe everything in rainbows with this all-in-one, USB-C powered controller for WS2812/Neopixel and APA102/Dotstar addressable LED strip.