Yes.
As said before, make sure that your console actually connects to your router, and try disable built-in firewall on router.
Otherwise, connect PC and Nintendo to an hotspot created by your smartphone, I resolved this way
I disabled the router's firewall and that didn't work, I used my phone and that didn't work.