Practical procedure and troubleshooting notes for Useful Windows Client Commands.
π Testing Port Connectivity with PowerShell
π§ͺ Telnet Alternative: Test-NetConnection
Test-NetConnection -ComputerName "IP_or_Hostname" -Port 80 -InformationLevel "Detailed"
π Description
- Use this command to test connectivity to a specific port on a remote host.
- Itβs useful when an application isnβt connecting properly β it helps you determine whether the issue lies with the client, the network, or the server.
- Also serves as a modern alternative to the deprecated
telnetcommand.
π₯οΈ Example
Test-NetConnection -ComputerName "wiki.hiddeninthemist.vip" -Port 443 -InformationLevel "Detailed"
Example Output:
ComputerName : wiki.hiddeninthemist.vip
RemoteAddress : 172.67.147.223
RemotePort : 443
NameResolutionResults : 172.67.147.223
104.21.57.174
MatchingIPsecRules :
NetworkIsolationContext : Internet
IsAdmin : False
InterfaceAlias : Ethernet
SourceAddress : 10.30.60.250
NetRoute (NextHop) : 10.30.60.1
TcpTestSucceeded : True
β
A TcpTestSucceeded value of True means the remote host is reachable on that port.
π« A False result may indicate a firewall, network routing, or service issue.