Move the printer cable from one machine to the other.

My setup takes a router. All PCs (too many) connected to router. Printer connected to my PC (main PC). When my PC is on all other PCs can access the printer because of File and Printer sharing.

Some newer routers accept a printer. Shop around.