Sounds like a firewall or router is blocking the ports that are needed to be open.
This could be on both systems.
If both systems have avast installed, you could try “avast remote assistance”.