# Can't add a host

**URL:** <https://forums.suse.com/t/cant-add-a-host/5738>\
**Category:** General\
**Created:** [March 3, 2017, 4:16pm UTC](https://forums.suse.com/t/cant-add-a-host/5738 "2017-03-03T16:16:45Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bugs78](https://avatars.discourse-cdn.com/v4/letter/b/f475e1/32.png) [@Bugs78](https://forums.suse.com/u/Bugs78)\
**Post date:** [March 3, 2017, 4:16pm UTC](https://forums.suse.com/t/cant-add-a-host/5738/1 "2017-03-03T16:16:45Z")

</div>

Hiya all,

I`m new to Rancher so pardon the probably silly questions.

I have been looking at using the Rancher OS to play with containers as my the company I work for will be using Rancher as a container solution.

I have deployed a Rancher OS and I have configured it to listen on port 8080 as per the guide below.

[https://docs.rancher.com/rancher/v1.1/en/quick-start-guide/](https://docs.rancher.com/rancher/v1.1/en/quick-start-guide/)

this guides you through running the host and server on the same machine, when I come to add the host, I have tried both my public IP and my Private IP but the host never appears. On the command line when I run the generated it pulls from the rancher/agent successfully but the host never appears.

I have tried re-installing several times using different OS’s

can anyone please advise as to what happening here?

Thanks

---

<div class="post-metadata">

**Author:** ![cjellick](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/cjellick/32/2876_2.png) [@cjellick](https://forums.suse.com/u/cjellick)\
**Post date:** [March 3, 2017, 4:30pm UTC](https://forums.suse.com/t/cant-add-a-host/5738/2 "2017-03-03T16:30:09Z")

</div>

What’s in the logs from the agent container?

---

<div class="post-metadata">

**Author:** ![Bugs78](https://avatars.discourse-cdn.com/v4/letter/b/f475e1/32.png) [@Bugs78](https://forums.suse.com/u/Bugs78)\
**Post date:** [March 3, 2017, 4:40pm UTC](https://forums.suse.com/t/cant-add-a-host/5738/3 "2017-03-03T16:40:15Z")

</div>

How would I access those logs?

---

<div class="post-metadata">

**Author:** ![chulkilee](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/chulkilee/32/2235_2.png) [@chulkilee](https://forums.suse.com/u/chulkilee)\
**Post date:** [March 8, 2017, 10:23pm UTC](https://forums.suse.com/t/cant-add-a-host/5738/4 "2017-03-08T22:23:10Z")

</div>

I had to specify reachable ip address (private or public), not using `localhost`. Probably because agent running in docker may not access to itself?

---

<div class="post-metadata">

**Author:** ![vincent](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/vincent/32/7156_2.png) [@vincent](https://forums.suse.com/u/vincent)\
**Post date:** [March 9, 2017, 3:29am UTC](https://forums.suse.com/t/cant-add-a-host/5738/5 "2017-03-09T03:29:18Z")

</div>

Yes, `localhost` is always the container you’re currently in so it’s trying to reach the server as if it were inside the agent container, where it clearly isn’t.
