I change the port of Home Assistant

My goal

To avoid using a ‘standard’ port, so for security reasons, I would like to change the port of Home Assistant.

By default, port 8123 is used. For this RetEx, I will choose 8888 as an example but I obviously used another one at home.

I modify the configuration.yaml file

In a very classic way, I will modify the configuration.yaml file, I will add these two lines:

http: server_port: 8888

 

I relaunch Home Assistant

I log in with the new address

To log in to Home Assistant, I no longer use http://homeassistant.local:8321 but:

  • http://homeassistant.local:8888

I test external access with Nabu Casa

No worries, Nabu Casa works perfectly, the external link to my Ha is ok 

Bibliography