# How to set the hostname in discourse running native

**URL:** https://meta.discourse.org/t/how-to-set-the-hostname-in-discourse-running-native/122196
**Category:** Support
**Created:** [July 5, 2019, 5:52pm UTC](https://meta.discourse.org/t/how-to-set-the-hostname-in-discourse-running-native/122196 "2019-07-05T17:52:13Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Nikki\_Locke](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nikki_locke/32/146184_2.png) [@Nikki\_Locke](https://meta.discourse.org/u/Nikki_Locke)
#### Post date: [July 5, 2019, 5:52pm UTC](https://meta.discourse.org/t/how-to-set-the-hostname-in-discourse-running-native/122196/1 "2019-07-05T17:52:13Z")

</div>

I am running a dev version of discourse on Ubuntu. This is **not** in a docker, it’s running native on the machine. But all emails containing with urls to connect to my discourse have “localhost” as the hostname. I want to connect to it from another machine, so I would like to use the proper hostname.

I did see instructions on editing `app.yml` or `app.yaml`, but I think they only apply to docker containers - I certainly haven’t got a file with either of those names.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [December 26, 2022, 4:05pm UTC](https://meta.discourse.org/t/how-to-set-the-hostname-in-discourse-running-native/122196/2 "2022-12-26T16:05:28Z")

</div>



---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [December 26, 2022, 4:35pm UTC](https://meta.discourse.org/t/how-to-set-the-hostname-in-discourse-running-native/122196/3 "2022-12-26T16:35:59Z")

</div>


