Just needed to get to know whether something listens at a certain TCP port on a particular host.

Here is my workaround using Perl:

Works at least for me. Any concerns or better solutions?

You can actively support me!

## 1 comment

Two alternatives come to mind. First use telnet with a port number. For example (using values in your example):
telnet 1.2.3.4 1337
Second use nmap which is something sysadmins should get very familiar with. Here:
nmap 1.2.3.4