Can’t connect to homeassistant

I no longer can access s homeassistans thru the iOS app or thru the Ip address. I have connected the raspberry pi to a screen and can se that homeassistant runs as it should. In my router I can see the raspberry pi and its ip address. A couple of days ago it al worked fine to access thru the app and the ip address.

In the iOS app I get this message: NSURLErrorDomain -1004 and in the settings it says WebSocket not connected.

Does someone know how to handle this problem?

I got this same error also yesterday, have no idea how to fix it. Have you got it working?

I solved the access from the app just now. I restarted my raspberry pi and in the settings for the app in my phone i went to my server and then the internal url. Under SSID I removed my SSID and now it works. I don’t know why but it works.