Pcornel
Browse topics
Options
Recent
Favorites
Windows · Technical reference

IPv4

Direct answer

Windows IPv4 is the host implementation of Internet Protocol version 4, including unicast addressing/prefixes, source selection, local-subnet decisions, default/other routes, ARP next-hop resolution and fragmentation/MTU behavior.

When to use this

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.

First 30 seconds

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.

Operational verification

address + prefix → on-link decision → ARP → gateway for off-link

Evidence · next step

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
Common mistakes
Common traps

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.

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
Key commandGet-NetIPAddress -AddressFamily IPv4
Scope / prerequisiteUse this topic when IPv4 works differently from IPv6, an address/prefix/gateway is wrong, APIPA appears, a route points…
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
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 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 references

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.

observation · 1
Key points
  • 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.
Key checks
  • Get-NetIPConfiguration — addresses, gateway and DNS per interface
  • Get-NetAdapter — adapters, status and link speed
  • Get-NetRoute -AddressFamily IPv4 — routes and metrics
  • Test-NetConnection <host> -Port <p> — ping, route and TCP port test
  • ipconfig /all — full IP configuration
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.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches 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
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 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%
Terminology layer

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.

Aliases that resolve here
windows ipv4apipa windowswindows ipv4 routewindows ipv4 troubleshooting
Embedded reference data

Quick lookup tables

Windows Networking → IPv4 reference map

Fast lookup boundaries for Windows Networking → IPv4.

BoundaryMeaningEvidence limit
Address/prefixLocal IPv4 identity and on-link rangedoes not prove uniqueness/correct subnet
APIPA169.254/16 link-local stateoften follows DHCP failure but cause unresolved
RouteDestination selectionmost specific prefix wins first
ARPIPv4 next-hop link mappingentry can be incomplete/stale
ICMP/TCPControlled reachability testsprotocol-specific evidence only
Confirmation

Confirm action

Continue?