Raspberry PI 4 unable to connect to HA :'(

Hello! Im very green to this so I’m very thankful for any and all help.
I have a feeling its my SD card (123G) but wanted to see if anybody had other ideas.
Running: RP 4
Installation: SD card
Connection: so ethernet wasn’t working so I followed a guide to connect to wifi on boot so I do have an ipv4 address for wlan0 and ends in /22
I am able to ping the device successfully as well as HA
Problem: when I try any of the addresses to connect, I get that it refused to connect, and I was sure to disable automatic redirect to https

Im at a loss here!

Hi, is this a new installation?

Is that correct /22 or should it be .22?
If /22 is that the correct subnet you are using?
Make sure you got the right IP address from your system first.
What is the reason for Ethernet not working?
Have you tried to connect to http://homeassistant.local:8123 ?

Hi Nick!

Yes this is a new installation
so the IP is xxx.xxx.x.xx/22
Im able to see it in my router settings connected as homeassistant and see the IP there as well as the CLI on the pi
Im not sure why it wasn’t working on the ethernet I connected it and it was not assigning it any IP
Yes :frowning: it gives me the refuse to connect error on edge and chrome

This is a private/local, LAN IP address and only because you use a /22 subnet, fewer people are using it since mostly they use a /24 subnet, but still nobody is able to access your devices by using that IP address!

Make sure you don’t use httpS://…
If you connect a display to your RPi you get to see what is going and whether that IP address is the right one to use.

the IP is 192.168.4.102/22 is there a way to change it to /24? would that maybe solve the issue?

Yup I have it on my monitor and that’s the IP it displays as and it matches the one in my router settings as well. Still able to ping it too

Thank you so much for the replies!

Are you 100% sure that your network is configured with a /22 subnet?!

You cannot just change the subnet of the RPi without changing that of your local network: all your devices have to be in the same subnet.
If every host on your network is in /22 I would advice you not to change that right now.

So if you ping the address (from another device on your network) that is displayed on the monitor that is connected to your RPi, you get a positive reply?

Just checked my desktop and its for a /22 when I looked using ipconfig

Yup if I ping the address from my desktop I get:

Ping statistics for 192.168.4.102:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 8ms, Maximum = 145ms, Average = 42ms

The display on your RPi does not show any errors, displays the IP address and ends - I believe - with a ha> prompt, something along the lines of this:

I don’t know what the impact is of not using Ethernet but Wi-Fi.
Using Wi-Fi for a system like HA is not recommended, so I would try to solve that.

You could try another browser with:
http://192.168.4.102:8123
or
http://homassistant.local:8123

Yup looks like that! No errors when i try anything

Yeah those addresses lead me to the refused to connect error its strange
observer url is fine to connect to not sure if that would mean anything

Did you use this guide to install: Raspberry Pi - Home Assistant

Yup! I did all that and it looks like it installed right? If I can connect to the internet and get the CLI up with an IP address

Nick! Thank you for your responses its very kind of you to take the time!
I managed to get it to work by swapping out for a new SD card!