I am trying to use a Python virtual environment to host HA on a mac, but running into an issue when using port 8123. When launching the ./hass in the environment I get this error: Failed to create HTTP server at port 8123: [Errno 48] error while attempting to bind on address (‘0.0.0.0’, 8123): address already in use. I figured it was my firewall on my mac; however, that is not blocking anything. I used the command lsof -i :8123 which resulted in Python … user 15u IPv4 … 0t0 TCP *:8123 (LISTEN), so I know that it is open and listening but seems to be not for HA. Is there a way to change this?
go into your configuration.yaml and enter:
http:
server_port: <port_you_want>
be aware that only one "http: section can be used so if it exists just add the “server_port:” line under it as shown.
restart HA.
I changed that in the configuration.yaml file but I am still running into the same issue unfortunately
you changed the port there and it is still looking for HA at port 8123?
Yes correct. it is still saying that the port is in use even with it now in the configuration.yaml file
Use port other than 8123…like 8129
Try to connect to HA there
Something else may be using 8123 and blocking HA
Hi! I also tried that as well and get the same error as well. It just changes the port to what I change in the configuration.yaml file and says that it is already in use
Forgot to give an update but this issue has been resolved. Troubleshooting steps are just to reinstall HA entirely again and that seems to fix it
How is this accepted as a fix?! jesus