# Not able to connect PLC with ignition on Docker

**URL:** <https://forum.inductiveautomation.com/t/not-able-to-connect-plc-with-ignition-on-docker/78352>\
**Category:** Ignition\
**Tags:** docker, ignition81\
**Created:** [August 24, 2023, 7:12pm UTC](https://forum.inductiveautomation.com/t/not-able-to-connect-plc-with-ignition-on-docker/78352 "2023-08-24T19:12:39Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Irfan\_Shaik](https://avatars.discourse-cdn.com/v4/letter/i/53a042/32.png) [@Irfan\_Shaik](https://forum.inductiveautomation.com/u/Irfan_Shaik)\
**Post date:** [August 24, 2023, 7:12pm UTC](https://forum.inductiveautomation.com/t/not-able-to-connect-plc-with-ignition-on-docker/78352/1 "2023-08-24T19:12:39Z")

</div>

I am able to connect to compactlogix PLC with ignition on windows machine . On the same network I am not able to connect to PLC with ignition on Docker .  
Technically I did the same configuration while setting up OPC Device connection. But communication fails.  
Is there any additional configuration on docker that I need to take care of? I am using Ignition 8.1.28

---

<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:** [August 25, 2023, 12:52pm UTC](https://forum.inductiveautomation.com/t/not-able-to-connect-plc-with-ignition-on-docker/78352/2 "2023-08-25T12:52:22Z")

</div>

Typical configurations will have your Docker containers be able to resolve and connect to the same networks that you can reach from your host. Are you using a VPN to connect to the PLC? What kinds of errors are you getting in your logs related to the device connection?

---

<div class="post-metadata">

**Author:** ![Irfan\_Shaik](https://avatars.discourse-cdn.com/v4/letter/i/53a042/32.png) [@Irfan\_Shaik](https://forum.inductiveautomation.com/u/Irfan_Shaik)\
**Post date:** [August 28, 2023, 6:38pm UTC](https://forum.inductiveautomation.com/t/not-able-to-connect-plc-with-ignition-on-docker/78352/3 "2023-08-28T18:38:57Z")

</div>

I am on same network as Docker machine is .I could go online with PLC from work machine which is also on same network.  
I tried mapping logic PLC port in the docker container .Please see the attached image. But it didn't make any change.

I have setup SQL and Ignition as two containers packaged together. Will this be an issue?

 ![image (1)](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/0/e01582f3e61bc9bcdbc6efd2c4dbc7c4531170b1.png)

On the VPN side all the machines are on VM and i access them all through VPN  
Below is the Trace log in GW for this PLC

 ![Capture_logix_connection](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/9/09ef02d9fd347337a11e88dd098c80a38136ddce.png)

---

<div class="post-metadata">

**Author:** ![kyler.kamyszek](https://avatars.discourse-cdn.com/v4/letter/k/a4c791/32.png) [@kyler.kamyszek](https://forum.inductiveautomation.com/u/kyler.kamyszek)\
**Post date:** [August 29, 2023, 1:53pm UTC](https://forum.inductiveautomation.com/t/not-able-to-connect-plc-with-ignition-on-docker/78352/4 "2023-08-29T13:53:56Z")

</div>

Make sure you have a default gateway set on the PLC side of things.
