1
00:00:07,170 --> 00:00:08,160
- Let's talk about the difference

2
00:00:08,160 --> 00:00:12,030
between public IP addresses
and private IP addresses.

3
00:00:12,030 --> 00:00:15,690
Up until now, we've been
talking private IP addresses.

4
00:00:15,690 --> 00:00:20,690
And an example I've been
using a lot is 192.168.1.1.

5
00:00:22,080 --> 00:00:23,910
This is a private IP address.

6
00:00:23,910 --> 00:00:26,640
It means it's supposed
to be used internally

7
00:00:26,640 --> 00:00:28,650
within your local area network.

8
00:00:28,650 --> 00:00:33,480
It also means that it does not
face the internet directly.

9
00:00:33,480 --> 00:00:35,310
That's why it's called private.

10
00:00:35,310 --> 00:00:37,020
Public addresses, however,

11
00:00:37,020 --> 00:00:39,030
they do face the internet directly.

12
00:00:39,030 --> 00:00:44,030
An example would be 65.43.18.1.

13
00:00:45,570 --> 00:00:49,110
And this IP address is
known as internet facing

14
00:00:49,110 --> 00:00:50,700
or public facing.

15
00:00:50,700 --> 00:00:52,920
And that means that
anybody around the world

16
00:00:52,920 --> 00:00:55,080
can see that IP address.

17
00:00:55,080 --> 00:00:57,750
Anybody around the world
will not be able to see this

18
00:00:57,750 --> 00:01:00,480
because it's behind usually a firewall

19
00:01:00,480 --> 00:01:04,230
and behind some type of network
address translation device.

20
00:01:04,230 --> 00:01:05,730
When it comes to public addresses

21
00:01:05,730 --> 00:01:08,010
you have to be very careful with security.

22
00:01:08,010 --> 00:01:11,970
You wanna secure any servers
that are on public addresses

23
00:01:11,970 --> 00:01:13,200
to a certain extent.

24
00:01:13,200 --> 00:01:15,450
You're gonna wanna
leave them open somewhat

25
00:01:15,450 --> 00:01:18,690
so that people can gain
access to services,

26
00:01:18,690 --> 00:01:20,370
and everything else you're
gonna want to firewall

27
00:01:20,370 --> 00:01:23,520
and close down that server,
make sure it's secure.

28
00:01:23,520 --> 00:01:27,150
And we're gonna show examples
of public IP addresses,

29
00:01:27,150 --> 00:01:32,150
private IP addresses in Windows
now, or just in a second.

30
00:01:32,610 --> 00:01:34,950
What I want to show real quick though

31
00:01:34,950 --> 00:01:38,133
are the private IP ranges
that you should know.

32
00:01:39,510 --> 00:01:44,510
Besides 192.168, there's
also the 10 network.

33
00:01:45,930 --> 00:01:48,330
And the 10 network could be anything.

34
00:01:48,330 --> 00:01:52,677
It could be 10.254.254.0.

35
00:01:54,810 --> 00:01:56,010
It could be anything after it,

36
00:01:56,010 --> 00:01:57,930
but it's gonna be something on 10.

37
00:01:57,930 --> 00:01:59,010
And then the other one,

38
00:01:59,010 --> 00:02:03,557
which I had mentioned
before is 172.16.x.x.

39
00:02:05,070 --> 00:02:06,510
That's gonna be the network number.

40
00:02:06,510 --> 00:02:10,817
Also 172.17 all the way through to 172.31.

41
00:02:12,480 --> 00:02:15,120
Those are the main private IP numbers

42
00:02:15,120 --> 00:02:16,170
that you're gonna need to know.

43
00:02:16,170 --> 00:02:17,760
We're gonna go over those again

44
00:02:17,760 --> 00:02:19,590
when we look on the computer.

45
00:02:19,590 --> 00:02:21,870
So let's get into Windows
now and show some examples

46
00:02:21,870 --> 00:02:23,943
of public and private IP addresses.

47
00:02:25,650 --> 00:02:28,830
Okay, so we talked about in theory

48
00:02:28,830 --> 00:02:32,010
public IP addresses versus
private IP addresses

49
00:02:32,010 --> 00:02:33,660
and the differences between those.

50
00:02:33,660 --> 00:02:35,730
Now let's show it a little
bit in the command line.

51
00:02:35,730 --> 00:02:37,650
First of all, let's show
a private IP address.

52
00:02:37,650 --> 00:02:39,690
If we do a simple ipconfig,

53
00:02:39,690 --> 00:02:43,440
we'll see once again our ethernet adapter

54
00:02:43,440 --> 00:02:47,370
and the address 10.254.254.204.

55
00:02:47,370 --> 00:02:51,600
That address is a private address.

56
00:02:51,600 --> 00:02:55,080
Anything on the 10 network
is gonna be private.

57
00:02:55,080 --> 00:02:56,280
That's internal.

58
00:02:56,280 --> 00:02:57,390
And the only computers

59
00:02:57,390 --> 00:03:00,600
that are gonna be able to connect
to this are local systems,

60
00:03:00,600 --> 00:03:02,700
systems on the local area network.

61
00:03:02,700 --> 00:03:03,780
But you don't have to worry

62
00:03:03,780 --> 00:03:07,470
about computers on the
internet connecting to you.

63
00:03:07,470 --> 00:03:12,030
If you want to have a system
that anyone can connect to

64
00:03:12,030 --> 00:03:15,510
then you want to have some
type of server on the internet

65
00:03:15,510 --> 00:03:18,510
and then you would want
a public IP address.

66
00:03:18,510 --> 00:03:21,420
So let's give an example of that now.

67
00:03:21,420 --> 00:03:24,960
I'm gonna connect to
the example.com domain

68
00:03:24,960 --> 00:03:26,820
with the ping command,

69
00:03:26,820 --> 00:03:30,000
which will then show
its public IP address.

70
00:03:30,000 --> 00:03:32,830
So we'll do a ping and example.com

71
00:03:33,810 --> 00:03:36,960
and you can see the replies come up now.

72
00:03:36,960 --> 00:03:38,760
I'm pinging this from my computer,

73
00:03:38,760 --> 00:03:42,270
but example.com is in a
completely different area

74
00:03:42,270 --> 00:03:43,680
on the internet.

75
00:03:43,680 --> 00:03:48,677
And you can see the address
here, 93.184.216.34.

76
00:03:50,214 --> 00:03:53,160
93 is a public IP address.

77
00:03:53,160 --> 00:03:56,880
Anything that starts with
the class A 93 network

78
00:03:56,880 --> 00:03:58,470
is gonna be public.

79
00:03:58,470 --> 00:04:02,370
So you got a little example
there with example.com

80
00:04:02,370 --> 00:04:03,780
of a public address.

81
00:04:03,780 --> 00:04:06,930
Remember, the public
addresses are used by servers

82
00:04:06,930 --> 00:04:10,200
or any computers that
need to be internet facing

83
00:04:10,200 --> 00:04:12,783
so that anyone around the
world can connect to it.

84
00:04:13,950 --> 00:04:16,380
But the private address is
something that you use usually

85
00:04:16,380 --> 00:04:20,250
for all your local computers,
all your clients on your LAN.

86
00:04:20,250 --> 00:04:21,600
And an example of that

87
00:04:21,600 --> 00:04:24,360
is our laptop that we have right here

88
00:04:24,360 --> 00:04:29,360
that's using the IPv4
address 10.254.254.204.

89
00:04:29,460 --> 00:04:32,970
So know your differences
between private and public

90
00:04:32,970 --> 00:04:34,890
and take a look on your own system now

91
00:04:34,890 --> 00:04:36,660
and take a look at your own address

92
00:04:36,660 --> 00:04:39,540
and maybe try pinging some
websites and domains out there

93
00:04:39,540 --> 00:04:41,820
to see their public addresses.

94
00:04:41,820 --> 00:04:44,013
And that wraps it up for this sub lesson.
