Need Help with Telnet?

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

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.

OK, Thanks

Did you search flow library?

https://flows.nodered.org/search?term=Telnet

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

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

it will return 0 if successful.

1 Like

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

1 Like

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

Thanks again.

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