# Static IP affects BasicUI

**URL:** <https://community.openhab.org/t/static-ip-affects-basicui/33151>\
**Category:** Beginners\
**Tags:** openhab2, basicui, beginners\
**Created:** [August 11, 2017, 2:00pm UTC](https://community.openhab.org/t/static-ip-affects-basicui/33151 "2017-08-11T14:00:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Living\_Lab](https://community.openhab.org/letter_avatar_proxy/v4/letter/l/7feea3/32.png) [@Living\_Lab](https://community.openhab.org/u/Living_Lab)\
**Post date:** [August 11, 2017, 2:00pm UTC](https://community.openhab.org/t/static-ip-affects-basicui/33151/1 "2017-08-11T14:00:36Z")

</div>

Hello,

I’ve got an odd one here. I’ve got OpenHAB on a Raspberry PI 3 and the IP for it kept changing due to multiple devices being used on the same network. I changed the dynamic IP into a Static IP using the instructions found here:

> [@Static IP OpenHABian RPi3](https://community.openhab.org/t/static-ip-openhabian-rpi3/27742):
>
> Due to several bindings and systems being dependent by the IP-address of my OpenHABian system, I would like to make the IP static. I looked in my router settings to let the DHCP server give the same IP to the MAC address of the RPi but unfortunately the router is from my local provider and they do not let me change anything from the DHCP server. I have to go for the other option then and give the RPi a static IP. However when I look in the ‘interfaces’ file in /etc/network it states the followin…

Once that was done, I had an error that kept showing up whenever I tried to get into the BasicUI, exactly like here:

> [@Basic UI disapears after reboot](https://community.openhab.org/t/basic-ui-disapears-after-reboot/21921):
>
> Hey, almost everytime I reboot my raspberry or restart the service of openhab 2, the basic UI disapears and I get an HTTP Error 404. To fix it I have to go to PaperUI and reinsall the Basic UI. Is there a solution for this?

But I’ve got nothing active in the addons.cfg. All I’ve got is #ui= .  
I’ve changed it back to a dynamic IP address and the BasicUI is working again but for my project, we need it to be a Static IP.  
Is there any way that this issue could be solved?  
Thanks in advance.

---

<div class="post-metadata">

**Author:** ![Travalon](https://community.openhab.org/letter_avatar_proxy/v4/letter/t/f19dbf/32.png) [@Travalon](https://community.openhab.org/u/Travalon)\
**Post date:** [August 11, 2017, 6:43pm UTC](https://community.openhab.org/t/static-ip-affects-basicui/33151/2 "2017-08-11T18:43:11Z")

</div>

Hi, are you allowed to do address reservations in your router? That’s how I’m set up.

---

<div class="post-metadata">

**Author:** ![Mherwege](https://community.openhab.org/user_avatar/community.openhab.org/mherwege/32/19924_2.png) [@Mherwege](https://community.openhab.org/u/Mherwege)\
**Post date:** [August 11, 2017, 7:31pm UTC](https://community.openhab.org/t/static-ip-affects-basicui/33151/3 "2017-08-11T19:31:28Z")

</div>

Not sure what the cause of your issue is, but I do have openHABian on an RPi3 with a static IP, and I don’t have an issue with BasicUI. What browser are you using? Can you try cleaning your browser cache?

---

<div class="post-metadata">

**Author:** ![rlkoshak](https://community.openhab.org/user_avatar/community.openhab.org/rlkoshak/32/75251_2.png) [@rlkoshak](https://community.openhab.org/u/rlkoshak)\
**Post date:** [August 12, 2017, 1:31pm UTC](https://community.openhab.org/t/static-ip-affects-basicui/33151/4 "2017-08-12T13:31:47Z")

</div>

Just to be sure, everything in addons.cfg needs to be commented out, not just the UIs line. If you have any line in this file it will uninstall everything from the categories that are commented out.

---

<div class="post-metadata">

**Author:** ![Living\_Lab](https://community.openhab.org/letter_avatar_proxy/v4/letter/l/7feea3/32.png) [@Living\_Lab](https://community.openhab.org/u/Living_Lab)\
**Post date:** [August 14, 2017, 10:46am UTC](https://community.openhab.org/t/static-ip-affects-basicui/33151/5 "2017-08-14T10:46:07Z")

</div>

Hi,

Thank you for the replies. I think I may have fixed the issue. So when I came in this morning the BasicUI wasn’t working even though I commented the lines in the dhcpcd.conf:

interface eth0  
static ip\_address=192.168.1.4  
static routers=192.168.1.1  
static domain\_name\_servers=8.8.8.8 192.168.1.1

So I checked the addons.cfg file to see if there were any lines uncommented. There weren’t any, so I rebooted it using sudo reboot. The BasicUI started working but couldn’t find the sitemap. So I uninstalled the BasicUI from the PaperUI and re-installed it. It started working again. I then uncommented the lines from above in dhcpcd.conf file and tried the BasicUI. It was still working, so I then switched the Raspberry PI off and waited half an hour before switching it on again to see if the error showed up again. It is working fine.  
So I guess the sudo reboot may have solved the issue. I got quite confused with this issue as I already used OpenHAB on Firefox multiple times without any issues. I already had a Loxone Miniserver connected to the router using a static IP and the addons.cfg file had all of its lines commented.  
Hopefully this issue won’t come up again.  
Thank you again for your help.

---

<div class="post-metadata">

**Author:** ![rlkoshak](https://community.openhab.org/user_avatar/community.openhab.org/rlkoshak/32/75251_2.png) [@rlkoshak](https://community.openhab.org/u/rlkoshak)\
**Post date:** [August 14, 2017, 7:10pm UTC](https://community.openhab.org/t/static-ip-affects-basicui/33151/6 "2017-08-14T19:10:07Z")

</div>

> [@Living\_Lab](#):
>
> So I guess the sudo reboot may have solved the issue.

Or the reinstall of BasicUI…
