Solution 1:
You are connected to the wrong Wi-Fi network. Select the WLAN network the gateway is connected to.
Solution 2:
The router does not allow WLAN devices to communicate with each other. Open the settings of your router and allow communication among the WLAN devices that are set up on the router.