Check if port on IP is open in CMD?


  1. Posts : 135
    Windows 7 Ultimate x32
       #1

    Check if port on IP is open in CMD?


    Hi All

    I would like to know if there is a way I can test if a specific port is open on an IP address and if my PC can connect to that port?
    How do you do this from Command Prompt? 'telnet iport' does not seem to work since it just says 'telnet' is not recognized as an internal or external command.

    I do not want to use a website to do this, since they will test if they can make a connection from their servers to the ip port in question, not if the port between my IP address and the ip in question is open.

    I know about NMAP and Netcat, but don't know how that works.

    What is the best way to do this in windows?

    Thanks
      My Computer


  2. Posts : 8,870
    Windows 7 Ult, Windows 8.1 Pro,
       #2

    Type netstat -? into command prompt. It will list all the options, choose the one you want.

    Type "netstat -a" in the Command Prompt window, and press "Enter." The computer displays a list of all open TCP and UDP ports.

    Look for any port number that displays the word "LISTENING" under the "State" column.


    If you need to ping through a port to a specific IP use telnet.

    http://www.ehow.com/how_8297516_ping-port.html
      My Computer


  3. Posts : 135
    Windows 7 Ultimate x32
    Thread Starter
       #3

    thank You Chev65, appreciate
      My Computer


  4. Posts : 7,878
    Windows 7 Ultimate x64
       #4

    The telnet client is not installed by default. You have to go into Add/Remove Program and then Windows components and choose to install it.
      My Computer


  5. Posts : 8,870
    Windows 7 Ult, Windows 8.1 Pro,
       #5

    pparks1 said:
    The telnet client is not installed by default. You have to go into Add/Remove Program and then Windows components and choose to install it.
    Correct, and the link I provided explains how to do that. :)

    Enable telnet if you have a later version of Windows such as Windows Vista or Windows 7 and have not previously done so. To access this feature, click the "Start" button and select "Control Panel." In the menu that pops up, choose "Programs and Features" and the "Turn Windows Features On or Off" menu. Turn on "Telnet" by selecting its check box.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 09:37.
Find Us