M HYPE SPLASH
// updates

How to test port by telnet command on localhost?

By Emma Valentine

I have windows Xp , I want to test some port , someone advice me to use telnet command on localhost to test it . but i don't know how i can do it (syntax of telnet command on local host) ?

4 Answers

You can do this by executing the Command Prompt (Start -> Run -> cmd)

Once you get the command prompt you can test the port by writing this on the command prompt

telnet localhost PORTNUMBER
1

on win 7 i found why telnet not work.

go to

Control Panel\All Control Panel Items\Programs and Features

Then click on Turn Windows features on or off on left side panel and checked Telnet Client and Telnet Server. after click OK, you can use this in windows command prompt (cmd).

to learn some of the syntax from the command prompt type:

c:\telnet /?

Typically you would do something like the following and see what kind of message pops up. Sometimes it may connect but nothing gets displayed. If the port is closed, then there is an error of some kind... even if nothing displays in a couple of seconds, just type "quit" to close the connection.

c:\telnet IPAddrOrHostname Port#
c:\telnet 192.168.0.1 25
c:\telnet server.mydomain.com 80
2

First of all, install telnet client by using DISM command:

dism /online /Enable-Feature /FeatureName:TelnetClient

or:

pkgmgr /iu:"TelnetClient"

Then run:

telnet example.com 80

where example.com is your destination host (can be localhost for local PC) and 80 is the port number.

When you connect, to disconnect, hit Control+], then type quit command to exit.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy