Communication between devices may be blocked by network security.
Wi-Fi router security settings may block communication between devices. Please check the settings of your Wi-Fi router.
If you're using a VPN connection, please turn off the VPN connection.
A firewall blocking the communication can be one of other possible reasons.