PowerShell Test-NetConnection cmdlet verifies TCP port connectivity
PowerShell's Test-NetConnection command can test TCP connectivity to specific ports without additional utilities. The cmdlet checks whether a computer can establish a connection to a specified destination port from its current network location. A successful result confirms TCP connectivity but doesn't verify application functionality behind that port. Test-NetConnection is part of PowerShell's NetTCPIP module and is not available in Command Prompt. Network differences between testing and application environments can produce different results due to firewalls or routing configurations.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in