Hi,
Iâve just registered to the Community and am a newbie.
Are you literally entering âhttp://192.168.1.*â as when I enter it as that, I too get Server not found.
I think you need to replace that asterix with the actual fourth segment of the IP address of your server.
http://192.168.1.* where * has been 3, 6, 7 , currently 8 works fine. I use nmap to discover the IP and take it from there.
It is http://openhabianpi:8080 that is supposed to be the alternative hostname served by openhabian has never worked. It would mean I could setup a browser permanently at that address rather than having to look for the IP every time.
Hostname is done through your DHCP. Your openhabian pi will request the DHCP for a lease on that hostname. DHCP grants that request and reserves the hostname to that IP address based on MAC address. Is your DHCP working correctly? 99% of home users have the DHCP on the router itself. On your router, can you check if you can manually set a DHCP static route? For example, reserve MAC address of your pi to the hostname openhabianpi and point it to IP 1.2.3.4.
The Router was the one out of the cereal packet with iiNet. Huawei, I must confess I dont see any obvious options for setting up static IPs and assigning them to my http://openhabianpi:8080 host.
My most devastating superpower is my lack of talent.
I was awesome at instructing Karate because I understood why not everyone was a ânaturalâ ⌠since I was hopeless.
Hi, I had the same problem and I found that a service called avahi-deamon could help.
But first check if your hostname really is openhabianpi by executing the command âhostnameâ on the command line. This should return the hostname. You can also try to access your openHAB via: Http://openhabianpi.local:8080
Are you accessing it from a Mac or Windows computer?
Then you can try installing avahi:
sudo apt install avahi-daemon
then reboot and it is doing itâs job.
I assume this will always assign the IP 192.168.1.8 to that MAC address - i.e. it will be a âstatic addressâ. I have a notion it was already doing that since I found that MAC address in the list on the modem.
I will mark the question as solved because the static IP - MAC configuration on the router should mean no guess work using ssh or http. avahi is a whole level up and the ability to resolve the openhabpi.local hostname is not critical.
Reading and searching on this topic for another case learnt me that if you donât have a DNS service in your local network you need to use .local. If you donât add the .local your machine will send a request to your internet DNS. Adding .local will send out a multicast message telling the machine on the internal network with the hostname specified to respond. For a Mac this is preinstalled as a service called Bonjour, on Linux avahi is one solution and for a windows machine there is a windows version of Bonjour available from Apple.