Search This Blog

Wednesday 4 January 2017

HOW TO PING A IP ADDRESS WITH TCP PORT AND CHECK POWER SHELL VER: -

Testing Network connection.

Ping: You can test if a network connection exists by pinging the other computer.

  • Open a command prompt
  • Type “ping <Remote Machine Name or IP address> -t” and press enter.


Test-Netconnection [IP ADDRESS OF SERVER PC] -Port [Port]

Test-Netconnection: You should also test the connection using Test-Netconnection as this allows you to specify the TCP port.

  • Open a command in Windows PowerShell Ver 4.0
  • Check the Windows PowerShall Version command:  
  • $PSVersionTable.PSVersion
    • Open a Windows Powershall
    • Type in "Test-Netconnection [IP ADDRESS OF SERVER PC] -PORT[PORT]" and press enter.
    • For example: - we would type Test-Netconnection 172.16.0.168 -Port 8100



    • If you receive a connecting... message or an error message then something is blocking that port.  It could be the Windows firewall, a third party firewall like Norton's or a hardware firewall between the PCs.

    What a successful test will tell you:
    • If you can both ping and Test-Netconnection to the other computer, this shows that there is a network connection and the port is open between the two computers.



    No comments:

    Post a Comment