# Wifi localip problem \[SOLVED\]

**URL:** <https://community.particle.io/t/wifi-localip-problem-solved/17659>\
**Category:** Firmware\
**Created:** [November 20, 2015, 11:15pm UTC](https://community.particle.io/t/wifi-localip-problem-solved/17659 "2015-11-20T23:15:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mete](https://avatars.discourse-cdn.com/v4/letter/m/c0e974/32.png) [@mete](https://community.particle.io/u/mete)\
**Post date:** [November 20, 2015, 11:15pm UTC](https://community.particle.io/t/wifi-localip-problem-solved/17659/1 "2015-11-20T23:15:15Z")

</div>

Hi,

I set photon to work on manual mode.

SYSTEM\_MODE(MANUAL);

The code below works fine. When I remove delay(1000) WiFi.localIP() returns 0.0.0.0

```
waitUntil(WiFi.ready);
delay(1000);
Serial.println(WiFi.localIP());

```

At least 1000 ms needed to see assigned IP. Is it expected behaviour?

---

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [November 21, 2015, 12:53pm UTC](https://community.particle.io/t/wifi-localip-problem-solved/17659/2 "2015-11-21T12:53:50Z")

</div>

Try swapping the delay line for `Particle.process();`

The reason for 1000ms delay working is, that delays \>= 1000ms implicitly call `Particle.process()` to keep the cloud connection alive (even in MANUAL).

---

<div class="post-metadata">

**Author:** ![mete](https://avatars.discourse-cdn.com/v4/letter/m/c0e974/32.png) [@mete](https://community.particle.io/u/mete)\
**Post date:** [November 21, 2015, 1:54pm UTC](https://community.particle.io/t/wifi-localip-problem-solved/17659/3 "2015-11-21T13:54:00Z")

</div>

@ScruffR what if I dont want any cloud connection?

---

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [November 21, 2015, 1:59pm UTC](https://community.particle.io/t/wifi-localip-problem-solved/17659/4 "2015-11-21T13:59:34Z")

</div>

`Particle.process()` does **_not only_** do cloud stuff but also WiFi stuff that will be necessary even without cloud connection.

But the reason why `delay()` needs to call it every second is due to cloud requirements.

---

<div class="post-metadata">

**Author:** ![mete](https://avatars.discourse-cdn.com/v4/letter/m/c0e974/32.png) [@mete](https://community.particle.io/u/mete)\
**Post date:** [November 21, 2015, 3:57pm UTC](https://community.particle.io/t/wifi-localip-problem-solved/17659/5 "2015-11-21T15:57:14Z")

</div>

Maybe this info (and other things, if any) needs to be added to [https://docs.particle.io/reference/firmware/photon/#particle-process-](https://docs.particle.io/reference/firmware/photon/#particle-process-)

When I read that part it seems that it is related with just cloud operations.

---

<div class="post-metadata">

**Author:** ![ScruffR](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/scruffr/32/6952_2.png) [@ScruffR](https://community.particle.io/u/ScruffR)\
**Post date:** [November 21, 2015, 4:25pm UTC](https://community.particle.io/t/wifi-localip-problem-solved/17659/6 "2015-11-21T16:25:18Z")

</div>

Done!

* * *

Is it OK to mark this [SOLVED] for you?
