Cannot connect to HA after setting fixed IP address (2024)

I have changed a new Raspberry Pi5-based HA to a fixed IP address, and now cannot access it.

When I type Banner in the Command Line Interface, it shows it correctly at the fixed IP address I requested.

My router shows it connected at the correct IP address.

I have a program that runs in my PC called “Who’s on my Wifi” - and it also shows the Pi at the correct address.

I believe HA is actually running on the Pi5 because I’m getting emails from it.

However - I cannot ping it at that IP address, nor connect to HA from a web browser at that address, nor at homeassistant.local:8123.

I have a very simple network - no VLANs etc.
I have power-cycled the router and the PI several times.

I know people have other opinions about fixing the IP address, but this is what I do on my network - and my old Pi4B HA is running successfully at a (different) fixed IP address.

Are you using http or https?

Are you specifying the correct port (8123)?

http://10.1.1.20:8123/ or http://homeassistant.local:8123 (same as works with my existing Pi4B-based HA)

Is your network mask correct? (i.e. 255.255.255.0)

I’ve done this mistake.

Good question - it will be whatever the default is (all I fiddled with was the IP address field). Of course, I can’t check that now since I can’t access the system.

Maybe I’ll reload HA from a backup (for the 3rd time) and start again and check that.

I started from scratch and installed a new HA and restored from a backup (yet again) and tried to change to a fixed IP address again.

This time I paid attention to the network mask - and yep, all good (screenshot from just before I clicked on Save.

After I clicked on save, there was an error message along the lines of “failed to change IP configuration - see logs” - but of course I can’t see the logs because I have lost contact with HA again.

Same situation:

  • banner at Command Line Interface says IP address has been changed to 10.1.1.21
  • I can ping 10.1.1.21
  • but entering http://10.1.1.21:8123/, or http://10.1.1.21:4357/ into a browser results in “site can’t be reached error messages”

HANG ABOUT!! - the network mask is not correct - it says 255.255.255.255 !!

Damn - will have to start again

Yeah there’s a WTH post open for that. The default is bad.

yep, that fixed the problem.

A trap for the unwary - as soon as you type in a new IP address, the network mask changes on you !

You can vote here to get this fixed: WTH is the default netmask 255.255.255.255?

1 Like

done (the HOURS I have wasted because of that!)