# ホスト名としてIPアドレスを使用しているのに、アイコンのアドレスがlocalhostになるのはなぜですか

**URL:** <https://meta.discourse.org/t/why-the-icon-address-is-localhost-when-i-use-an-ip-as-hostname/184828>\
**Category:** Product Support\
**Created:** [2021 年 3 月 30 日午前 7:31 UTC](https://meta.discourse.org/t/why-the-icon-address-is-localhost-when-i-use-an-ip-as-hostname/184828 "2021-03-30T07:31:13Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![shantaram](https://avatars.discourse-cdn.com/v4/letter/s/bcef8e/32.png) [@shantaram](https://meta.discourse.org/u/shantaram)\
**Post date:** [2021 年 3 月 30 日午前 7:31 UTC](https://meta.discourse.org/t/why-the-icon-address-is-localhost-when-i-use-an-ip-as-hostname/184828/1 "2021-03-30T07:31:13Z")

</div>

Discourse の開発バージョンを CentOS 7.7 にインストールしました（手順は「beginners-guide-to-install-discourse-for-development-using-docker/102009」に従いました）。  
セットアップの手順は以下の通りです：

1. discourse.git からソースを取得
2. config/discourse\_default.conf 内のメール送信者設定を変更
3. ./d/boot-env --init
4. ./d/unicorn

ホスト名は IP アドレス（例：10.201.0.115）に設定しています。  
10.201.0.115:9292 で Discourse にアクセスできますが、すべての画像が表示されません。

Failed to load resource: net::ERR\_CONNECTION\_REFUSED from [http://localhost:9292/images/discourse-logo-sketch.png](http://localhost:9292/images/discourse-logo-sketch.png)  
ただし、[http://10.201.0.115:9292/images/discourse-logo-sketch.png](http://10.201.0.115:9292/images/discourse-logo-sketch.png) を直接使用すれば PNG は取得できます。

また、返信アイコンも取得できません。  
原因は、URL が localhost ではなく IP アドレス（10.201.0.115）である必要があることだと理解しています。

IP 関連で何を設定すればよいでしょうか？

ご支援いただける方、ありがとうございます。

---

_[View the full topic](https://meta.discourse.org/t/why-the-icon-address-is-localhost-when-i-use-an-ip-as-hostname/184828)._
