Get a print server.
It’s a device that is USB on one side, RJ45 on the other, so it connects up to your network like any other device.
You usually have to load software on one of your PCs for it...
Then your printer will have its own IP address just like your PCs do, and you aren’t stuck with having to use that gawdawful Windows File and Print Sharing, which is another of the myriad security holes which plague that operating system.
If you’re short on network ports, you can also get a 5 port switch very cheaply.
Hope this helps.
Good advice. But with one caveat; be danged sure that the print server you buy is guaranteed to work with your specific model of printer.
I too used to be able to share my printer with all nodes of my network.
That is, until Windows decided I didn't need that functionality anymore. Since then it has decided not to play ball and will not respond to any of my ministrations to get sharing enabled again. I am well versed in the art of PCs and networking but this has stumped me for a long time.
I decided to get a print server but found out after my purchase that it was not compatible with my model of printer. Nor was any other print server. Back to square one.
So, be sure to check compatibility before buying.