# PLC Connection Using Host Name instead of IP Address

**URL:** <https://forum.inductiveautomation.com/t/plc-connection-using-host-name-instead-of-ip-address/114262>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [March 2, 2026, 3:10pm UTC](https://forum.inductiveautomation.com/t/plc-connection-using-host-name-instead-of-ip-address/114262 "2026-03-02T15:10:42Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrew\_Fiegen](https://avatars.discourse-cdn.com/v4/letter/a/e480ec/32.png) [@Andrew\_Fiegen](https://forum.inductiveautomation.com/u/Andrew_Fiegen)\
**Post date:** [March 2, 2026, 3:10pm UTC](https://forum.inductiveautomation.com/t/plc-connection-using-host-name-instead-of-ip-address/114262/1 "2026-03-02T15:10:42Z")

</div>

Hello. I have a CompactLogix PLC that is going to be on a portable test skid. It will be plugged into the network wherever it happens to be at any given time. The consequence of that is that it will bounce between subnets and have a dynamically assigned IP address. I have always used IP address when setting up a PLC connection in Ignition.

I tried connecting to a test PLC using its host name instead of IP address but didn’t have any success. Has anyone make a PLC connection like this before?

Thanks for the help!

---

<div class="post-metadata">

**Author:** ![Matrix\_Engineering](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/matrix_engineering/32/19781_2.png) [@Matrix\_Engineering](https://forum.inductiveautomation.com/u/Matrix_Engineering)\
**Post date:** [March 2, 2026, 3:16pm UTC](https://forum.inductiveautomation.com/t/plc-connection-using-host-name-instead-of-ip-address/114262/2 "2026-03-02T15:16:25Z")

</div>

I think that’s only for database connections, etc, not PLC drivers.

I’ve never used a NATR, but that or a router, upstream from the PLC, as part of the skid, with a static IP, handing out the DHCP to the PLC. Hit the static of the NATR/router and internally forward to the PLC.

---

<div class="post-metadata">

**Author:** ![David\_Stone](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/david_stone/32/79749_2.png) [@David\_Stone](https://forum.inductiveautomation.com/u/David_Stone)\
**Post date:** [March 2, 2026, 8:56pm UTC](https://forum.inductiveautomation.com/t/plc-connection-using-host-name-instead-of-ip-address/114262/3 "2026-03-02T20:56:21Z")

</div>

Hostnames will only work if you have set them up in your on site DNS server, I don’t think I’ve ever seen mDNS on a Rockwell product. You would be better off setting up a static dhcp address instead.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [March 3, 2026, 1:02am UTC](https://forum.inductiveautomation.com/t/plc-connection-using-host-name-instead-of-ip-address/114262/4 "2026-03-03T01:02:28Z")

</div>

Many DHCP server setups will report new hosts by name to local DNS. Your setup must do this.

(I highly recommend using host names for all connections in Ignition.)

---

<div class="post-metadata">

**Author:** ![emmanuelsrlok](https://avatars.discourse-cdn.com/v4/letter/e/59ef9b/32.png) [@emmanuelsrlok](https://forum.inductiveautomation.com/u/emmanuelsrlok)\
**Post date:** [March 3, 2026, 1:17am UTC](https://forum.inductiveautomation.com/t/plc-connection-using-host-name-instead-of-ip-address/114262/5 "2026-03-03T01:17:46Z")

</div>

While using hostnames is ideal, many of us work in environments where we don't have access to the corporate IT network or DNS configuration. In those cases, a great workaround is to use the **local hosts file** on the Ignition Gateway server.

By mapping your PLCs to hostnames locally, you consolidate all your IP management into one file. If a PLC's IP address needs to change in the future, you only update it in that one file—Ignition never 'sees' the change because the hostname remains the same. This gives you the flexibility of hostnames without needing IT to modify the DNS server for every industrial device.
