Try the Private setting noted at https://www.tenforums.com/tutorials/6815-set-network-location-private-public-windows-10-a.html
Also, I do run across this when the router has firewalls enabled but your claim is it's an OS issue.
My computer can connect to my wireless printer when I connect to the network via WiFi, but it can't connect to the printer when the computer is connected to the router with an Ethernet cable. A fresh OS install solves this problem, but the problem keeps happening again after a couple months or so. Does anyone have an idea of what could cause this kind of problem?