1
00:00:04,720 --> 00:00:04,990
Okay.

2
00:00:04,990 --> 00:00:07,270
So here's the Windows ten laptop.

3
00:00:07,330 --> 00:00:09,490
That's the laptop on my left.

4
00:00:09,670 --> 00:00:13,990
Let's open a CMD prompt or command prompt.

5
00:00:14,230 --> 00:00:21,850
Run it as administrator to check whether this supports ad hoc networks.

6
00:00:22,180 --> 00:00:25,090
The command to do that is net.

7
00:00:25,810 --> 00:00:26,080
S.

8
00:00:26,710 --> 00:00:27,340
W.

9
00:00:27,340 --> 00:00:29,440
Lan show drivers.

10
00:00:31,470 --> 00:00:39,330
And what you need to check for is this hosted network support.

11
00:00:39,750 --> 00:00:48,030
So this command will tell us whether this network card in this PC supports ad hoc networks.

12
00:00:48,270 --> 00:00:51,270
As you can see here, this network card doesn't.

13
00:00:51,450 --> 00:00:57,210
So I can't use that laptop to set up an ad hoc wireless network.

14
00:00:57,540 --> 00:01:00,570
So what about the HP laptop?

15
00:01:00,840 --> 00:01:04,650
So I'll run a CMD prompt as administrator.

16
00:01:07,160 --> 00:01:12,530
Command is to h w lan show drivers.

17
00:01:13,550 --> 00:01:15,080
And here we have some good news.

18
00:01:15,080 --> 00:01:18,710
Notice hosted network support is yes.

19
00:01:18,950 --> 00:01:25,790
The computer on my right is an HP laptop running windows eight, but it does support ad hoc mode or

20
00:01:25,790 --> 00:01:27,020
hosted networks.

21
00:01:27,410 --> 00:01:28,600
So that's good news.

22
00:01:28,610 --> 00:01:32,510
I'll use this laptop now to set up the wi fi network.

23
00:01:32,960 --> 00:01:38,900
So first thing I did once again is check whether it supports ad hoc networks.

24
00:01:39,110 --> 00:01:41,330
And once again, we can see that it does.

25
00:01:41,660 --> 00:01:43,550
So what I'll do is clear the screen.

26
00:01:44,030 --> 00:01:45,580
So he has a quick cheat sheet.

27
00:01:45,590 --> 00:01:47,690
I've already opened up a command prompt.

28
00:01:48,170 --> 00:01:51,470
I've checked whether the card supports the feature.

29
00:01:51,470 --> 00:01:52,310
Yes, it does.

30
00:01:52,310 --> 00:02:00,740
So what I'm going to do is set up a wireless network with this SSID test ad hoc and with a key of this.

31
00:02:00,770 --> 00:02:05,090
Obviously not a good example, but it's fine just for this demonstration.

32
00:02:05,210 --> 00:02:07,250
You should use a better key than that.

33
00:02:08,479 --> 00:02:10,460
So I'll paste that in.

34
00:02:11,780 --> 00:02:19,970
And as we can see here, the hosted network mode has been set to allow the side of the hosted network

35
00:02:19,970 --> 00:02:21,800
has been successfully changed.

36
00:02:21,920 --> 00:02:26,960
The user key passphrase of the hosted network has been successfully changed.

37
00:02:26,960 --> 00:02:28,550
So that's all good.

38
00:02:28,580 --> 00:02:34,370
But it's not going to work until I start the hosted network.

39
00:02:35,130 --> 00:02:36,900
And this is where a lot of people have problems.

40
00:02:36,900 --> 00:02:43,110
That's why you need to check and make sure that your card supports ad hoc mode first, because when

41
00:02:43,110 --> 00:02:46,170
you type this command, it won't work.

42
00:02:49,060 --> 00:02:52,590
If the network code doesn't support ad hoc networks.

43
00:02:52,600 --> 00:02:55,210
But notice here we can see that the network has started.

44
00:02:56,110 --> 00:02:58,270
I'm going to open up control panel.

45
00:02:58,300 --> 00:03:00,160
Go to network and Internet.

46
00:03:00,580 --> 00:03:02,530
Go to network and sharing center.

47
00:03:04,390 --> 00:03:06,640
And notice we've got to test ad hoc.

48
00:03:06,670 --> 00:03:10,840
Now, it may take it a while to start that depending on your laptop.

49
00:03:10,840 --> 00:03:17,650
This is an older laptop, so it's quite slow, but hopefully you should see test ad hoc or the name

50
00:03:17,650 --> 00:03:19,210
of the network that you've created.

51
00:03:20,170 --> 00:03:25,000
So now I can go to my Windows ten laptop.

52
00:03:26,020 --> 00:03:34,090
I'll click on wi fi and notice I can see test ad hoc and I'm going to click Connect to connect to that

53
00:03:34,090 --> 00:03:34,900
network.

54
00:03:36,290 --> 00:03:42,320
Now again, it might be a bit slow because old laptop on the right here, I was hoping that the laptop

55
00:03:42,320 --> 00:03:45,350
on the left supported this feature, but it doesn't.

56
00:03:45,680 --> 00:03:48,350
It's a much newer laptop but doesn't support it.

57
00:03:48,800 --> 00:03:51,550
Notice we connected now, but there's no internet.

58
00:03:51,560 --> 00:03:53,270
We are secured, however.

59
00:03:53,600 --> 00:03:58,370
Now, the reason I was able to connect to the network without being prompted for a password is that

60
00:03:58,370 --> 00:04:03,710
I've previously connected to this ad hoc network, so I've previously tested this to make sure that

61
00:04:03,710 --> 00:04:04,370
it works.

62
00:04:04,580 --> 00:04:10,250
And I entered the password when prompted and Windows has remembered that password so it didn't have

63
00:04:10,250 --> 00:04:11,510
to enter it again.

64
00:04:11,510 --> 00:04:17,269
You would be prompted for the password if you hadn't connected to the network previously, so you'd

65
00:04:17,269 --> 00:04:20,000
be authenticated before you could join that network.

66
00:04:20,000 --> 00:04:24,320
In this case, I didn't have to once again, because I had previously connected from the Windows ten

67
00:04:24,320 --> 00:04:26,690
laptop to the Windows eight laptop.

68
00:04:26,990 --> 00:04:35,330
So going to command prompt on the Windows ten computer top IP config and I'll push this to more.

69
00:04:35,660 --> 00:04:42,650
I've got a whole bunch of network interfaces on this computer, but notice here, wireless adapter,

70
00:04:42,650 --> 00:04:46,070
wi fi, mss, home dot net.

71
00:04:46,880 --> 00:04:48,500
This is my IP address.

72
00:04:50,260 --> 00:04:52,790
I'll open up control panel on this computer as well.

73
00:04:52,810 --> 00:04:56,110
Go to network and Internet Network and sharing center.

74
00:04:56,740 --> 00:05:00,070
Notice we are connected to the public network.

75
00:05:00,250 --> 00:05:02,500
I can go to change adapter settings.

76
00:05:03,010 --> 00:05:07,180
I can see that my wi fi adapter is connected to test ad hoc.

77
00:05:07,420 --> 00:05:10,180
I'll double click on that, go to details.

78
00:05:10,510 --> 00:05:15,040
And as you can see, here's my IP address on this network interface card.

79
00:05:15,070 --> 00:05:19,240
I can also see the domain name MSS, home net.

80
00:05:20,630 --> 00:05:20,870
Okay.

81
00:05:20,870 --> 00:05:23,250
So I've connected to the wi fi network.

82
00:05:23,300 --> 00:05:25,220
Here's my default gateway.

83
00:05:28,710 --> 00:05:36,180
So on my cmd prompt ping 1921681 73.1.

84
00:05:36,660 --> 00:05:39,630
Notice I can ping the HP laptop.

85
00:05:40,310 --> 00:05:46,370
And to prove that on the HP laptop, I'll change my adapter settings.

86
00:05:48,010 --> 00:05:49,480
Here's my local area.

87
00:05:49,480 --> 00:05:52,960
Connection test, ad hoc details.

88
00:05:53,170 --> 00:05:57,430
You can see this is the IP address of this network interface code.

89
00:05:58,520 --> 00:05:59,830
But let's do a proper test.

90
00:05:59,840 --> 00:06:01,400
Let's try and share.

91
00:06:02,410 --> 00:06:07,660
A file from this laptop to that laptop using just the WiFi network.

92
00:06:07,900 --> 00:06:12,970
So at the moment, the HP laptop doesn't have a picture on its desktop.

93
00:06:14,990 --> 00:06:17,390
The Windows ten computer does.

94
00:06:17,390 --> 00:06:24,800
So I'm going to copy this image from the Windows ten computer to the Windows eight computer using the

95
00:06:24,800 --> 00:06:26,300
ad hoc WiFi network.

96
00:06:27,560 --> 00:06:35,580
So what I'll do is use a command prompt and type net use.

97
00:06:35,600 --> 00:06:38,340
You could do this through file explorer.

98
00:06:38,360 --> 00:06:47,210
I'm just going to do it through the CLI because then I can show you that I'm connecting to this IP address

99
00:06:47,210 --> 00:06:48,050
directly.

100
00:06:49,070 --> 00:06:52,700
So I'm going to basically create a network share.

101
00:06:52,970 --> 00:06:59,240
I'm trying to connect from PC on the left to PC on on the right to set up a network share.

102
00:07:00,790 --> 00:07:01,910
I'm also for my username.

103
00:07:01,930 --> 00:07:03,430
That's a good sign.

104
00:07:03,790 --> 00:07:09,250
Put in my password and notice I've connected successfully to the HP laptop.

105
00:07:09,670 --> 00:07:16,000
Net use shows me that this drive P is connected to the HP laptop.

106
00:07:16,540 --> 00:07:19,810
If I open up file explorer, go to this PC.

107
00:07:20,590 --> 00:07:26,410
Windows is unfortunately doing its normal thing where it's not showing the drive, so let's try and

108
00:07:26,440 --> 00:07:29,440
kick it into life by opening up another connection.

109
00:07:29,860 --> 00:07:31,570
So let's use queue here.

110
00:07:32,920 --> 00:07:35,080
So that's also connected successfully.

111
00:07:35,440 --> 00:07:41,170
If I type P as an example, notice I've moved to that directory type draw.

112
00:07:41,350 --> 00:07:49,900
I'm actually on the HP laptop here just to prove the point, when I go to the HP computer, I see the

113
00:07:49,900 --> 00:07:52,210
same files on both computers.

114
00:07:52,600 --> 00:08:00,640
As an example, if I make a new folder here called Ad Hoc WI Fi.

115
00:08:03,720 --> 00:08:06,870
Top deals are on the Windows ten computer.

116
00:08:06,900 --> 00:08:08,640
I see that folder.

117
00:08:10,090 --> 00:08:12,640
I'm going to go back to my local computer.

118
00:08:12,820 --> 00:08:14,010
So this is different.

119
00:08:14,020 --> 00:08:18,160
This is my local computer and I've got a image file here.

120
00:08:18,340 --> 00:08:26,350
So I'm going to type copy img eight to P backslash, ad hoc wi fi.

121
00:08:28,790 --> 00:08:30,380
One file has been copied.

122
00:08:30,470 --> 00:08:41,900
So jumping to the Windows eight computer C drive, ad hoc wi fi notice this file has been copied from

123
00:08:41,900 --> 00:08:44,179
Windows ten to Windows eight.

124
00:08:44,570 --> 00:08:48,620
Now, you wouldn't typically have to do this through the command line, but I'm just showing you that

125
00:08:48,620 --> 00:08:52,640
it is possible to copy files from one computer to another.

126
00:08:53,370 --> 00:09:00,780
So I was able to copy this image from the Windows ten computer to the Windows eight computer using the

127
00:09:00,780 --> 00:09:01,920
wi fi network.

128
00:09:02,100 --> 00:09:07,170
Now, I know a lot of people are going to ask me this, so let me explain how I'm controlling these

129
00:09:07,170 --> 00:09:08,340
two computers.

130
00:09:09,560 --> 00:09:10,400
Via.

131
00:09:11,150 --> 00:09:12,200
My Mac.

132
00:09:12,620 --> 00:09:21,290
I've physically connected to the PCs on the switch, but the PCs are communicating across the WiFi network.

133
00:09:21,590 --> 00:09:30,020
One of the reasons I wanted to show you through the CLI, what I'm doing is notice net use shows me

134
00:09:30,020 --> 00:09:35,780
that I'm connecting to this IP address, which is a wireless connection.

135
00:09:35,780 --> 00:09:42,410
So I'm not copying the files from the Windows ten laptop to the Windows eight laptop using the physical

136
00:09:42,410 --> 00:09:45,910
infrastructure or this physical Ethernet connection.

137
00:09:45,920 --> 00:09:54,290
I'm copying the file using the wi fi network because notice once again PE is connected to the wi fi

138
00:09:54,560 --> 00:09:55,370
connection.

139
00:09:55,610 --> 00:10:04,040
So if I go into control panel once again network and internet network and sharing center change adapter

140
00:10:04,040 --> 00:10:08,930
settings, notice the wi fi network is using the subnet.

141
00:10:09,290 --> 00:10:13,700
So I'm talking from one laptop to the other using the wi fi network.

142
00:10:14,610 --> 00:10:20,640
I could prove that by pinging the IP address of the HP laptops wi fi interface.

143
00:10:20,880 --> 00:10:22,290
So there's the ping.

144
00:10:22,890 --> 00:10:25,950
And what I'll do is disconnect the Ethernet cable here.

145
00:10:26,340 --> 00:10:30,780
And what you'll notice is I'm still able to ping.

146
00:10:33,940 --> 00:10:35,770
So we'll make that a continuous thing.

147
00:10:36,860 --> 00:10:44,120
And notice the Windows ten computer can still ping the HP computer, but I've lost my connection to

148
00:10:44,120 --> 00:10:52,340
that Windows computer because I disconnected the physical Ethernet cable so my Mac doesn't have a connection

149
00:10:52,340 --> 00:10:52,910
to it.

150
00:10:53,000 --> 00:10:54,170
I'll plug it back in again.

151
00:10:54,170 --> 00:10:57,110
Spanning trees is going to take a few seconds to bring that port up.

152
00:10:57,590 --> 00:11:00,920
I should have enabled port first on that port, but I didn't in this example.

153
00:11:00,920 --> 00:11:02,540
So take a few seconds.

154
00:11:02,930 --> 00:11:07,130
The Windows ten computer can still ping the HP computer.

155
00:11:08,260 --> 00:11:13,090
But I don't have connectivity to the Windows ten computer from my Mac.

156
00:11:13,120 --> 00:11:19,600
It's trying to connect now because that port is still transitioning to the forwarding state, which

157
00:11:19,600 --> 00:11:20,480
it's just done.

158
00:11:20,500 --> 00:11:23,180
I notice now I can see it on my Mac.

159
00:11:23,230 --> 00:11:28,030
So in this video I showed you how to set up an ad hoc network between two Windows computers.

160
00:11:28,540 --> 00:11:36,790
I was able to connect from the one Windows computer to the other, using a wi fi network hosted on that

161
00:11:36,790 --> 00:11:39,120
Windows eight computer, the HP computer.

162
00:11:39,130 --> 00:11:42,700
And then I was able to copy a file from the one computer to the other.

