# How do you call http\_request on localhost?

**URL:** <https://forum.dfinity.org/t/how-do-you-call-http-request-on-localhost/5184>\
**Category:** Developers\
**Tags:** Functional-Programming\
**Created:** [June 14, 2021, 7:19pm UTC](https://forum.dfinity.org/t/how-do-you-call-http-request-on-localhost/5184 "2021-06-14T19:19:06Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![paulyoung](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/paulyoung/32/5251_2.png) [@paulyoung](https://forum.dfinity.org/u/paulyoung)\
**Post date:** [August 28, 2021, 6:35am UTC](https://forum.dfinity.org/t/how-do-you-call-http-request-on-localhost/5184/4 "2021-08-28T06:35:23Z")

</div>

The way I did it for now was to edit `/etc/hosts` to add an entry like:

```auto
127.0.0.1 myproject.localhost

```

Then start `icx-proxy` like this:

```auto
icx-proxy --fetch-root-key --address 127.0.0.1:8453 --dns-alias myproject.localhost:rrkah-fqaaa-aaaaa-aaaaq-cai -v -v

```

That way I can make HTTP requests to `http://myproject.localhost:8453`. You can pick a different host name and port.

---

_[View the full topic](https://forum.dfinity.org/t/how-do-you-call-http-request-on-localhost/5184)._
