# How to use "sudo nc -l 502" command in Losant Run Executable Node

**URL:** <https://forums.losant.com/t/how-to-use-sudo-nc-l-502-command-in-losant-run-executable-node/2047>\
**Category:** Help\
**Tags:** edge\
**Created:** [August 2, 2019, 9:26am UTC](https://forums.losant.com/t/how-to-use-sudo-nc-l-502-command-in-losant-run-executable-node/2047 "2019-08-02T09:26:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sivasankari\_s](https://avatars.discourse-cdn.com/v4/letter/s/d26b3c/32.png) [@sivasankari\_s](https://forums.losant.com/u/sivasankari_s)\
**Post date:** [August 2, 2019, 9:26am UTC](https://forums.losant.com/t/how-to-use-sudo-nc-l-502-command-in-losant-run-executable-node/2047/1 "2019-08-02T09:26:20Z")

</div>

Hi,  
how to use “sudo nc -l 502” command in Losant Run Executable Node.  
please share the docker settup for the Run Executable Node.

Thanks,  
Sivasankari S

---

<div class="post-metadata">

**Author:** ![JuliaKempf](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/juliakempf/32/2446_2.png) [@JuliaKempf](https://forums.losant.com/u/JuliaKempf)\
**Post date:** [August 2, 2019, 2:54pm UTC](https://forums.losant.com/t/how-to-use-sudo-nc-l-502-command-in-losant-run-executable-node/2047/2 "2019-08-02T14:54:54Z")

</div>

Hi @sivasankari_s,

I am curious, what is your overarching goal for this command and your project? The listening command you have will not trigger a workflow when it sees data (and may not be useful), so I am wondering if there may be a better solution for your use case.

Thanks!  
Julia

---

<div class="post-metadata">

**Author:** ![sivasankari\_s](https://avatars.discourse-cdn.com/v4/letter/s/d26b3c/32.png) [@sivasankari\_s](https://forums.losant.com/u/sivasankari_s)\
**Post date:** [August 9, 2019, 12:03pm UTC](https://forums.losant.com/t/how-to-use-sudo-nc-l-502-command-in-losant-run-executable-node/2047/3 "2019-08-09T12:03:46Z")

</div>

Thank you Very much julia.  
I want to listent my tcp port using edge work flow.  
I have tried a modbus read node for this use case but i didn’t get any data.  
for listenting tcpip and port which node I have to use in the Edge Work flow?  
please suggest me if any.  
Thanks,  
Sivasankari S
