Windows comes pre-configured for Internet access via Ethernet. If your computer includes an Ethernet adapter as many do, connecting your computer to the Internet is as simple as connecting a cable.
Android's USB tethering lets you reliably share internet from your phone, but it may fail sometimes. Here are some quick fixes to get it working again.