- Finding your Raspberry Pi's IP Address
- Getting from desktop to command-prompt
- Finding your Raspberry Pi's IP address - if you're using a network cable
- How to find IP Address on a Raspberry Pi 3
- Finding your Raspberry Pi's IP address - if you're using wifi
- Finding your Raspberry Pi's IP Address - from your laptop/desktop computer!
- Things to remember
- Phil Howard
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 "[email protected] ~ $" 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:
The result of this command should be a glut of text and numbers, most of which we can ignore.
How to find IP Address on a Raspberry Pi 3
The bit we're looking for is the group of numbers immediately following "inet addr".
If you have difficulty finding it, you can try:
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:
Or you can use the shorthand if you're comfortable scanning for the IP address:
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 ( http://angryip.org/ ), 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.
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!
@gadgetoidPhil is Pimoroni's software guru, instantly recognisable by his somewhat pirate-themed moustache growing attempts.
Usually found buried neck deep in Python libraries, he's also been known to escape on occasion and turn out crazy new products.
If you need a helping hand, he's a prolific Twitter user and rampages around the forums like a T-Rex. Ask him if you need help with Pimoroni's software libraries, or Propeller HAT.