- [Instructor] Hey, let's discuss and demonstrate
USB tethering.
I'll wake up this phone here,
bring it down here.
Go to do not disturb mode
so that we won't get disturbed
with any of the millions of notifications that come in.
And so I wanna talk about USB tethering.
That's when a mobile device like this
is connected to a desktop or a laptop computer
via a USB connection.
That other desktop or laptop,
which is running windows or Mac OS
can then share the phone's mobile internet connection.
As with mobile hotspots,
enabling this will automatically disable
the mobile device's WiFi connection.
And so why might you wanna use this?
Well, first of all, it works good in a pinch
if you don't have a connection for your laptop or your PC.
So let's say the WiFi fails on a PC or laptop,
or there's some type of issue with the network connection,
then you could connect via USB directly to this
and use that as a backup
or just as a means of connecting a laptop
if you're on the road and there's no access to WiFi
or to a wired networking connection.
So to make this work,
what we do is we go to our Settings,
and then go to Network, and go to Tethering.
And this is also where the Mobile HotSpot is located.
And then you wanna connect your device
to your PC or your laptop via USB.
So I've connected the other end to my desktop computer
and connect this end here now.
And once we do that,
we get the option to actually do USB tethering.
Before it was grayed out, it was disabled altogether.
It doesn't become enabled
until you actually connect that cable.
Now, let's take a look at the PC side for a second,
and I'm on the computer.
And we have two networking connections.
Now, this is a desktop computer, my main workstation,
and it has two wired connections.
It does not have a WiFi connection.
I don't have any space inside the system for that,
but I have connections to two networks,
main-network and dpro42.
And we can go to the change adapter settings screen
to see those.
The screens are blue, so we know that they are active,
but let's say we lost our internet connection.
And for example, this kind of thing
can work great as a backup for somebody like me
when I'm running webinars
and everything runs through the internet connection.
Well, let's take a look in the command prompt.
I'm gonna do an ipconfig
and take a look at my networking connections.
I like to show these things in the GUI
and in the command line.
So here's main-network,
the main ethernet adapter, that's the wired connection.
It connects on the 192.168.41 network.
And then we have the dpro 42.
That's on the 10.252 network.
So two different network connections.
And one of the reasons I have that
is so I can connect to a test network
and also for a secondary internet connection,
but the idea here is that the internet connections fail.
So let's go back to our network connections,
and to simulate that I'm going to disable these.
Right click and disable each of them
so they're grayed out, okay?
I have just lost connectivity to a whole ton of stuff.
So these are grayed out.
If we go back to the command prompt
and do another ipconfig and take a look,
we will have nothing.
Now, we have a lot of virtual connections.
We've got VirtualBox, VMware, that kind of thing,
but without those wired network connections,
we really can't do anything.
And so, for example, let's say I want to go
to another page,
and let's say I wanted to go to D Pro Computer.
It'll say no internet cannot connect.
So we have proven this computer cannot connect.
Now we wanna go and check out the backup option
so that we can connect.
And so we'll go back to our phone here, our smartphone.
We've already connected the cable.
So now we'll go ahead and tap on USB tethering.
Just tap on it to turn it on.
And in most cases, that's all you have to do.
Now, it tells you WiFi is turned off automatically
when you turn on mobile hotspots or USB tethering.
So WiFi gets turned off automatically.
So I'll just OK that and cancel out of the learning option.
And now we see that it is blue, so it is enabled.
And that's really all you have to do.
Now, in some cases on older devices,
you'd have to do a little bit more configuration.
And on older operating systems on a PC or the laptop,
you'd have to install a driver
or something special like that,
but in most cases now, you don't have to do that.
Let's go back to the computer.
And I didn't do anything on this desktop.
I'm doing this in real time.
And if we refresh,
it'll go right to the page that you want.
Internet access will start to work.
Here's my A+ Study Page from the 900 series.
And so a little bit slower
than the regular internet connection, but it works.
23,000 visits to this page.
So that is functioning
and it worked right off the bat.
But again, sometimes you'd have to go and install
some type of driver
or something for an older operating system.
Today's systems should see it automatically.
And if we take a look at our network connection screen,
well, our main wired connections, they're still disabled,
but now we have this, Ethernet 2,
which has the blue screens.
And if we go to our command prompt
and do another ipconfig
and take a look
we will see Ethernet 2, bring this to the top here.
192.168.42 network.
Well, previously we had the main network connection
on 192.168.41
And in fact, that's what the smartphone
was connecting with as well
on its WiFi.
When it was connecting via WiFi.
That was on the 192.168.41 network.
So what did the smartphone do?
It took the next network number in line
and created 192.168.42 as a network
for the phone and for this computer
to communicate out to the internet,
and it calls this Ethernet 2.
This is a Windows 10 Pro computer, by the way.
And we're good.
We can connect on the internet now.
We can go where we need to go and do what we need to do.
So USB tethering is functioning as it should.
And when you're done,
and by the way,
when you're doing this type of thing,
if you're on the PC or laptop,
quite often you will get issues
trying to work with anything networking.
You're gonna get a lot of problems with this.
Connecting to anything on the local area network
that you might have access to,
working with programs like the network and sharing center,
viewing connections, say viewing connections
in the command prompt with something like netstat,
all of these things are either gonna be very slow,
they're gonna get hung up or they're not gonna work at all
'cause we have a totally new network configuration here.
And so when we're done
and we no longer need that temporary connection,
'cause that's really what this should be, temporary,
then we can disable it,
turns it off.
Go back to our main system here,
and that is gone from the networking connections.
That has disappeared.
And likewise, we will lose connectivity
to the internet once again.
Right?
And so that works as a good backup
until we get our main network connection back,
or really our main internet connection back for these guys.
All right, I've just re-enabled those.
And so just to check,
we should be good.
F5 and we're back on the page, all right?
And there's so much cool stuff you could do with USB
when it comes to Android.
And so for example, you might be interested
in the Android to Debug Bridge,
which allows your PC to talk to the device
and you can do debugging.
You can install, apps, you can run all kinds of commands,
adb for working with the device directly.
And if you're interested in that kind of thing,
you're gonna wanna be a developer.
And so when you connect via USB
with that USB connection here,
you get some different options with USB.
And if we swipe down from the top,
we'll see some options here.
And we see that it's set to charging,
but we can do different things with these USB options.
If we tap on that,
we can have charging, we can do file transfer,
just photo transfer, connect with MIDI.
So in fact, if you wanted to transfer files to a PC,
you might have to select file transfer.
But it goes past this.
We can become a developer and do more with USB,
a lot more,
by going to our Settings,
go to General,
go to about phone,
software info,
and then the build number.
And to become a developer, you tap the build number.
Generally it's like seven times in Android,
depends on the version,
but we start tapping it.
You tap it seven times and you become a developer.
I've already done this so it says,
"No need, you're already a developer."
When you do that, you get this additional option here above
about phone called developer options.
And then from here, you can do all kinds of cool stuff
with the device just from a configuration standpoint
and then from a debugging and a programmatical standpoint,
All right, bug reports,
USB debugging, which you can turn on.
That'll work with adb very well.
You could do all kinds of stuff with this.
Different types of screen sharing
and all kinds of programmatical and testing
and debugging types of things.
Now, if you're using, say an iPad for that,
it's gonna vary depending on the generation of iPad,
but you might have to go to the Settings
and then go to, it's Personal Hotspot.
And that's only if you have a cellular connection
for this device.
This one actually doesn't.
So you'd go to Settings and go to Personal Hotspot,
turn it on from there,
connect the USB cable,
and then it'll begin tethering to a computer.
Older devices, you would do it within iTunes, okay?
But the concept's about the same
and works basically in the same way
as with an Android device.
All right, so that's a little bit of USB tethering.
So once again, that's when a mobile device
connects to your desktop or laptop computer,
and that desktop or laptop can then share
the internet connection of that phone or tablet.
And so that's it for this video.