Test a port on a remote system without telnet
Recently I learned netcat can be useful tool to find out if a port is accessible on a remote system.
nc remoteip port < /dev/null; echo $? |
This will return 0 if port is open and return 1 if port is closed