# Need Help with Telnet?

**URL:** <https://discourse.nodered.org/t/need-help-with-telnet/88647>\
**Category:** General\
**Created:** [12 June 2024 19:26 UTC](https://discourse.nodered.org/t/need-help-with-telnet/88647 "2024-06-12T19:26:44Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![damica51](https://avatars.discourse-cdn.com/v4/letter/d/eb8c5e/32.png) [@damica51](https://discourse.nodered.org/u/damica51)\
**Post date:** [12 June 2024 19:26 UTC](https://discourse.nodered.org/t/need-help-with-telnet/88647/1 "2024-06-12T19:26:44Z")

</div>

So I have a Telnet Server running (Example: 192.22.50.70:2300)

Now for Node Red all I want to do is send a "Telnet command" that will test to see if port 2300 is open on IP address 192.22.50.70 and return a simple "True or False".

I started this project a while back and moved away from it but now I need to again move forward, can someone help to get me started?

Thanks

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [13 June 2024 00:50 UTC](https://discourse.nodered.org/t/need-help-with-telnet/88647/2 "2024-06-13T00:50:46Z")

</div>

TELNET is for interactive sessions. It isn't well suited to the kind of thing you appear to want to do. Depending on your OS, there are other tools that would serve you better.

---

<div class="post-metadata">

**Author:** ![damica51](https://avatars.discourse-cdn.com/v4/letter/d/eb8c5e/32.png) [@damica51](https://discourse.nodered.org/u/damica51)\
**Post date:** [13 June 2024 01:32 UTC](https://discourse.nodered.org/t/need-help-with-telnet/88647/3 "2024-06-13T01:32:53Z")

</div>

OK, Thanks

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [13 June 2024 06:19 UTC](https://discourse.nodered.org/t/need-help-with-telnet/88647/4 "2024-06-13T06:19:32Z")

</div>

Did you search flow library?

[https://flows.nodered.org/search?term=Telnet](https://flows.nodered.org/search?term=Telnet)

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [13 June 2024 06:23 UTC](https://discourse.nodered.org/t/need-help-with-telnet/88647/5 "2024-06-13T06:23:04Z")

</div>

If you are using a linux based system, you could try to use an `exec` node with a command like:

```auto
timeout 2 bash -c "</dev/tcp/192.22.50.70/2300"; echo $?

```

it will return 0 if successful.

---

<div class="post-metadata">

**Author:** ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)\
**Post date:** [13 June 2024 07:35 UTC](https://discourse.nodered.org/t/need-help-with-telnet/88647/6 "2024-06-13T07:35:10Z")

</div>

If you tell us what you trying to achieve then we may be able to suggest better alternatives.

---

<div class="post-metadata">

**Author:** ![damica51](https://avatars.discourse-cdn.com/v4/letter/d/eb8c5e/32.png) [@damica51](https://discourse.nodered.org/u/damica51)\
**Post date:** [15 June 2024 10:48 UTC](https://discourse.nodered.org/t/need-help-with-telnet/88647/7 "2024-06-15T10:48:03Z")

</div>

I moved on to a different approach again, due to equipment (Hardware).

Thanks again.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [29 June 2024 10:49 UTC](https://discourse.nodered.org/t/need-help-with-telnet/88647/8 "2024-06-29T10:49:05Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
