# The "event-state" node loses the token if iHost is rebooted

**URL:** https://forum.ewelink.cc/t/the-event-state-node-loses-the-token-if-ihost-is-rebooted/16472
**Category:** eWeLink CUBE
**Tags:** advanced-plan
**Created:** [April 13, 2023, 9:17am UTC](https://forum.ewelink.cc/t/the-event-state-node-loses-the-token-if-ihost-is-rebooted/16472 "2023-04-13T09:17:53Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![edmasec](https://avatars.discourse-cdn.com/v4/letter/e/3ab097/32.png) [@edmasec](https://forum.ewelink.cc/u/edmasec)
#### Post date: [April 13, 2023, 9:17am UTC](https://forum.ewelink.cc/t/the-event-state-node-loses-the-token-if-ihost-is-rebooted/16472/1 "2023-04-13T09:17:53Z")

</div>

An error occurs at the “event-state” node in Node Red (ewelink cube)

-I use the “control-device” and “event-state” nodes  
-I get the token from iHost  
-Everything works correctly (on/off with “control-device” and receiving data from iHost with “event-state”)

-If I stop/start iHost (reboot), the “event-state” node no longer works (I no longer receive data from iHost)  
-The “control-device” node still works correctly.

I think that the “event-state” node loses the token if iHost is rebooted

---

<div class="post-metadata">

### Author: ![Teki](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/teki/32/1161_2.png) [@Teki](https://forum.ewelink.cc/u/Teki)
#### Post date: [April 13, 2023, 9:25am UTC](https://forum.ewelink.cc/t/the-event-state-node-loses-the-token-if-ihost-is-rebooted/16472/2 "2023-04-13T09:25:04Z")

</div>

the node keep the ip, when your ihost reboot, its IP may change, try to set static IP for your iHost

---

<div class="post-metadata">

### Author: ![edmasec](https://avatars.discourse-cdn.com/v4/letter/e/3ab097/32.png) [@edmasec](https://forum.ewelink.cc/u/edmasec)
#### Post date: [April 13, 2023, 9:28am UTC](https://forum.ewelink.cc/t/the-event-state-node-loses-the-token-if-ihost-is-rebooted/16472/3 "2023-04-13T09:28:28Z")

</div>

iHost has static ip

the “control-device” node works correctly with the same token

---

<div class="post-metadata">

### Author: ![Teki](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/teki/32/1161_2.png) [@Teki](https://forum.ewelink.cc/u/Teki)
#### Post date: [April 13, 2023, 10:16am UTC](https://forum.ewelink.cc/t/the-event-state-node-loses-the-token-if-ihost-is-rebooted/16472/4 "2023-04-13T10:16:37Z")

</div>

We’ll look into this issue

---

<div class="post-metadata">

### Author: ![elcarmen.castellon](https://avatars.discourse-cdn.com/v4/letter/e/c89c15/32.png) [@elcarmen.castellon](https://forum.ewelink.cc/u/elcarmen.castellon)
#### Post date: [April 13, 2023, 10:53am UTC](https://forum.ewelink.cc/t/the-event-state-node-loses-the-token-if-ihost-is-rebooted/16472/5 "2023-04-13T10:53:01Z")

</div>

how do you put a static ip in ihost?  
I can’t find this option

---

<div class="post-metadata">

### Author: ![edmasec](https://avatars.discourse-cdn.com/v4/letter/e/3ab097/32.png) [@edmasec](https://forum.ewelink.cc/u/edmasec)
#### Post date: [April 13, 2023, 11:04am UTC](https://forum.ewelink.cc/t/the-event-state-node-loses-the-token-if-ihost-is-rebooted/16472/6 "2023-04-13T11:04:49Z")

</div>

I assigned the ip address in the router using the mac address

---

<div class="post-metadata">

### Author: ![quimmulla](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/quimmulla/32/1696_2.png) [@quimmulla](https://forum.ewelink.cc/u/quimmulla)
#### Post date: [April 13, 2023, 1:41pm UTC](https://forum.ewelink.cc/t/the-event-state-node-loses-the-token-if-ihost-is-rebooted/16472/7 "2023-04-13T13:41:36Z")

</div>

Thank you. solved.

---

<div class="post-metadata">

### Author: ![Teki](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.ewelink.cc/teki/32/1161_2.png) [@Teki](https://forum.ewelink.cc/u/Teki)
#### Post date: [April 14, 2023, 2:46am UTC](https://forum.ewelink.cc/t/the-event-state-node-loses-the-token-if-ihost-is-rebooted/16472/10 "2023-04-14T02:46:26Z")

</div>

you need to do this on your router’s management page, try to google ‘your router model number + static ip’ for instruction.
