Changed the hostname of the pi, can't reach the GUI

Hi.

Testing out Openhab.
Installed the Openhab by following: http://www.makeuseof.com/tag/getting-started-openhab-home-automation-raspberry-pi/

Worked fine until i changed the hostname of my PI by following this guide:
http://www.raspians.com/Knowledgebase/how-to-change-hostname-on-raspberrypi/

any quick fix to get my GUI back?

If not, will help changing the hostname before following the installation guide?

Thanks.

  • bjoern.
1 Like

The things that come to mind immediately are to 1) check the hosts file and make sure the new hostname has an IP assigned it, and 2) reboot. There are some things that are tied to the hostname in the network stack. You can find them and update them, but if your hostname is set up right with the hosts file as well, a reboot might be the thing. In the case you already have tried rebooting, still double check the hosts file. There isn’t much more to a hostname change as long as your pi has not been altered much.

Any updates regarding a solution, i have the same problem, rebooting hasn’t resolved it

restarting openhab resolved it

sudo systemctl stop openhab2.service
sudo systemctl start openhab2.service