IP address conflict on Windows: find the other device and fix it
The one-minute fix, how to read the other device's MAC address out of the event log, and the permanent fixes on the router.
Windows has detected an IP address conflict means another device on your network is using the same IPv4 address as your PC. Packets meant for one end up at the other, so the connection works, drops, and works again. Getting back online takes a minute. Stopping it coming back means finding the other device, and Windows has already recorded which one it was.
Get back online now
If your PC gets its address automatically (the default), ask the router for a different one. Open Command Prompt as administrator (how to) and run:
ipconfig /release
ipconfig /renew
ipconfigThe last command shows the new address. Usually that is enough to carry on working. Disconnecting and reconnecting the Wi-Fi does much the same thing. More on release and renew.
If /renew gives you the same address and the conflict returns, or if the PC has a fixed address, read on.
Check whether your PC is the one with a static address
ipconfig /allFind your active adapter and look at two lines:
DHCP Enabled. . . . . . . . . . . : No
IPv4 Address. . . . . . . . . . . : 192.168.1.42(Duplicate)(Duplicate) after the address confirms Windows has seen the conflict (a healthy address says (Preferred)). DHCP Enabled: No means someone gave this PC a static address. That is the most common cause: the address was picked by hand and the router later handed the same one to something else. Either switch the adapter back to automatic:
netsh interface ipv4 set address name="Wi-Fi" source=dhcp
netsh interface ipv4 set dnsservers name="Wi-Fi" source=dhcpor keep it static but choose an address outside the router's DHCP pool, as explained in setting a static IP on Windows 11. Use your adapter's real name from netsh interface show interface in place of "Wi-Fi".
Find the other device
Ask the event log
Each time Windows detects a conflict it writes event 4199 from the Tcpip source to the System log, and the message includes the conflicting IP address and the network hardware (MAC) address of the other device. In Event Viewer go to Windows Logs › System and use Filter Current Log with event ID 4199, or in PowerShell:
Get-WinEvent -FilterHashtable @{LogName='System'; Id=4199} -MaxEvents 5 |
Format-List TimeCreated, MessageIf there are no results, the conflict has not been logged on this PC, so use the ARP method below.
Ask the network
Once your PC has a different address (after the renew above, or from another computer on the same network), see who still answers on the old one:
arp -d *
ping 192.168.1.42
arp -a | findstr 192.168.1.42Put in the address from your own conflict. arp -d * clears the ARP cache and needs an administrator prompt. The arp -a line shows the MAC address of the device using that address. It usually appears even if that device's firewall ignores the ping, because the ARP lookup happens before the ping is sent. The arp reference explains the cache and its output.
Turn the MAC address into a device
The first three pairs of a MAC address (the OUI) identify the manufacturer, which often tells you straight away whether it is a printer, a camera or a games console. The MAC address guide covers looking up the OUI, and the router's list of connected devices usually shows the same MAC with a device name next to it. Phones and recent laptops can use a randomised MAC per network, in which case the manufacturer lookup will not match; the router's device name is more useful there.
Why conflicts happen, and the permanent fixes
| Cause | Fix |
|---|---|
| A device with a hand-set static address inside the router's DHCP pool (printers, NAS boxes, cameras and Raspberry Pis are common) | Use a DHCP reservation on the router instead, or move the static address outside the pool |
| The router lost its lease list, for example after a reset or firmware update, and is handing out addresses that are still in use | Restart the devices that had addresses before the reset so they all renew, or wait for leases to settle |
| Two DHCP servers on one network: a second router plugged in LAN-to-LAN, or a device sharing its connection | Turn off DHCP on the second router, or set it up as an access point |
| A cloned virtual machine with the same static address as the original | Give the clone its own address or switch it to DHCP |
A reservation is the cleanest answer for anything that needs a fixed address. The device stays on automatic settings and the router always gives it the same IP, so there is nothing to clash. The static IP guide shows where reservations live on the common router brands, and how DHCP works explains pools and leases. If you suspect a second DHCP server, the rogue DHCP section shows how to find it.
Quick reference
ipconfig /releasethenipconfig /renewto get online.ipconfig /all: look for (Duplicate) and DHCP Enabled: No.- Event ID 4199 in the System log gives the other device's MAC address.
- Match the MAC in the router's device list.
- Fix it at the source with a reservation or an address outside the pool.
More from the blog
- netsh wlan show networks mode=bssid: see every Wi-Fi access point (and the location fix)
- tracert vs pathping: what is the difference and which should you use?
- No internet but Wi-Fi connected: what to check, in order
- How to find which device is using your bandwidth
- DNS_PROBE_FINISHED_NXDOMAIN: what it means and how to fix it
- How to set a static IP address on Windows 11 (Settings, netsh and PowerShell)
- Home router admin page: how to find the address and log in