SAEDNEWS: Computers without Wi-Fi can be connected to the internet using a USB cable and a smartphone.
How to Connect Your Phone’s Internet to a Computer via USB
Many users are familiar with sharing a smartphone’s internet connection with a laptop or computer through a mobile hotspot or Wi-Fi.
But what if you want to connect a computer that does not have Wi-Fi to the internet through your phone? The solution is to use a USB cable, which is commonly included with most smartphones.

First, connect your smartphone to the computer using a USB cable. On the phone, select PC Suite as the USB connection mode.
Next, open the following settings on your phone:
Settings > More > Tethering & Portable Wi-Fi Hotspot

Note: On Android 5 and later, the More option has been removed, so you can access the tethering settings directly.

Look for the USB Tethering option and turn it on.

Once enabled, Windows should automatically detect the phone’s internet connection and connect the computer to the internet through the USB cable.
This method is particularly useful for desktop computers or other devices that do not have built-in Wi-Fi.