# Specify source port for Modbus TCP connection

**URL:** <https://forum.inductiveautomation.com/t/specify-source-port-for-modbus-tcp-connection/99353>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [December 3, 2024, 8:00am UTC](https://forum.inductiveautomation.com/t/specify-source-port-for-modbus-tcp-connection/99353 "2024-12-03T08:00:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Douglas\_Lawrie](https://avatars.discourse-cdn.com/v4/letter/d/a87d85/32.png) [@Douglas\_Lawrie](https://forum.inductiveautomation.com/u/Douglas_Lawrie)\
**Post date:** [December 3, 2024, 8:00am UTC](https://forum.inductiveautomation.com/t/specify-source-port-for-modbus-tcp-connection/99353/1 "2024-12-03T08:00:48Z")

</div>

Is it possible to specify a particular source port for Modbus TCP connections? I am connecting to some fussy equipment that gets upset when Ignition frequently changes the source port it connects with.

---

<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:** [December 3, 2024, 1:29pm UTC](https://forum.inductiveautomation.com/t/specify-source-port-for-modbus-tcp-connection/99353/2 "2024-12-03T13:29:57Z")

</div>

No, TCP/IP generally doesn't permit that. It won't happen, though, if the connection doesn't break or time out. Have you used Wireshark to see what is really going on?

(Many Modbus devices will close an idle connection after ten seconds.)
