# Connect to home assistant web service

**URL:** <https://forum.remote.it/t/connect-to-home-assistant-web-service/1062>\
**Category:** Applications\
**Created:** [April 18, 2024, 6:29pm UTC](https://forum.remote.it/t/connect-to-home-assistant-web-service/1062 "2024-04-18T18:29:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![automatix](https://avatars.discourse-cdn.com/v4/letter/a/f08c70/32.png) [@automatix](https://forum.remote.it/u/automatix)\
**Post date:** [April 18, 2024, 6:29pm UTC](https://forum.remote.it/t/connect-to-home-assistant-web-service/1062/1 "2024-04-18T18:29:17Z")

</div>

I can successfully log into the home assistant ssh service using remote.it, however when I try accessing the web service at [http://localhost:8123](http://localhost:8123) I get an http 400: bad request error.

I have home assistant hosted on a linux system and I can access an apache server at [http://localhost](http://localhost) just fine.

---

<div class="post-metadata">

**Author:** ![automatix](https://avatars.discourse-cdn.com/v4/letter/a/f08c70/32.png) [@automatix](https://forum.remote.it/u/automatix)\
**Post date:** [April 18, 2024, 6:46pm UTC](https://forum.remote.it/t/connect-to-home-assistant-web-service/1062/2 "2024-04-18T18:46:21Z")

</div>

Figured out the problem. Had to enable reverse proxies in the Home Assistant http server by using the trusted\_proxies: 127.0.0.1 option in the HA configuration.yaml.

---

<div class="post-metadata">

**Author:** ![mycal](https://avatars.discourse-cdn.com/v4/letter/m/ebca7d/32.png) [@mycal](https://forum.remote.it/u/mycal)\
**Post date:** [April 18, 2024, 8:31pm UTC](https://forum.remote.it/t/connect-to-home-assistant-web-service/1062/3 "2024-04-18T20:31:10Z")

</div>

Thanks for the update on this, for everyone else, in your `configuration.yaml` file, edit the `http` setting like so:

```auto
http:
  # You must set the trusted proxy IP address so that Home Assistant will properly accept connections
  # Set this to your Remoteit Jumpbox IP, or localhost if if remote.it is running on the same machine as home assistant.
  trusted_proxies: 127.0.0.1

```

---

<div class="post-metadata">

**Author:** ![automatix](https://avatars.discourse-cdn.com/v4/letter/a/f08c70/32.png) [@automatix](https://forum.remote.it/u/automatix)\
**Post date:** [April 20, 2024, 12:37am UTC](https://forum.remote.it/t/connect-to-home-assistant-web-service/1062/4 "2024-04-20T00:37:19Z")

</div>

The source I found also recommended use of the use\_x\_forwarded\_for option which I put in my configuration.yaml file. It works fine with that option:

```auto
http:
  use_x_forwarded_for: true
  trusted_proxies:
    - 127.0.0.1

```
