Test the ip and port with curl if telnet and netcat are not installed in Linux

curl -sv telnet://ip:port