# Connecting to host TCP/IP server from inside docker container

**URL:** <https://forum.inductiveautomation.com/t/connecting-to-host-tcp-ip-server-from-inside-docker-container/92942>\
**Category:** Ignition\
**Created:** [July 9, 2024, 7:32am UTC](https://forum.inductiveautomation.com/t/connecting-to-host-tcp-ip-server-from-inside-docker-container/92942 "2024-07-09T07:32:56Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![kcollins](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kcollins/32/19646_2.png) [@kcollins](https://forum.inductiveautomation.com/u/kcollins)\
**Post date:** [July 10, 2024, 2:49am UTC](https://forum.inductiveautomation.com/t/connecting-to-host-tcp-ip-server-from-inside-docker-container/92942/3 "2024-07-10T02:49:55Z")

</div>

Here are a couple useful references for you:

> [@Ignition Docker with sql database](https://forum.inductiveautomation.com/t/ignition-docker-with-sql-database/50571/7):
>
> I'll also augment that as of Docker Engine 20.10, you can also use host.docker.internal mapping on Linux (where it was previously only available on Docker Desktop). You do have to add an extra\_hosts mapping to your container definition though, such as: docker run ... --add-host "host.docker.internal:host-gateway" ... ... or in your Compose YAML: services: gateway: ... extra\_hosts: - "host.docker.internal:host-gateway" .... With this, the hostname host.docker.internal wil…

> **[Explore networking features on Docker Desktop](https://docs.docker.com/desktop/networking/#i-want-to-connect-from-a-container-to-a-service-on-the-host)**
>
> Understand how networking works on Docker Desktop and see the known limitations

---

_[View the full topic](https://forum.inductiveautomation.com/t/connecting-to-host-tcp-ip-server-from-inside-docker-container/92942)._
