# Localhost Service

**URL:** <https://discuss.konghq.com/t/localhost-service/3225>\
**Category:** Questions\
**Created:** [April 8, 2019, 4:59pm UTC](https://discuss.konghq.com/t/localhost-service/3225 "2019-04-08T16:59:17Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Goncalo\_Banha](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/goncalo_banha/32/877_2.png) [@Goncalo\_Banha](https://discuss.konghq.com/u/Goncalo_Banha)\
**Post date:** [April 8, 2019, 4:59pm UTC](https://discuss.konghq.com/t/localhost-service/3225/1 "2019-04-08T16:59:17Z")

</div>

Hey!

I have kong running on a docker container.  
The API I want to connect to is running on host ([https://localhost:44305/](https://localhost:44305/)).

What should I put as host? Also, which port ?

Thank you

---

<div class="post-metadata">

**Author:** ![onematchfox](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.konghq.com/onematchfox/32/801_2.png) [@onematchfox](https://discuss.konghq.com/u/onematchfox)\
**Post date:** [April 8, 2019, 7:21pm UTC](https://discuss.konghq.com/t/localhost-service/3225/2 "2019-04-08T19:21:30Z")

</div>

> [@Goncalo\_Banha](#):
>
> What should I put as host? Also, which port ?

I think the answer to your question lies within docker networking and your dev machine setup rather than Kong itself. So you may find help faster using google foo than chatting to the Kong community. Depending on your setup [this](https://stackoverflow.com/questions/50278632/what-does-localhost-means-inside-a-docker-container) or [this](https://stackoverflow.com/questions/24319662/from-inside-of-a-docker-container-how-do-i-connect-to-the-localhost-of-the-mach) may be of assistance to you.
