Pcornel
Browse topics
Options
Recent
Favorites
Windows · Technical reference

Network Troubleshooting

Direct answer

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.

When to use this

Use it when a Windows client or server cannot reach something, or cannot be reached.

First 30 seconds

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.

Operational verification

address from DHCP or static → gateway reachable → DNS resolves → route to the destination → TCP port opens → (inbound: service listening and firewall rule for the active profile)

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Windows networking and network services
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformWindows networking and network services · Windows PowerShell · Windows / PowerShell
Key commandGet-NetTCPConnection [-LocalPort <port>]
Scope / prerequisiteUse it when a Windows client or server cannot reach something, or cannot be reached.
Verify · 3Troubleshoot · 5Reference · 6
What next?3 suggested next steps
Child topics (this level)2
Catalog command links14
Evidence0
On this pageJump to a specific section
Windows command reference

Primary Commands

Configuration and operational commands for this Topic.

Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

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).

Drill down

Subtopics

Go one level deeper into this subject.

Key points

Test-NetConnection tests a TCP port and shows the source interface and address used. Resolve-DnsName asks DNS directly; ping by name goes through the full resolver, including the hosts file and cache. The Windows firewall profile (Domain, Private, Public) decides which rules apply.

Key checks
  • 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:

QuestionCommand
Is the port open?Test-NetConnection srv01 -Port 443
Which process listens?Get-NetTCPConnection -State Listen \| ? LocalPort -eq 443, netstat -ano
Path and losspathping, tracert -d
Name resolutionResolve-DnsName
Packet capturepktmon, Wireshark
Firewall decisionnetsh 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
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docWindows networking and network services current

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%
Confirmation

Confirm action

Continue?