Replace telnet with netcat because nc is installed by default.