IOT

How to Find IP Address of Raspberry Pi

The Internet Protocol, or IP address, is assigned to each device on a network. Like a street or postal address, an IP address is how you identify a specific device on your network among all the others. To connect to a device on your network, you’ll need to know its IP address, which can be difficult to locate.This article will show you how to discover the IP address of a Raspberry Pi that’s connected to your network within few steps.

You’ll need to find your Raspberry Pi’s IP Address in order to connect to it from a web browser or remotely using a Terminal. Most likely, you’re sitting in front of your Raspberry Pi, which is linked to a monitor, and viewing the graphical desktop or the Terminal, which is a blank screen with text.

Getting from desktop to Terminal

If you’re on your desktop, the first thing you should do is go to a terminal. Double-click the Terminal icon, which should be towards the bottom-left corner of your screen, to do this.

A black window with a green and blue prompt should appear. This will usually have a prompt like “pi@raspberrypi $,” and you should type the commands below right after that.

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

This command should provide a large amount of text and numbers, the majority of which we can ignore. The collection of numbers immediately following “inet addr” is the one we’re looking for.

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.

1.1 Raspberry Pi IP

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

An IP address isn’t always visible. This indicates that you don’t have a connection on that device and that you should try the other. It could also signify that your WiFi connection has to be set up, or that something is wrong with your network cable connection.

Finding your Raspberry Pi’s IP Address – from your laptop/desktop computer!

You can easily locate your Raspberry Pi by performing a “IP Scan” throughout your whole network. Most home networks have roughly 254 different IP address permutations, so a computer can easily scan through them all.

We utilize Angry IP Scanner (http://angryip.org/), which works on Linux, MacOS X, and Windows and allows you to scan your whole local network for devices, including any Raspberry Pis you may have.

1.1 IP Scanner

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 found my Pi on the local network with its default hostname of “raspberrypi”. It also found a couple of Android phones, and a Slice!

Finding IP address on your phone

You’ll need to follow the steps in this blog to obtain your phone’s IP address.

If you have Android version 7 or lower, you will be able to see in connected devices or through a third-party app once your raspberry pi auto connects to your phone’s WiFi-Hot spot.

Things to keep in mind

Depending on whether your Raspberry Pi is connected to WiFi or Ethernet, it may have a different IP address, and that address may change over time. You can always double-check if you’re having trouble connecting !C

Hope you all find this article useful.If you have any queries, contact us on MATHA ELECTRONICS

Leave a Reply

Your email address will not be published.