Network · Windows 11
Fix a PC that will not keep a static IP address (it resets to automatic)
Your printer, server, or remote connection needs this PC on the same address every day, but it keeps switching back to automatic. Set the static address on the right adapter, remove what is resetting it, and consider letting the router hold the address instead.
What you need
- Ten to twenty minutes. Setting the address takes minutes; checking why it reset takes the rest.
- Nothing to install. Every fix here uses Settings, Device Manager, or your router's own pages.
- The network's current details, written down. Note the address, subnet mask, gateway, and DNS servers the PC uses now — you will reuse most of them, changing only the address to one nobody else uses, ideally outside the range your router hands out automatically.
Read the problem before you touch it
- A reset has a cause — it is rarely random. A static setting usually disappears after something rewrote the adapter: a Windows Update or driver update, a network reset, or third-party VPN or security software applying its own profile. If it vanished right after one of those, redoing the setting once may be all it takes.
- Check which adapter you actually use. Wi-Fi and Ethernet hold separate IP settings. Setting a static address on Ethernet while the PC connects over Wi-Fi looks exactly like a reset: the connection you use still shows automatic, because it was never changed. Confirm which adapter shows as connected before editing anything.
- Recognize a 169.254 address. An address starting with 169.254 came from neither your router nor your static setting. It is a self-assigned fallback Windows uses when it cannot obtain an address normally — a sign the setting failed or clashed, not a working address other devices can reach. Microsoft's general troubleshooting is at Fix Wi-Fi connection issues in Windows, for cases where the PC will not connect at all.
- Consider a conflict. If another device already holds your chosen address, Windows can detect the clash and fall back to automatic rather than fight over it. A reset on every restart, with no update or new software in between, points this way — the fix is a different, genuinely free address.
The simple fixes, in order
- Note the working details first. Open Settings > Network & internet, open the adapter you actually connect with — Wi-Fi or Ethernet — and write down the address, subnet mask, gateway, and DNS it is using automatically. A static setup copies three of them exactly and changes only the address.
- Set the static address in Settings. On that same adapter page, find IP assignment and choose Edit. Switch to Manual, turn on IPv4, and enter your chosen address, the subnet mask and gateway you wrote down, and the same DNS servers — the gateway address itself works as the first DNS entry on most home networks. Choose Save. The connection reconnects on the new address.
- Verify it, then restart and verify again. Confirm the adapter page shows your address with IP assignment still on Manual, and open a couple of websites. Then restart the PC and check the same page. If the address survived, the setting is sound and any future reset will come from an outside event. If it is already back to automatic, work through the snags below before setting it a third time.
- Prefer a router reservation if it keeps resetting. A DHCP reservation tells the router to always give this PC the same address while the PC stays on automatic. The fixed address is the same, but the setting lives on the router, where Windows updates, driver changes, and network resets cannot touch it — often the better arrangement. Sign in to the router, find its DHCP or LAN settings, reserve an address for this PC's adapter, and set the PC back to automatic so the two methods do not compete.
The advanced route
- Remove VPN and security software from the picture, temporarily. VPN clients and some security suites manage adapters directly and can restore their own profile — automatic addressing included — at every sign-in. Disconnect or uninstall the software, set your static address, and restart. If it now holds, reinstall the software and check it for a network profile option; if the resets return with it, the router reservation sidesteps the fight entirely.
- Reinstall the network adapter driver. A damaged driver can fail to save adapter settings. Open Device Manager, expand Network adapters, right-click your adapter, and choose Uninstall device. Restart and Windows reinstalls the driver fresh; then set the static address again. Microsoft covers driver work in Update drivers through Device Manager in Windows. Download the driver from the PC maker first if this machine is your only way online.
- Redo the setup once after a network reset. A network reset reinstalls all adapters and returns their settings to defaults by design — a static address set before it is supposed to be gone. If the reset was recent, set the address once more and restart. If it holds, nothing is broken; the reset was the whole story.
End state
- The adapter you use shows your chosen address in Settings, with IP assignment on Manual — or the PC is on automatic with a matching router reservation.
- The address survives a restart, and websites, shared folders, printers, and remote connections work on it.
- The address does not start with 169.254 and is not shared with any other device.
When it goes wrong
- It resets after every Windows Update or driver update. Some updates reinstall the adapter, taking its settings with them. Reapply the address once; if the pattern repeats, move the fixed address to a router reservation, which PC updates cannot reach.
- The address is 169.254 something. Set the adapter back to automatic, confirm it receives a normal address from the router, then reapply the static setting from that working connection's details — with a different address, in case the first one clashed.
- No internet after setting the address. The gateway or DNS entry is almost always the mistake: one wrong digit in the gateway leaves the local network working but the internet unreachable. Compare both against the values you wrote down, or set the adapter back to automatic and start over.
- Another device keeps dropping off the network. Your chosen address was probably already in use by that device. Move your static address to a free one — outside the router's automatic handout range is safest.
- The setting holds on Ethernet but not Wi-Fi, or the reverse. The adapters keep separate settings. Set the address on the one you actually connect with, and expect to maintain both if you switch between cable and wireless.
Related fixes
-
Fix a screen resolution that resets after every restart
A resolution that is right all day and wrong every morning is almost never the monitor. It is a driver that loads late or falls back, a startup app applying its own display profile, or a display profile Windows cannot keep. Fix the driver first, then hunt the startup app.
-
Fix Sticky Keys or Filter Keys that keep turning themselves on
Sticky Keys and Filter Keys are useful features with aggressive shortcuts: tap Shift five times, or hold the right Shift key, and they switch on whether you wanted them or not. Turn the features off, then turn off the shortcuts that keep bringing them back, including at the sign-in screen.
-
Fix an Ethernet connection that shows connected but has no internet
An Ethernet connection can show as connected while nothing loads, because the link to the router works but the path to the internet does not. This guide proves where the break is first, then resets the adapter, the IP settings, and the driver in order.
-
Fix a game that cannot save, or whose saves keep disappearing
The game says the save failed, or you save, quit, and come back to an empty slot. The game is being blocked from writing to its own save folder, or something is removing the files afterward. Check Controlled folder access first — it silently blocks more games than any other cause — then the folder itself.
Sources
- Microsoft Support, Fix Wi-Fi connection issues in Windows — the built-in routes for connection failures, including adapter and network reset steps that return IP settings to automatic.
- Microsoft Support, Update drivers through Device Manager in Windows — updating and reinstalling drivers through Device Manager, including network adapter drivers.