2. Determine the TCP port number to connect with. (For example, you want to connect using SMTP port then TCP port is 25.)
3. Start menu => Run => cmd
4. Type the command. telnet hostname port_number
5. Hit enters.
Below mentioned are some Port numbers: