How to connect two computers using one modem so they both use the internet

That is one way.

If you have a computer with two built-in ethernet ports, you can plug the modem into one, plug the second computer into the other ethernet port, and connect to the internet through the first computer. Because nearly all motherboards include an ethernet port, you can buy a network card and plug the second computer into it.

The big problem with these approaches is that the first computer needs to be on.
 

zxcvmnb75

Honorable
Aug 3, 2013
1
0
10,510
connect any one computer to modem . create a ad- hoc wifi network and connect other computer to it.
Share the internet setting of first computer as
Network and Sharing Center > local area connection > properties > sharing > allow other computers to connect .....
Somehow my android phone cannot connect to such wifi .