{"id":6913,"date":"2024-04-25T10:57:25","date_gmt":"2024-04-25T08:57:25","guid":{"rendered":"https:\/\/www.sigalou-domotique.fr\/?p=6913"},"modified":"2026-01-02T16:56:12","modified_gmt":"2026-01-02T14:56:12","slug":"je-change-le-port-de-home-assistant","status":"publish","type":"post","link":"https:\/\/www.sigalou-domotique.fr\/en\/je-change-le-port-de-home-assistant","title":{"rendered":"I change the port of Home Assistant"},"content":{"rendered":"<h2>My goal<\/h2>\r\n<p>To avoid using a \u2018standard\u2019 port, so for security reasons, I would like to change the port of Home Assistant.<\/p>\r\n<p>By default, port 8123 is used. For this RetEx, I will choose 8888 as an example but I obviously used another one at home.<\/p>\r\n<p><!--more--><\/p>\r\n<h2>I modify the configuration.yaml file<\/h2>\r\n<p>In a very classic way, I will modify the configuration.yaml file, I will add these two lines:<\/p>\r\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"yaml\">http: server_port: 8888<\/pre>\r\n<p>\u00a0<\/p>\r\n<p><a href=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/04\/port8888.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6914\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/04\/port8888.png\" alt=\"\" width=\"501\" height=\"133\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/04\/port8888.png 501w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/04\/port8888-300x80.png 300w\" sizes=\"auto, (max-width: 501px) 100vw, 501px\" \/><\/a><\/p>\r\n<h2>I relaunch Home Assistant<\/h2>\r\n<p><a href=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/04\/port8888-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6917\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/04\/port8888-1.png\" alt=\"\" width=\"755\" height=\"476\" srcset=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/04\/port8888-1.png 755w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/04\/port8888-1-600x378.png 600w, https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/04\/port8888-1-300x189.png 300w\" sizes=\"auto, (max-width: 755px) 100vw, 755px\" \/><\/a><\/p>\r\n<h2>I log in with the new address<\/h2>\r\n<p>To log in to Home Assistant, I no longer use http:\/\/homeassistant.local:8321 but:<\/p>\r\n<ul>\r\n<li>http:\/\/homeassistant.local:8888<\/li>\r\n<\/ul>\r\n<h2>I test external access with Nabu Casa<\/h2>\r\n<p><a href=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/04\/logo-text.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-6920\" src=\"https:\/\/www.sigalou-domotique.fr\/wp-content\/uploads\/2024\/04\/logo-text.png\" alt=\"\" width=\"253\" height=\"214\" \/><\/a><\/p>\r\n<p>No worries, Nabu Casa works perfectly, the external link to my Ha is ok\u00a0<\/p>\r\n<h2>Bibliography<\/h2>\r\n<ul>\r\n<li><a href=\"https:\/\/www.wundertech.net\/how-to-access-home-assistant-remotely\/\" target=\"_blank\" rel=\"noopener\">https:\/\/www.wundertech.net\/how-to-access-home-assistant-remotely\/<\/a><\/li>\r\n<li><a href=\"https:\/\/rapidlydigital.com\/change-default-port-number-in-home-assistant\/\" target=\"_blank\" rel=\"noopener\">https:\/\/rapidlydigital.com\/change-default-port-number-in-home-assistant\/<\/a><\/li>\r\n<\/ul>","protected":false},"excerpt":{"rendered":"<p>Mon objectif Pour \u00e9viter d&rsquo;utiliser un port \u00ab\u00a0standard\u00a0\u00bb, donc par s\u00e9curit\u00e9, je voudrais changer le port de Home Assistant. Par d\u00e9faut, c&rsquo;est le port 8123 qui est utilis\u00e9. Pour ce RetEx, je vais choisir 8888 comme exemple mais j&rsquo;ai \u00e9videmment utilis\u00e9 un autre chez moi.<\/p>","protected":false},"author":1,"featured_media":7040,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[70,14,53,166],"tags":[],"class_list":["post-6913","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cybersecurite","category-domotique","category-home-assistant","category-retex"],"acf":[],"_links":{"self":[{"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/posts\/6913","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/comments?post=6913"}],"version-history":[{"count":0,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/posts\/6913\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/media\/7040"}],"wp:attachment":[{"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/media?parent=6913"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/categories?post=6913"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.sigalou-domotique.fr\/en\/wp-json\/wp\/v2\/tags?post=6913"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}