if you are trying following
$ telnet remote-server port
and you are getting error, this means no one is listening on that port on remote server.
Start the listening application ( like listener ) & then do telnet. it will work if firewall is not blocking it.