Okay.
So here's the Windows ten laptop.
That's the laptop on my left.
Let's open a CMD prompt or command prompt.
Run it as administrator to check whether this supports ad hoc networks.
The command to do that is net.
S.
W.
Lan show drivers.
And what you need to check for is this hosted network support.
So this command will tell us whether this network card in this PC supports ad hoc networks.
As you can see here, this network card doesn't.
So I can't use that laptop to set up an ad hoc wireless network.
So what about the HP laptop?
So I'll run a CMD prompt as administrator.
Command is to h w lan show drivers.
And here we have some good news.
Notice hosted network support is yes.
The computer on my right is an HP laptop running windows eight, but it does support ad hoc mode or
hosted networks.
So that's good news.
I'll use this laptop now to set up the wi fi network.
So first thing I did once again is check whether it supports ad hoc networks.
And once again, we can see that it does.
So what I'll do is clear the screen.
So he has a quick cheat sheet.
I've already opened up a command prompt.
I've checked whether the card supports the feature.
Yes, it does.
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.
Obviously not a good example, but it's fine just for this demonstration.
You should use a better key than that.
So I'll paste that in.
And as we can see here, the hosted network mode has been set to allow the side of the hosted network
has been successfully changed.
The user key passphrase of the hosted network has been successfully changed.
So that's all good.
But it's not going to work until I start the hosted network.
And this is where a lot of people have problems.
That's why you need to check and make sure that your card supports ad hoc mode first, because when
you type this command, it won't work.
If the network code doesn't support ad hoc networks.
But notice here we can see that the network has started.
I'm going to open up control panel.
Go to network and Internet.
Go to network and sharing center.
And notice we've got to test ad hoc.
Now, it may take it a while to start that depending on your laptop.
This is an older laptop, so it's quite slow, but hopefully you should see test ad hoc or the name
of the network that you've created.
So now I can go to my Windows ten laptop.
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
network.
Now again, it might be a bit slow because old laptop on the right here, I was hoping that the laptop
on the left supported this feature, but it doesn't.
It's a much newer laptop but doesn't support it.
Notice we connected now, but there's no internet.
We are secured, however.
Now, the reason I was able to connect to the network without being prompted for a password is that
I've previously connected to this ad hoc network, so I've previously tested this to make sure that
it works.
And I entered the password when prompted and Windows has remembered that password so it didn't have
to enter it again.
You would be prompted for the password if you hadn't connected to the network previously, so you'd
be authenticated before you could join that network.
In this case, I didn't have to once again, because I had previously connected from the Windows ten
laptop to the Windows eight laptop.
So going to command prompt on the Windows ten computer top IP config and I'll push this to more.
I've got a whole bunch of network interfaces on this computer, but notice here, wireless adapter,
wi fi, mss, home dot net.
This is my IP address.
I'll open up control panel on this computer as well.
Go to network and Internet Network and sharing center.
Notice we are connected to the public network.
I can go to change adapter settings.
I can see that my wi fi adapter is connected to test ad hoc.
I'll double click on that, go to details.
And as you can see, here's my IP address on this network interface card.
I can also see the domain name MSS, home net.
Okay.
So I've connected to the wi fi network.
Here's my default gateway.
So on my cmd prompt ping 1921681 73.1.
Notice I can ping the HP laptop.
And to prove that on the HP laptop, I'll change my adapter settings.
Here's my local area.
Connection test, ad hoc details.
You can see this is the IP address of this network interface code.
But let's do a proper test.
Let's try and share.
A file from this laptop to that laptop using just the WiFi network.
So at the moment, the HP laptop doesn't have a picture on its desktop.
The Windows ten computer does.
So I'm going to copy this image from the Windows ten computer to the Windows eight computer using the
ad hoc WiFi network.
So what I'll do is use a command prompt and type net use.
You could do this through file explorer.
I'm just going to do it through the CLI because then I can show you that I'm connecting to this IP address
directly.
So I'm going to basically create a network share.
I'm trying to connect from PC on the left to PC on on the right to set up a network share.
I'm also for my username.
That's a good sign.
Put in my password and notice I've connected successfully to the HP laptop.
Net use shows me that this drive P is connected to the HP laptop.
If I open up file explorer, go to this PC.
Windows is unfortunately doing its normal thing where it's not showing the drive, so let's try and
kick it into life by opening up another connection.
So let's use queue here.
So that's also connected successfully.
If I type P as an example, notice I've moved to that directory type draw.
I'm actually on the HP laptop here just to prove the point, when I go to the HP computer, I see the
same files on both computers.
As an example, if I make a new folder here called Ad Hoc WI Fi.
Top deals are on the Windows ten computer.
I see that folder.
I'm going to go back to my local computer.
So this is different.
This is my local computer and I've got a image file here.
So I'm going to type copy img eight to P backslash, ad hoc wi fi.
One file has been copied.
So jumping to the Windows eight computer C drive, ad hoc wi fi notice this file has been copied from
Windows ten to Windows eight.
Now, you wouldn't typically have to do this through the command line, but I'm just showing you that
it is possible to copy files from one computer to another.
So I was able to copy this image from the Windows ten computer to the Windows eight computer using the
wi fi network.
Now, I know a lot of people are going to ask me this, so let me explain how I'm controlling these
two computers.
Via.
My Mac.
I've physically connected to the PCs on the switch, but the PCs are communicating across the WiFi network.
One of the reasons I wanted to show you through the CLI, what I'm doing is notice net use shows me
that I'm connecting to this IP address, which is a wireless connection.
So I'm not copying the files from the Windows ten laptop to the Windows eight laptop using the physical
infrastructure or this physical Ethernet connection.
I'm copying the file using the wi fi network because notice once again PE is connected to the wi fi
connection.
So if I go into control panel once again network and internet network and sharing center change adapter
settings, notice the wi fi network is using the subnet.
So I'm talking from one laptop to the other using the wi fi network.
I could prove that by pinging the IP address of the HP laptops wi fi interface.
So there's the ping.
And what I'll do is disconnect the Ethernet cable here.
And what you'll notice is I'm still able to ping.
So we'll make that a continuous thing.
And notice the Windows ten computer can still ping the HP computer, but I've lost my connection to
that Windows computer because I disconnected the physical Ethernet cable so my Mac doesn't have a connection
to it.
I'll plug it back in again.
Spanning trees is going to take a few seconds to bring that port up.
I should have enabled port first on that port, but I didn't in this example.
So take a few seconds.
The Windows ten computer can still ping the HP computer.
But I don't have connectivity to the Windows ten computer from my Mac.
It's trying to connect now because that port is still transitioning to the forwarding state, which
it's just done.
I notice now I can see it on my Mac.
So in this video I showed you how to set up an ad hoc network between two Windows computers.
I was able to connect from the one Windows computer to the other, using a wi fi network hosted on that
Windows eight computer, the HP computer.
And then I was able to copy a file from the one computer to the other.