telnet is no longer available on macos, we do however have netcat.
telnet
netcat
nc -vz <ip address> <port number>