Use it when a Windows client or server cannot reach something, or cannot be reached.
Network Troubleshooting
Network troubleshooting on Windows checks IP configuration, gateway and DNS, then connectivity and ports with PowerShell and the classic tools, and finally the traffic itself with a packet capture.
1. ipconfig /all — address, gateway and DNS correct? 169.254.x.x means DHCP failed.
2. Test-NetConnection <gateway> — gateway reachable?
3. Resolve-DnsName <name> — right address?
4. Test-NetConnection <host> -Port <port> — TcpTestSucceeded?
5. Inbound to this machine fails → Get-NetTCPConnection -State Listen, then the firewall profile and rules.
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Get-NetTCPConnection [-LocalPort <port>]Primary Commands
Configuration and operational commands for this Topic.
Get-NetTCPConnection [-LocalPort <port>]ReferenceDisplay TCP endpoints/state.
Use when: Use after confirming the Windows Networking target and before changing state.
Quick note: Windows / Windows Server / PowerShell. A running Windows service or successful cmdlet does not prove effective policy, replication, authorization or remote consumer success.
Windows PowerShell · mixedTest-NetConnection {{host}} -Port {{port}} -InformationLevel DetailedTroubleshootTests name resolution/route/TCP connectivity and returns structured details.
Use when: Use after confirming the Windows Networking target and before changing state.
Quick note: Windows / Windows Server / PowerShell. A running Windows service or successful cmdlet does not prove effective policy, replication, authorization or remote consumer success.
Windows PowerShell · mixedGet-NetTCPConnectionVerifyInspect Windows TCP connection state and endpoints.
Use when: Use after confirming the PowerShell target and before changing state.
Quick note: Windows / Windows Server / PowerShell. A running Windows service or successful cmdlet does not prove effective policy, replication, authorization or remote consumer success.
Windows PowerShell · mixedGet-NetTCPConnection | Sort-Object State,RemoteAddressVerifyInspect TCP endpoints and local socket state.
Use when: Use after confirming the PowerShell target and before changing state.
Quick note: Windows / Windows Server / PowerShell. A running Windows service or successful cmdlet does not prove effective policy, replication, authorization or remote consumer success.
Windows PowerShell · mixedpingTroubleshootSend ICMP echo requests from Windows.
Use when: Use at the Network Troubleshooting, Ping, Traceroute and Debugging boundary after prerequisite state is verified.
Quick note: Operational guidance. One successful probe does not prove all sources, packet sizes, protocols, directions or times are healthy.
Windows / PowerShell · mixedtracertTroubleshootTrace the path to a destination from Windows.
Windows / PowerShell · mixedpathpingReferenceTrace a route and measure loss per hop.
Windows / Windows Server / PowerShell · mixedTest-NetConnectionTroubleshootTest TCP connectivity, DNS and route to a host from PowerShell.
Windows / Windows Server / PowerShell · mixednetstatVerifyDisplay network connections and listening ports.
Windows / Windows Server / PowerShell · mixedarpReferenceDisplay or change the ARP cache on Windows.
Windows / Windows Server / PowerShell · mixedroute printReferenceDisplay the Windows routing table.
Windows / PowerShell · mixednslookupTroubleshootQuery DNS servers from Windows.
Windows / PowerShell · mixedResolve-DnsNameReferenceQuery DNS from PowerShell, with record type and server options.
Windows / Windows Server / PowerShell · mixedpktmonReferenceCapture packets on Windows with the built-in packet monitor.
Windows / Windows Server / PowerShell · mixedVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Troubleshooting order Narrow the fault
1. Link and IP: Get-NetAdapter, ipconfig /all (APIPA? wrong subnet?).
2. Gateway: Test-NetConnection <gateway>, Get-NetNeighbor.
3. DNS: Resolve-DnsName name, compare with -Server 8.8.8.8.
4. Port: Test-NetConnection server -Port 443.
5. Firewall: Get-NetFirewallProfile, event logs, network firewall.
6. Capture: pktmon or Wireshark.
netsh winsock reset and netsh int ip reset fix corrupted stacks after VPN/AV problems (reboot needed).
Subtopics
Go one level deeper into this subject.
Wireshark is a packet analyser that captures and decodes network traffic on Windows with Npcap.
Subtopic Packet CapturePacket capture on Windows records network traffic for analysis with pktmon start --capture or netsh trace start capture=yes, saved as ETL or pcapng files that Wireshark or Network Monitor can open.
ipconfig /all— address, mask, gateway, DNS servers, DHCP.Test-NetConnection <host> -Port <port> -InformationLevel Detailed— TCP port test with route and source.Resolve-DnsName <name>— DNS answer and which server gave it.tracert -d <dst>— the path without name lookups.Get-NetTCPConnection -State Listen -LocalPort <port>— is a service listening?Get-NetConnectionProfile— network category, which selects the firewall profile.
ReferenceHow it works1 section · depth on demand
In depth
Windows network troubleshooting toolkit:
| Question | Command |
|---|---|
| Is the port open? | Test-NetConnection srv01 -Port 443 |
| Which process listens? | Get-NetTCPConnection -State Listen \| ? LocalPort -eq 443, netstat -ano |
| Path and loss | pathping, tracert -d |
| Name resolution | Resolve-DnsName |
| Packet capture | pktmon, Wireshark |
| Firewall decision | netsh wfp show state, firewall log |
Get-NetTCPConnection -RemotePort 1433 | ft LocalAddress,RemoteAddress,State,OwningProcess
Get-Process -Id (Get-NetTCPConnection -LocalPort 443 -State Listen).OwningProcess
ReferenceImportant terms & boundaries1 section · depth on demand
Tools
| Need | Tool |
|---|---|
| Connectivity | Test-NetConnection host -Port 443 -InformationLevel Detailed |
| Path | tracert -d, pathping |
| Name resolution | Resolve-DnsName |
| Listening ports | Get-NetTCPConnection -State Listen |
| Capture | pktmon, netsh trace |
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Network Troubleshooting. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/windows-server/networking/ · confidence 94%