Use it when a Windows host cannot reach a peer, service or network even though some local networking state appears normal.
Network Connectivity
Network Connectivity troubleshoots the Windows side of end-to-end reachability from application/socket through local TCP/IP configuration, route, neighbor resolution, adapter/link and the external/return path.
1. Adapter up; IP config.
2. Gateway, then destination with Test-NetConnection -Port.
3. DNS separately.
4. Firewall/VPN/proxy.
5. Path with tracert.
link → IP → gateway → route → port
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & 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 path Verify boundary
Application/socket → local IP/interface → route → neighbor → adapter/link → network path → return path → remote service
Step 2 Common mistakes Narrow the fault
- Checking only the local machine.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- An interface Up, IP address, route or ping result proves only its tested boundary; none alone proves the application path or return path.
- Keep the symptom, observed state and inferred cause as separate statements.
- Prefer evidence from the first failed boundary over broad configuration changes.
- A successful local check does not automatically prove the next dependency or end-to-end workload.
Get-WinEvent -FilterHashtable @{LogName='System';Level=1,2;StartTime=(Get-Date).AddHours(-24)}— system errors last 24hGet-WinEvent -FilterHashtable @{LogName='Application';Level=1,2;StartTime=(Get-Date).AddHours(-24)}— application errorsGet-ComputerInfo -Property OsName,OsBuildNumber,CsDomain— system contextGet-HotFix | Sort InstalledOn -Desc | Select -First 5— recent updates
ReferenceWhat it is1 section · depth on demand
Quick test sequence
Get-NetAdapter | Select Name,Status,LinkSpeed
ipconfig /all
Test-NetConnection <gateway>
Resolve-DnsName example.com
Test-NetConnection example.com -Port 443
Get-NetFirewallProfile | Select Name,Enabled
netsh winhttp show proxy
Documented example, not captured output. Remember proxy settings (WinHTTP vs user), VPN routes and metrics, and NCSI ("No internet access" can be a probe problem, not a real outage).
ReferenceImportant terms & boundaries3 sections · depth on demand
What the evidence shows
An interface Up, IP address, route or ping result shows only its tested boundary; none alone shows the application path or return path.
In depth
One cmdlet, four layers
PS C:\> Test-NetConnection app01.corp.example.com -Port 443 -InformationLevel Detailed
ComputerName : app01.corp.example.com
RemoteAddress : 10.20.0.15
RemotePort : 443
NameResolutionResults : 10.20.0.15
InterfaceAlias : Ethernet
SourceAddress : 10.0.10.21
NetRoute (NextHop) : 10.0.10.1
PingSucceeded : True
TcpTestSucceeded : False
| Field | Layer it proves |
|---|---|
| NameResolutionResults | DNS returned an address |
| SourceAddress / InterfaceAlias / NextHop | Route selection on this host |
| PingSucceeded | ICMP reachability (may be filtered — not decisive) |
| TcpTestSucceeded | Something accepted the TCP connection on that port |
TcpTestSucceeded False with ping working → service not listening, host firewall, or a network firewall in between. Check on the server: Get-NetTCPConnection -LocalPort 443 -State Listen and the firewall log.
Fast client checklist
| Step | Command |
|---|---|
| Link and speed | Get-NetAdapter \| Select Name, Status, LinkSpeed |
| Address, gateway, DNS | Get-NetIPConfiguration |
| Gateway reachable | Test-NetConnection 10.0.10.1 |
| Name resolution | Resolve-DnsName app01.corp.example.com |
| Service port | Test-NetConnection app01 -Port 443 |
| Path | Test-NetConnection app01 -TraceRoute |
| Proxy for system services | netsh winhttp show proxy |
"No Internet" icon vs. reality
The network icon comes from NCSI probes (HTTP to Microsoft's connectivity test host and a DNS lookup). Behind a proxy or with blocked probes, Windows shows "No Internet" while internal resources work fine — and some apps (Store, Teams sign-in) then behave as offline. Test the real target instead of trusting the icon.
IPv6 first
If a name resolves to IPv6 and IPv4, Windows prefers IPv6. A broken IPv6 path with a working IPv4 path causes delays or failures; compare Test-NetConnection against both addresses.
*The Test-NetConnection fields above illustrate a successful ICMP test with a failed TCP connection, rather than a captured network test.*
Method
Network connectivity on Windows — work up the stack:
Get-NetAdapter | ft Name,Status,LinkSpeed
Get-NetIPConfiguration
Test-NetConnection 10.0.10.1 # gateway
Test-NetConnection srv01.corp.example.com -Port 445 # name + port
Get-NetConnectionProfile
Get-NetFirewallProfile | ft Name,Enabled
netsh winsock reset; netsh int ip reset # last resort, reboot required
APIPA address → DHCP; gateway unreachable → VLAN/cable/switch; IP works but name fails → DNS; ping works but port fails → firewall or service; works for some users → profile/proxy/VPN.
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 Windows Troubleshooting → Network Connectivity. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/troubleshoot/windows/ · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Windows Troubleshooting → Network Connectivity reference map
Fast troubleshooting boundaries for Windows Troubleshooting → Network Connectivity.
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Symptom | What the user/workload reports | Starting point, not root cause |
| Local state | What Windows reports at this boundary | Does not prove adjacent dependency |
| Correlated evidence | Multiple sources agree in one timeline | Strengthens hypothesis, not automatic causation |
| Verification | Original test succeeds after controlled change | Required to close the troubleshooting loop |