ERROR: Cloud: unable to resolve IP for device.spark.io

Hello,

My Photn P1 is not connecting to cloud, although the same P1 connects to internet with mobile hotspot. Also it connects to cloud(rarely) after rebooting the router, BUT after reset the P1, again it is unable to connect to cloud.

I am receiving the system log as follows

0000005021 [system] INFO: Cloud: connecting
0000020050 [system] ERROR: Cloud: unable to resolve IP for device.spark.io
0000020050 [system] WARN: Cloud socket connection failed: -1
0000020160 [system] WARN: Internet available, Cloud not reachable!
0000020160 [system] WARN: Handling cloud error: 3
0000021060 [system] INFO: Cloud: connecting
0000036071 [system] ERROR: Cloud: unable to resolve IP for device.spark.io
0000036071 [system] WARN: Cloud socket connection failed: -1
0000036071 [system] WARN: Resetting WLAN due to 2 failed connect attempts
0000036484 [system] WARN: Internet available, Cloud not reachable!
0000036484 [system] WARN: Handling cloud error: 3
0000036484 [system] WARN: Resetting WLAN due to SPARK_WLAN_RESET

I checked my router I didn’t find any internet blocking settings.

@Aarya, you need to make sure your router is not blocking CoAP port (UDP 5683). This is the port used for connecting to the Particle Cloud.

The WiFi router I am using is Wireless N 4G LTE Router (TP-LINK TL-MR6400), I tried this router as WiFi extension (connect with LAN cable with another WiFi router) it works totally fine. But with the SIM card photon is behaving same. I aslo try to find CoAP setting and did the following settings.

In the last problem we had with a similar error message reported, it turned out that the hot-spot did not have DNS host set and setting that to a valid DNS server (such as Google’s 8.8.8.8) made the Photon connect.

Can you check that?

Yes, I tried with this settings
Primary DNS as 8.8.8.8
And Secondary DNS as 8.8.4.4