# Changing Modbus host IP

**URL:** <https://forum.inductiveautomation.com/t/changing-modbus-host-ip/3972>\
**Category:** General Discussion\
**Created:** [February 9, 2012, 3:01pm UTC](https://forum.inductiveautomation.com/t/changing-modbus-host-ip/3972 "2012-02-09T15:01:53Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![marioquark](https://avatars.discourse-cdn.com/v4/letter/m/22d042/32.png) [@marioquark](https://forum.inductiveautomation.com/u/marioquark)\
**Post date:** [February 9, 2012, 3:01pm UTC](https://forum.inductiveautomation.com/t/changing-modbus-host-ip/3972/1 "2012-02-09T15:01:53Z")

</div>

hi,  
i have a modbus remote host on a 3G connection: dynamic IP! 😕  
it publishes its IP on my database, so i have to somehow update its IP via script in the builtin opc driver.  
is it possible?  
thank you

---

<div class="post-metadata">

**Author:** ![Greg.Buehler](https://avatars.discourse-cdn.com/v4/letter/g/ecc23a/32.png) [@Greg.Buehler](https://forum.inductiveautomation.com/u/Greg.Buehler)\
**Post date:** [February 9, 2012, 3:09pm UTC](https://forum.inductiveautomation.com/t/changing-modbus-host-ip/3972/2 "2012-02-09T15:09:23Z")

</div>

Sounds like it would be easier to solve your problem with a [dynamic DNS](http://dnslookup.me/dynamic-dns/) service than trying to script the changes to the modbus driver.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [February 9, 2012, 3:25pm UTC](https://forum.inductiveautomation.com/t/changing-modbus-host-ip/3972/3 "2012-02-09T15:25:20Z")

</div>

This would be the way to go for now.

You’re not the first person to ask for the ability to change the Host property of a driver on the fly though, I’ll get to that eventually.

---

<div class="post-metadata">

**Author:** ![diat150](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@diat150](https://forum.inductiveautomation.com/u/diat150)\
**Post date:** [February 9, 2012, 4:12pm UTC](https://forum.inductiveautomation.com/t/changing-modbus-host-ip/3972/4 "2012-02-09T16:12:07Z")

</div>

IMHO it is well worth paying the $1 for the static IP connection. 😃

---

<div class="post-metadata">

**Author:** ![marioquark](https://avatars.discourse-cdn.com/v4/letter/m/22d042/32.png) [@marioquark](https://forum.inductiveautomation.com/u/marioquark)\
**Post date:** [February 9, 2012, 4:36pm UTC](https://forum.inductiveautomation.com/t/changing-modbus-host-ip/3972/5 "2012-02-09T16:36:57Z")

</div>

i’ve gone [no-ip.com](http://no-ip.com)😉  
thanks

---

<div class="post-metadata">

**Author:** ![marioquark](https://avatars.discourse-cdn.com/v4/letter/m/22d042/32.png) [@marioquark](https://forum.inductiveautomation.com/u/marioquark)\
**Post date:** [April 26, 2012, 9:10am UTC](https://forum.inductiveautomation.com/t/changing-modbus-host-ip/3972/6 "2012-04-26T09:10:37Z")

</div>

i think modbus IP editing by-script remains a necessary feature. i’ll request it to Feature Request area.

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [April 26, 2012, 3:49pm UTC](https://forum.inductiveautomation.com/t/changing-modbus-host-ip/3972/7 "2012-04-26T15:49:23Z")

</div>

When drivers get the ability to have their hostname dynamically changed it will be via the existing Hostname tag, which you can then write to via a system.opc.writeValue or system.tag.writeToTag call.
