Checking Multiple IP Addresses with Tellnet

By | June 18, 2019

Assalamualaikum / Hi,

Recent works, require me to check on servers connectivity.

A single server might require multiple access to servers and their respective ports.

I believe, there’s already scripts able to do that kind of process – iterate through a list of IP address and port, check its connectivity.

I have created a simple package called tellnet.

The script allow you to check multiple servers and ports connectivity.

Following example show how to check port 22, 80 and 443 to 10.10.0.1, 10.20.0.1, 10.30.0.1 servers.

$ tellnet 10.10.0.1:22,80,443 10.20.0.1:22,80,443 10.30.0.1:22,80,443
Jun 18 02:55 2019 - 10.10.0.1:22 [OK]
Jun 18 02:55 2019 - 10.10.0.1:80 [OK]
Jun 18 02:55 2019 - 10.10.0.1:443 [OK]
Jun 18 02:55 2019 - 10.20.0.1:22 [OK]
Jun 18 02:55 2019 - 10.20.0.1:80 [OK]
Jun 18 02:55 2019 - 10.20.0.1:443 [OK]
Jun 18 02:55 2019 - 10.30.0.1:22 [OK]
Jun 18 02:55 2019 - 10.30.0.1:80 [OK]
Jun 18 02:55 2019 - 10.30.0.1:443 [OK]

More example checking on connectivity to multiple SMTP servers:

$ tellnet 10.50.0.1:25,2525,625 10.50.0.2:25,2525,625 10.50.0.3:25,2525,625
Jun 18 02:55 2019 - 10.50.0.1:25 [OK]
Jun 18 02:55 2019 - 10.50.0.2:2525 [OK]
Jun 18 02:55 2019 - 10.50.0.3:625 [OK]
Jun 18 02:55 2019 - 10.50.0.1:25 [OK]
Jun 18 02:55 2019 - 10.50.0.2:2525 [OK]
Jun 18 02:55 2019 - 10.50.0.3:625 [OK]
Jun 18 02:55 2019 - 10.50.0.1:25 [OK]
Jun 18 02:55 2019 - 10.50.0.2:2525 [OK]
Jun 18 02:55 2019 - 10.50.0.3:625 [OK]

Just a small codes, to simplify my tasks. Hopefully will help other people with this little code.

Thanks!

2 thoughts on “Checking Multiple IP Addresses with Tellnet

  1. abdolrahman

    salam/HI how are u
    i need to help for laravel mix in laravel 5.7 . change folder in new version new version not found assets folder?

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

10 − 2 =