Use this topic when IPv4 works differently from IPv6, an address/prefix/gateway is wrong, APIPA appears, a route points to the wrong interface, or only local-subnet communication works.
IPv4
1. Get-NetIPAddress -AddressFamily IPv4 — address and prefix.
2. 169.254.x.x → DHCP failed.
3. Duplicate? Event 4199 (Tcpip) in System log.
4. Gateway in the same subnet?
5. Ping the gateway.
address + prefix → on-link decision → ARP → gateway for off-link
Test the next hop and actual destination protocol, then inspect upstream/return evidence if needed.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
Do not treat APIPA as evidence the DHCP server is down; relay/VLAN/firewall/client issues can produce the same symptom. Do not treat a ping failure as evidence IPv4 routing is broken when ICMP may be filtered.
Operational reference
Fast context before you go deeper.
Get-NetIPAddress -AddressFamily IPv4Verification & 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 Verification path Verify boundary
Use a numeric IPv4 destination, identify the selected route/interface, verify the source address and ARP entry, then test the actual protocol/port. Compare return-path behavior if outbound evidence is healthy.
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 IPv4 address is meaningful only with its prefix/interface context.
- 169.254.0.0/16 link-local addressing often indicates no usable DHCP lease, but it does not itself identify why DHCP failed.
- A default gateway is represented by a default route; more-specific routes override it.
- IPv4 next-hop reachability normally requires ARP on Ethernet-like links.
- IPv4 reachability and DNS resolution are separate evidence chains.
ReferenceWhat it is1 section · depth on demand
Core model
Windows can hold multiple IPv4 addresses and routes across multiple interfaces. Source selection and route selection are flow-specific; there is no universal 'active NIC' that explains every destination.
ReferenceImportant terms & boundaries2 sections · depth on demand
Windows boundary
Separate local-subnet delivery from routed delivery. For an off-subnet destination, Windows first selects a route and then resolves the route's next hop on the chosen interface.
In depth
IPv4 configuration on Windows:
Get-NetIPAddress -AddressFamily IPv4 | ft InterfaceAlias,IPAddress,PrefixLength,PrefixOrigin
Get-NetIPConfiguration -Detailed
New-NetIPAddress -InterfaceAlias Ethernet -IPAddress 10.0.10.20 -PrefixLength 24 -DefaultGateway 10.0.10.1
Set-DnsClientServerAddress -InterfaceAlias Ethernet -ServerAddresses 10.0.0.53,10.0.0.54
APIPA addresses (169.254.x.x) mean DHCP failed. Duplicate address detection marks an address Duplicate in Get-NetIPAddress if another host answers ARP for it.
ReferenceConfiguration & state1 section · depth on demand
Commands
Get-NetIPAddress -AddressFamily IPv4
Get-NetIPInterface -AddressFamily IPv4 | Select ifIndex,InterfaceAlias,Dhcp,InterfaceMetric
Test-NetConnection 8.8.8.8 -TraceRoute
netsh interface ipv4 show config
netsh int ipv4 show excludedportrange tcp # reserved ports (Hyper-V/WinNAT)
Documented example, not captured output. APIPA (169.254.x.x) means DHCP failed; a duplicate address shows as "Duplicate" in Get-NetIPAddress and event 4199.
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 Networking → IPv4. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/windows-server/networking/ · 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 Networking → IPv4 reference map
Fast lookup boundaries for Windows Networking → IPv4.
| Boundary | Meaning | Evidence limit |
|---|---|---|
| Address/prefix | Local IPv4 identity and on-link range | does not prove uniqueness/correct subnet |
| APIPA | 169.254/16 link-local state | often follows DHCP failure but cause unresolved |
| Route | Destination selection | most specific prefix wins first |
| ARP | IPv4 next-hop link mapping | entry can be incomplete/stale |
| ICMP/TCP | Controlled reachability tests | protocol-specific evidence only |