WEBVTT

00:00.080 --> 00:05.630
In this lesson, I will show you how to find the Raspberry Pi IP address on the network.

00:05.630 --> 00:06.950
So what do we have for now?

00:06.950 --> 00:12.410
Well, we have flashed the operating system into the SD card and now the Raspberry Pi has boot with

00:12.410 --> 00:16.370
this SD card and it should be trying to connect to the wifi.

00:16.400 --> 00:19.430
So now it should already be connected to the WiFi.

00:19.460 --> 00:22.400
But the question is what's its IP address?

00:22.400 --> 00:25.430
Without the IP address we cannot do anything.

00:25.430 --> 00:28.280
And how to find the IP address of the Raspberry Pi?

00:28.280 --> 00:34.010
Well, there are lots of different tools and I'm going to show you one tool here that works well.

00:34.010 --> 00:39.980
And I chose this one because it's available for windows, Linux and also Mac OS.

00:40.010 --> 00:40.430
Okay.

00:40.460 --> 00:43.400
So the tool is called angry IP scanner.

00:43.400 --> 00:51.680
You can just type that on Google and go to angry ip.org here and just find the download button.

00:52.640 --> 00:56.960
So you can see you have the different instructions for windows, Mac OS and Linux.

00:56.960 --> 01:05.410
If you are using Mac OS and Linux, you might have to install Java before, so actually not on Mac OS

01:05.410 --> 01:05.770
anymore.

01:05.800 --> 01:08.890
It's already included, but on Linux you will need to install Java.

01:08.890 --> 01:10.840
So you have the instructions here.

01:10.840 --> 01:17.860
And on windows here I'm on Windows so I can just select the Windows installer okay.

01:17.890 --> 01:20.320
Includes Java and Runtime already.

01:20.590 --> 01:24.430
Just select the Windows Installer and let's install this.

01:24.760 --> 01:25.990
So lots of ads.

01:25.990 --> 01:33.130
But let's just wait for the executable and let's install it okay.

01:33.130 --> 01:33.910
You click on yes.

01:33.910 --> 01:35.170
If you have a pop up.

01:35.680 --> 01:36.940
Let's close that one.

01:37.540 --> 01:38.860
Let's install.

01:41.380 --> 01:42.550
Okay finish.

01:42.550 --> 01:46.120
And then once again you can go on the search bar here.

01:46.150 --> 01:51.280
Or just press the windows key and angry IP scanner enter.

01:51.280 --> 01:53.710
And that's the tool that we are going to use.

01:53.710 --> 01:59.740
So before we do anything once again and I can't repeat that enough, make sure that you are connected.

01:59.740 --> 02:06.900
So here you can see my computer is connected to the network called your Wi-Fi network.

02:06.900 --> 02:10.470
And this is also the network that I have set up for the Raspberry Pi.

02:10.500 --> 02:14.970
So both my computer and the Raspberry Pi should be on the same network.

02:14.970 --> 02:18.720
If it's not the case, then we won't find any IP address here.

02:18.720 --> 02:19.980
So very important.

02:20.010 --> 02:21.810
Now back to this tool.

02:21.810 --> 02:23.670
So what do we have here.

02:23.670 --> 02:28.230
Well we have the IP range that we want to scan okay.

02:28.260 --> 02:32.400
If you click on the IP here so you have the hostname of your computer here.

02:32.400 --> 02:37.950
If you click on that button you will see well you might have a lot or not a lot of stuff depends.

02:37.950 --> 02:40.740
But you should see something with the Wi-Fi.

02:40.770 --> 02:42.150
So what do I have here.

02:42.150 --> 02:46.290
Well I have this network here 192 dot 168.

02:46.320 --> 02:52.530
You might have the same two numbers first and then I have 203.

02:52.560 --> 02:52.950
Okay.

02:52.980 --> 02:55.620
That's the basically the mask for the network.

02:55.620 --> 03:04.460
So what we want to do is we want to scan the addresses from 0 to 255 with those three first numbers.

03:04.490 --> 03:04.970
Okay.

03:04.970 --> 03:09.380
And of course this number here is going to be different for you because, well, you don't have the

03:09.380 --> 03:12.470
same Wi-Fi network as the one that I have.

03:12.500 --> 03:14.240
So by default it should already be good.

03:14.270 --> 03:17.270
But just in case you can click here okay.

03:17.300 --> 03:21.050
On the Wi-Fi here to get the correct network.

03:21.050 --> 03:24.530
And then you can click on start.

03:24.560 --> 03:24.770
Okay.

03:24.800 --> 03:28.190
It's going to scan all the IP addresses here.

03:28.190 --> 03:32.840
So it's going to take a few seconds a bit less than one minute depending on your computer.

03:33.290 --> 03:34.580
So let's wait a bit.

03:35.720 --> 03:36.200
Okay.

03:36.230 --> 03:38.990
And it took 36 seconds for me.

03:39.080 --> 03:42.950
I can see I have three hosts on my network.

03:42.950 --> 03:44.810
So I'm going to click on close.

03:44.810 --> 03:50.240
And then how to find them easily where you can just click on ping here and sort by ping.

03:50.450 --> 03:50.900
Okay.

03:50.930 --> 03:53.990
The first one is my laptop here.

03:53.990 --> 03:56.990
And I have two other hosts here.

03:57.170 --> 03:59.480
But you can see in the hostname.

03:59.640 --> 04:03.960
So somehow I don't see Raspberry Pi in the hostname.

04:03.960 --> 04:08.880
So since it's the first time that the Raspberry Pi is booting, I don't know, maybe the hostname is

04:08.880 --> 04:13.050
not correctly displayed, so it should be one of those two to be sure.

04:13.050 --> 04:19.020
What I could do is I'm just going to remove the power from the Raspberry Pi.

04:19.050 --> 04:22.740
So not really something that we will do as a best practice.

04:22.770 --> 04:23.190
Later on.

04:23.190 --> 04:28.470
I will tell you exactly how to shut down the Raspberry Pi properly, but here I just removed the power

04:28.470 --> 04:29.550
from the Raspberry Pi.

04:29.580 --> 04:32.790
I'm going to scan again and discard.

04:32.790 --> 04:33.360
Yes.

04:33.930 --> 04:39.900
Okay, now you can see I have only two hosts on my network and I have.

04:39.900 --> 04:44.430
So I still have my laptop here and I have the one that ends with 199.

04:44.430 --> 04:47.130
So there was another one with 222.

04:47.160 --> 04:49.770
That one should be the Raspberry Pi.

04:50.100 --> 04:52.470
I'm just going to power the Raspberry Pi again.

04:53.910 --> 05:00.440
Okay, so now it's powered on and I'm going to wait, maybe 30s to try again so that the Raspberry Pi

05:00.470 --> 05:02.390
has the time to connect to the Wi-Fi.

05:02.510 --> 05:07.670
Okay, so give it 30s one minute and then let's scan again.

05:08.270 --> 05:08.660
Okay.

05:08.690 --> 05:09.680
Scanning completed.

05:09.680 --> 05:12.500
I have three hosts, so let's go.

05:12.530 --> 05:14.150
Sort by ping again.

05:14.150 --> 05:16.370
And you can see now this one is back.

05:16.370 --> 05:18.980
So this is the IP address of my Raspberry Pi.

05:19.010 --> 05:26.750
So in my case that's 192 168 203 and 222 for you of course it's going to be different.

05:26.750 --> 05:32.600
And well, as you can see, this is not a perfect case scenario where you just scan and you have the

05:32.600 --> 05:35.360
IP address directly with the host name Raspberry Pi.

05:35.390 --> 05:38.060
Sometimes I guess it could work like this.

05:38.060 --> 05:42.650
And I did a test previously where it was the case, but here somehow I don't have the hostname, so

05:42.650 --> 05:48.170
I'm just letting this in the video to show you actually how you can make some tests and see which is

05:48.170 --> 05:50.390
the Raspberry Pi IP address here.

05:50.390 --> 05:52.190
If it still doesn't appear.

05:52.190 --> 05:57.380
If you didn't find anything, well check again that your computer is connected to the correct Wi-Fi

05:57.410 --> 05:58.250
network.

05:58.400 --> 06:03.100
Maybe if you are using your smartphone as a hotspot, you can usually check.

06:03.100 --> 06:08.770
So it depends on the brand and the kind of phone that you have, but you can usually check how many

06:08.770 --> 06:10.990
devices are connected to your hotspot.

06:11.200 --> 06:14.680
So if you see two devices, one is your computer, one is the Raspberry Pi.

06:14.680 --> 06:20.410
You know that the Raspberry Pi is connected, but if you see only one device, then the Raspberry Pi

06:20.410 --> 06:21.550
is not connected.

06:21.550 --> 06:27.280
So if the Raspberry Pi is not connected, maybe try to pull it off and put it on again.

06:27.280 --> 06:34.360
Wait some time, at least a few minutes, and then it could also be that you provided the wrong Ssid

06:34.360 --> 06:38.470
and the wrong password when you configured the Pi on the SD card.

06:38.470 --> 06:45.070
So there are many reasons why things could go wrong here, but if you correctly followed all the instructions

06:45.070 --> 06:49.270
and you made no mistake, then you should be able to find the IP address.

06:49.270 --> 06:55.540
And now that we have this, we will be able to connect to the Raspberry Pi with SSH and then to enable

06:55.570 --> 06:59.680
VNC so we can have access to the Raspberry Pi desktop.
