# Remote debug refusing to connect

**URL:** <https://forum.inductiveautomation.com/t/remote-debug-refusing-to-connect/93772>\
**Category:** Module Development\
**Created:** [July 25, 2024, 9:10pm UTC](https://forum.inductiveautomation.com/t/remote-debug-refusing-to-connect/93772 "2024-07-25T21:10:36Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robert\_McIlvenna](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/robert_mcilvenna/32/80238_2.png) [@Robert\_McIlvenna](https://forum.inductiveautomation.com/u/Robert_McIlvenna)\
**Post date:** [July 25, 2024, 9:10pm UTC](https://forum.inductiveautomation.com/t/remote-debug-refusing-to-connect/93772/1 "2024-07-25T21:10:36Z")

</div>

Running on 8.1.42

Error:

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

My setup:  
wrapper.java.additional.6=-Xdebug  
wrapper.java.additional.7=-Xrunjdwp:transport=dt\_socket,server=y,suspend=n,address=\*:8000  
wrapper.java.additional.7=-Dignition.allowunsignedmodules=true

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/a/6a0a0cbcfc14f5c0880f7a0c72db1d41bee899a8.png)

What else could cause the connection to refuse?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [July 25, 2024, 9:55pm UTC](https://forum.inductiveautomation.com/t/remote-debug-refusing-to-connect/93772/2 "2024-07-25T21:55:02Z")

</div>

~~Something else bound to port 8000? Have you restarted the gateway since you made the changes?~~

Note the command line IntelliJ suggests says `-agentlib`, but your command line string is `-Xrunjdwp`.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [July 25, 2024, 10:22pm UTC](https://forum.inductiveautomation.com/t/remote-debug-refusing-to-connect/93772/3 "2024-07-25T22:22:59Z")

</div>

As another dev pointed out to me - is your gateway even starting? You've got two additional params at index 7.

---

<div class="post-metadata">

**Author:** ![Robert\_McIlvenna](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/robert_mcilvenna/32/80238_2.png) [@Robert\_McIlvenna](https://forum.inductiveautomation.com/u/Robert_McIlvenna)\
**Post date:** [July 29, 2024, 2:12pm UTC](https://forum.inductiveautomation.com/t/remote-debug-refusing-to-connect/93772/4 "2024-07-29T14:12:27Z")

</div>

cant believe i didnt notice that, will try with that and see if it works

---

<div class="post-metadata">

**Author:** ![Robert\_McIlvenna](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/robert_mcilvenna/32/80238_2.png) [@Robert\_McIlvenna](https://forum.inductiveautomation.com/u/Robert_McIlvenna)\
**Post date:** [July 29, 2024, 9:39pm UTC](https://forum.inductiveautomation.com/t/remote-debug-refusing-to-connect/93772/5 "2024-07-29T21:39:48Z")

</div>

yep, this worked and changing the agentlib
