Setting a static IP should keep your device permanently connected. Instead, you keep losing internet the moment you switch away from automatic DHCP. If that sounds familiar, you are in the right place.
I have helped dozens of friends, family members, and coworkers troubleshoot this exact problem over the past several years. The issue almost always comes down to one of three things: a DHCP pool conflict, a wrong default gateway, or a DNS server misconfiguration. None of these are hard to fix once you understand what is happening behind the scenes.
In this guide, I will walk you through how to set a static IP for a device that keeps losing its connection. I will cover every major platform (Windows, macOS, Android, iOS, and Linux), explain why your device keeps disconnecting in the first place, and show you the DHCP reservation method that prevents this problem entirely.
We will also get into router-specific instructions for TP-Link, Netgear, and ASUS routers since most guides skip those. By the end, you will have a stable, persistent IP address that actually stays connected.
Table of Contents
Quick Answer: The 60-Second Fix
The fastest way to stop your device from losing its connection is to use DHCP reservation on your router instead of setting a static IP manually on the device itself. This keeps your router in charge of IP assignment while guaranteeing your device always gets the same address.
Here is the quick version of how to do it:
- Find your device’s MAC address and current IP address.
- Log into your router’s admin panel (usually 192.168.1.1 or 192.168.0.1).
- Navigate to the DHCP reservation or Address Reservation section.
- Add your device’s MAC address and assign it a fixed IP.
- Save, restart your device, and verify the IP sticks.
This method avoids IP conflicts entirely because the router knows the address is reserved. Keep reading for detailed steps for every platform and router brand.
Why Your Device Loses Connection With a Static IP
Understanding the root cause is half the battle. When I first tried setting a static IP on my home server years ago, it worked for about 10 minutes and then completely dropped. I was frustrated and confused. Here is what was actually happening.
The DHCP Pool Conflict (Cause #1)
Your router uses DHCP (Dynamic Host Configuration Protocol) to hand out IP addresses automatically. It draws these addresses from a range called the DHCP pool, which might be something like 192.168.1.100 to 192.168.1.254.
If you manually set a static IP on your device that falls inside this DHCP pool range, your router does not know that address is taken. It can hand that same IP to another phone, tablet, or smart TV that connects to your network. Now two devices share the same address, and your connection drops.
This is the single most common cause of static IP disconnection. Forum users on Reddit and SuperUser confirm it repeatedly. One user on r/HomeNetworking reported that their internet disconnected every time they set a static IP until they moved it outside the DHCP pool range. Another on SuperUser discovered that their gateway was set to 192.168.1.10 when it should have been 192.168.1.1. Small mistakes, total connectivity loss.
Wrong Default Gateway (Cause #2)
The default gateway is the IP address of your router. Most home routers use 192.168.1.1, 192.168.0.1, or 10.0.0.1. If you enter the wrong gateway when setting a static IP, your device can connect to your local network but cannot reach the internet.
This happens because your device does not know where to send traffic that is meant for the outside world. It sits on your local network with no way out. I have seen people type 192.168.1.10 (a device address) instead of 192.168.1.1 (the router address) and wonder why their browser shows “This site can’t be reached.”
Missing or Wrong DNS Server (Cause #3)
DNS servers translate domain names like google.com into IP addresses. When you set a static IP manually, you must also specify DNS servers. Forget this step, and your device connects to the network but cannot load any websites.
You can use your router’s IP as the DNS server, or use public DNS servers like Google’s 8.8.8.8 and 8.8.4.4, or Cloudflare’s 1.1.1.1. I personally use 1.1.1.1 because it tends to be fast and reliable.
Subnet Mask Errors (Cause #4)
The subnet mask tells your device how large your network is. For virtually all home networks, this value is 255.255.255.0. Entering a different subnet mask can cause your device to think it is on a different network entirely, breaking all communication with your router.
VPN or Virtual Adapter Interference (Cause #5)
If you have a VPN installed (even if it is not currently active), it may have created a virtual network adapter. Forum users on r/pihole have reported that VPN adapters interfere with static IP settings, causing intermittent drops. Disabling the virtual adapter or configuring it separately usually fixes the issue.
DHCP Reservation vs Static IP: Which Should You Use?
Before we get into the step-by-step instructions, you need to understand the difference between these two approaches. Many guides mention both but never clearly compare them. Let me fix that.
Device-Level Static IP
You configure the IP address, subnet mask, gateway, and DNS directly on the device (Windows, Mac, phone, etc.). The device ignores DHCP entirely and uses whatever you set.
Pros:
- Works even if your router does not support DHCP reservation.
- Full control over every network setting.
- Survives router resets and firmware updates.
Cons:
- Easy to misconfigure (wrong gateway, missing DNS, pool conflict).
- Does not travel well between networks (your static settings only work at home).
- If your router’s IP changes, you have to update every static device manually.
- Highest risk of IP conflicts.
Router-Level DHCP Reservation (Recommended)
You tell your router to always assign the same IP address to a specific device, based on its MAC address. The device continues using DHCP, but the router always gives it the same address.
Pros:
- Zero risk of IP conflicts because the router manages everything.
- No device-side configuration needed.
- Works across all devices and platforms automatically.
- Easy to change or remove later.
- The device still works fine on other networks (it uses DHCP).
Cons:
- Requires access to your router’s admin panel.
- Does not work if your router lacks the feature (most modern routers have it).
- If you reset your router to factory defaults, reservations are lost.
My recommendation: Use DHCP reservation whenever possible. It is more reliable, easier to manage, and eliminates the conflict problems that cause disconnections in the first place. Only use device-level static IP if your router does not support reservations or if you have a specific reason to bypass DHCP entirely.
How to Find Your Current Network Settings
Before setting up a static IP or DHCP reservation, you need to know your current network settings. Here is how to find your IP address, default gateway, subnet mask, DNS servers, and MAC address on every platform.
On Windows 10 and Windows 11
Open Command Prompt by pressing Win + R, typing cmd, and pressing Enter. Then type:
ipconfig /all
Look for these values under your active network adapter (Ethernet or WiFi):
- IPv4 Address: Your current IP (e.g., 192.168.1.105)
- Default Gateway: Your router’s IP (e.g., 192.168.1.1)
- Subnet Mask: Usually 255.255.255.0
- DNS Servers: Listed separately, might be your router IP
- Physical Address: This is your MAC address (e.g., A1-B2-C3-D4-E5-F6)
Write these down. You will need them later.
On macOS
Open System Settings, click Network, and select your active connection (WiFi or Ethernet). Click Details. You will see your IP address, subnet mask, router (gateway), and DNS servers listed there.
To find your MAC address, open Terminal and type:
ifconfig en0 | grep ether
The output will look like ether a1:b2:c3:d4:e5:f6. That is your MAC address for WiFi. Use en1 for Ethernet.
On Android
Go to Settings, then Network and Internet, then WiFi. Tap the gear icon next to your connected network. Your IP address, gateway, subnet mask, and DNS will be displayed. The MAC address is listed on the same screen or under About Phone then Status information.
On iOS (iPhone and iPad)
Open Settings, tap WiFi, and tap the “i” icon next to your connected network. You will see your IP address, subnet mask, router, and DNS. Your MAC address is listed under Settings, then General, then About, then WiFi Address.
How to Find Your Router’s Login IP
Your router’s admin panel IP is the same as your default gateway. On most networks, it is one of these:
- 192.168.1.1 (TP-Link, ASUS, Linksys, most generic routers)
- 192.168.0.1 (Netgear, D-Link, some TP-Link models)
- 10.0.0.1 (Xfinity, some Comcast routers)
- 192.168.50.1 (some ASUS models)
Type this address into any web browser to access your router’s admin panel. You will need your admin username and password. If you never changed them, check the sticker on the bottom of your router.
How to Set a Static IP for a Device That Keeps Losing Its Connection: Method 1 (DHCP Reservation)
This is the method I recommend for 90% of users. It solves the disconnection problem at the source because your router manages the IP assignment. No conflicts, no misconfigured settings.
General Steps (All Routers)
Step 1: Find your device’s MAC address using the instructions in the previous section. Write it down exactly as shown, including colons or hyphens.
Step 2: Open a web browser and type your router’s IP address (your default gateway) into the address bar. Log in with your admin credentials.
Step 3: Look for a section called DHCP Reservation, Address Reservation, IP Reservation, DHCP Client List, or LAN Setup. The exact name varies by brand.
Step 4: You should see a list of currently connected devices. Find your device in the list (it may show the hostname, MAC address, and current IP). Click Add or Reserve next to it.
Step 5: Choose the IP address you want to assign permanently. Pick an address within your network range but ideally outside the DHCP pool. If your DHCP pool is 192.168.1.100 to 192.168.1.254, use something like 192.168.1.50.
Step 6: Save the reservation. Restart your device (or toggle WiFi off and on) to force it to request a new DHCP lease. It should now receive the reserved IP.
Step 7: Verify by checking your device’s IP address using the methods from the previous section. It should match the reserved address.
TP-Link Router Steps
Log into your TP-Link router (usually 192.168.0.1 or 192.168.1.1). Go to the Advanced tab, then Network, then DHCP Server. Look for DHCP Client List to see connected devices. Then go to Address Reservation and click Add. Enter your device’s MAC address and the desired IP address. Save and restart your device.
Netgear Router Steps
Log into your Netgear router (usually 192.168.0.1 or routerlogin.net). Go to Advanced, then Setup, then LAN Setup. Scroll down to Address Reservation and click Add. Select your device from the dropdown or enter the MAC address manually. Assign the IP address and click Apply. Restart your device to pick up the reservation.
ASUS Router Steps
Log into your ASUS router (usually 192.168.1.1 or router.asus.com). Go to the Network Map screen and click the Clients icon. Find your device in the list. Click the pencil/edit icon next to it. Enable the option to bind the IP address (assign a fixed IP). Choose the IP you want and click Apply. Restart the device.
Eero and Mesh Network Systems
If you use Eero, open the Eero app. Tap Settings, then Network Settings, then Reservations & Port Forwarding. Tap Add a Reservation. Select your device and assign an IP address. The Eero will handle the rest automatically.
For other mesh systems like Google WiFi or Nest WiFi, open the respective app and look for a similar reservation feature under network settings.
How to Set a Static IP Directly on Your Device: Method 2
If your router does not support DHCP reservation, or you prefer to configure the static IP directly on the device, follow the platform-specific steps below. The key rule for every platform: choose an IP outside your router’s DHCP pool range.
Windows 10 and Windows 11
Step 1: Press Win + R, type ncpa.cpl, and press Enter. This opens the Network Connections window directly.
Step 2: Right-click your active network adapter (WiFi or Ethernet) and select Properties.
Step 3: In the list, find Internet Protocol Version 4 (TCP/IPv4). Click it to highlight it, then click Properties.
Step 4: Select “Use the following IP address.” Enter your chosen IP address (e.g., 192.168.1.50), subnet mask (255.255.255.0), and default gateway (your router’s IP, e.g., 192.168.1.1).
Step 5: Under “Use the following DNS server addresses,” enter your preferred DNS. I recommend 8.8.8.8 for the primary and 8.8.4.4 for the secondary. Or use 1.1.1.1 and 1.0.0.1.
Step 6: Click OK, then Close. Your connection may briefly drop and reconnect. Open a browser and test internet access.
macOS
Step 1: Open System Settings and click Network. Select your active connection (WiFi or Ethernet).
Step 2: Click Details, then go to the TCP/IP tab.
Step 3: Change “Configure IPv4” from “Using DHCP” to “Manually.”
Step 4: Enter your IP address (e.g., 192.168.1.50), subnet mask (255.255.255.0), and router (gateway, e.g., 192.168.1.1).
Step 5: Go to the DNS tab and add DNS servers. Click the plus button under DNS Servers and enter 8.8.8.8. Add a second one (8.8.4.4).
Step 6: Click OK, then Apply. Test your connection.
Android
Step 1: Go to Settings, then Network and Internet, then WiFi.
Step 2: Tap and hold your connected network, then select Modify network. On some Android versions, tap the gear icon and look for Network details or Advanced options.
Step 3: Check the box for “Advanced options” if it is not already expanded.
Step 4: Under IP settings, change “DHCP” to “Static.”
Step 5: Enter your desired IP address (e.g., 192.168.1.50). Enter the gateway (router IP). Enter the network prefix length, which is 24 for a 255.255.255.0 subnet mask.
Step 6: Enter DNS 1 (8.8.8.8) and DNS 2 (8.8.4.4). Tap Save.
Important note for Android: Static IP settings on Android only apply to the specific WiFi network you configured. Your phone will still use DHCP on other networks, which is actually a good thing.
iOS (iPhone and iPad)
Step 1: Open Settings and tap WiFi.
Step 2: Tap the “i” icon next to your connected network.
Step 3: Scroll to the IP Address section and tap Configure IP.
Step 4: Select Manual instead of Automatic.
Step 5: Enter your IP address (e.g., 192.168.1.50). Enter the subnet mask (255.255.255.0). Enter the router address (gateway, e.g., 192.168.1.1).
Step 6: Scroll down to the DNS section and enter 8.8.8.8 (or tap Add Server to add additional DNS entries).
Step 7: Tap Save in the top right corner. Test your connection.
Caution for iOS: Forum users have reported that static IPs on iPhones can cause issues when switching between WiFi networks. If your iPhone misbehaves on other networks, switch back to Automatic for that network or use DHCP reservation instead.
Linux (Ubuntu and Other Distributions)
Step 1: Open Settings and go to Network. Click the gear icon next to your connection.
Step 2: Under the IPv4 section, change the method from “Automatic (DHCP)” to “Manual.”
Step 3: Enter the Address (e.g., 192.168.1.50), Netmask (255.255.255.0), and Gateway (192.168.1.1).
Step 4: In the DNS field, enter 8.8.8.8,8.8.4.4 (comma-separated).
Step 5: Click Apply. Toggle your connection off and back on to apply the changes.
For command-line users on Ubuntu Server, edit the Netplan configuration:
sudo nano /etc/netplan/01-netcfg.yaml
Add your static IP under the network interface:
ethernets:
eth0:
dhcp4: no
addresses: [192.168.1.50/24]
gateway4: 192.168.1.1
nameservers:
addresses: [8.8.8.8, 8.8.4.4]
Apply with sudo netplan apply.
How to Verify Your Static IP Is Working
After setting your static IP or DHCP reservation, verify it is actually working. This takes about 30 seconds.
Check Your IP Address
On Windows, open Command Prompt and run ipconfig. Confirm the IPv4 Address matches what you set. On macOS, check System Settings, Network, and your connection details. On Android and iOS, check the WiFi network details screen.
Run a Ping Test
Open Command Prompt (Windows) or Terminal (macOS, Linux) and type:
ping 8.8.8.8
If you get replies, your device can reach the internet. If you get “Request timed out” or “Destination host unreachable,” your gateway or IP settings are wrong. Go back and double-check the gateway address.
Test DNS Resolution
Next, type:
ping google.com
If this fails but ping 8.8.8.8 worked, your DNS servers are the problem. Recheck the DNS entries in your static IP configuration.
Check for IP Conflicts
On Windows, run this command to detect conflicts:
arp -a
This shows all known devices on your network. If your IP address appears more than once with different MAC addresses, you have a conflict. Choose a different IP and try again.
Troubleshooting: Why Your Device Still Loses Connection
Still having issues after setting a static IP? This section walks through every possible cause I have encountered. I will address each one in order of likelihood.
Problem 1: IP Conflict With Another Device
Even if you set an IP outside the DHCP pool, another device on your network might have been manually assigned the same address. Two devices cannot share an IP.
Fix: Run arp -a on Windows or arp -a in Terminal on macOS to list all devices on your network. Look for duplicate IP entries. Change your static IP to an unused address, or better yet, switch to DHCP reservation.
Problem 2: Your Static IP Is Inside the DHCP Pool
This is the most common mistake. Your router’s DHCP pool might include addresses you thought were safe.
Fix: Log into your router and find the DHCP server settings. Look for the start and end IP of the DHCP pool. If your pool is 192.168.1.2 to 192.168.1.254, use addresses like 192.168.1.50 for static devices. Many forum users recommend keeping static IPs in the .10 to .49 range and letting DHCP handle .100 to .254.
If you cannot find your DHCP pool range, a safe approach is to set your DHCP pool to start at .100 and use .2 through .99 for static assignments. This guarantees no overlap.
Problem 3: Wrong Default Gateway
Your device cannot reach the internet if the gateway is incorrect. Double-check that the gateway matches your router’s IP exactly. Common mistakes include:
- Typing 192.168.1.10 instead of 192.168.1.1 (one digit off).
- Using 192.168.0.1 when your router is on 192.168.1.1 (different subnet).
- Leaving the gateway field blank (some platforms require it).
Problem 4: Missing or Incorrect DNS Servers
If your device has an IP and a gateway but cannot load websites, DNS is the culprit. Make sure you entered at least one DNS server.
Fix: Use these reliable public DNS servers:
- Google DNS: 8.8.8.8 and 8.8.4.4
- Cloudflare DNS: 1.1.1.1 and 1.0.0.1
- Your router’s IP (it will forward DNS requests)
Problem 5: Router Firmware Is Outdated
Older router firmware can have bugs that cause intermittent disconnections with static IP assignments. An AnandTech forum user reported their router kept disconnecting and reconnecting until they updated the firmware.
Fix: Log into your router, find the Firmware Update section (usually under System Tools or Administration), and check for updates. Install the latest version and restart the router.
Problem 6: VPN or Virtual Adapter Interference
If you have a VPN client installed (NordVPN, ExpressVPN, Tailscale, etc.), it may create a virtual network adapter that conflicts with your static IP settings. This is especially common on Windows.
Fix: Open Device Manager, expand Network Adapters, and look for virtual adapters from VPN software. Disable the ones you are not using. Alternatively, configure your VPN to use a specific adapter or split tunneling.
Problem 7: Connection Works on Ethernet but Not WiFi
Several forum users reported that their static IP works fine over Ethernet but drops over WiFi. This can happen if you set the static IP on the wrong adapter (Ethernet instead of WiFi) or if your WiFi adapter has power-saving features that periodically disable the connection.
Fix: Make sure you configured the static IP on the correct adapter. On Windows, disable WiFi power saving by going to Device Manager, right-clicking your WiFi adapter, selecting Properties, then Power Management, and unchecking “Allow the computer to turn off this device to save power.”
Problem 8: Router Crashes When Assigning Static IPs
Some older routers struggle when devices use static IPs that bypass DHCP. The router may crash or reboot when it detects an unknown fixed IP on the network.
Fix: This is another reason to use DHCP reservation instead of device-level static IP. If the problem persists, consider upgrading your router firmware or replacing an aging router.
How to Revert Back to DHCP (Safety Net)
If nothing works and you need to restore your internet connection quickly, revert to automatic DHCP. This is your safety net.
Windows: Open ncpa.cpl, right-click your adapter, select Properties, select IPv4, click Properties, and choose “Obtain an IP address automatically” and “Obtain DNS server address automatically.” Click OK.
macOS: Go to Network settings, select your connection, click Details, go to TCP/IP, and change Configure IPv4 back to “Using DHCP.”
Android: Go to WiFi settings, modify the network, and change IP settings from Static back to DHCP.
iOS: Go to WiFi settings, tap the “i” icon, and change Configure IP back to Automatic.
After reverting, restart your device. Your internet should work again immediately.
When Should You Use a Static IP?
Not every device needs a static IP. In fact, for most everyday devices (phones, tablets, laptops), DHCP works perfectly fine. Here are the scenarios where a fixed IP address actually matters.
Gaming Consoles (PS5, Xbox, Nintendo Switch)
If you play online games and want to set up port forwarding for better NAT types, your console needs a consistent IP address. A static IP (or DHCP reservation) ensures your port forwarding rules always point to the right device.
Home Servers and NAS Devices
If you run a home server, NAS (like Synology or QNAP), or a media server (like Plex), a static IP makes it easy to access the device consistently. You always know what address to type into your browser.
Network Printers
Network printers benefit from a static IP because your computers always know where to send print jobs. If the printer’s IP keeps changing, you will constantly need to reinstall or reconfigure it.
Remote Access and Port Forwarding
If you access your home network remotely (via VPN, remote desktop, or SSH), the target device needs a fixed IP so your port forwarding rules remain valid.
IoT Devices and Smart Home
Security cameras, smart home hubs, and other IoT devices often need a static IP for reliable communication with other devices on your network.
Network Ad Blocking (Pi-hole)
If you run a Pi-hole or similar DNS-based ad blocker, it needs a static IP so other devices on your network can use it as their DNS server consistently.
For all other devices (phones, tablets, laptops you carry around), stick with DHCP. It is simpler and more flexible.
Common Network Settings Reference
Here is a quick reference for common router brands and their default settings. These are the values most users need when setting up a static IP.
- TP-Link: Router IP: 192.168.0.1 or 192.168.1.1 | Default DHCP pool: 192.168.0.100-199 or 192.168.1.100-199 | Admin login: admin / admin
- Netgear: Router IP: 192.168.0.1 or routerlogin.net | Default DHCP pool: 192.168.0.2-254 | Admin login: admin / password
- ASUS: Router IP: 192.168.1.1 or router.asus.com | Default DHCP pool: 192.168.1.2-254 | Admin login: admin / admin
- Linksys: Router IP: 192.168.1.1 | Default DHCP pool: 192.168.1.100-149 | Admin login: admin / admin
- Xfinity: Router IP: 10.0.0.1 | Default DHCP pool: 10.0.0.2-10.0.0.253 | Admin login: admin / password
Always check your specific router model’s documentation, as these defaults can vary by firmware version.
FAQ’s
How do I set a static IP without losing internet connection?
Why does my device disconnect when I set a static IP?
What is DHCP reservation and how does it differ from a static IP?
How do I find my router’s DHCP pool range?
Is it safe to use a static IP on my home network?
How do I revert from a static IP back to DHCP?
Why does my static IP address keep changing?
Should I use a static IP or DHCP reservation for gaming?
Conclusion
Learning how to set a static IP for a device that keeps losing its connection comes down to understanding why the disconnection happens in the first place. Almost every case traces back to a DHCP pool conflict, a wrong gateway, or missing DNS settings.
The most reliable fix is DHCP reservation on your router. It gives you the benefits of a static IP without any of the conflict risks. If your router does not support reservations, set the static IP directly on your device using an address outside the DHCP pool, with the correct gateway and DNS servers filled in.
Remember the golden rule: pick an IP address outside your router’s DHCP pool range. Keep static addresses in the low range (like .10 to .49) and let DHCP handle the rest. Run a quick ping test to verify everything works, and if anything goes wrong, revert to DHCP to get back online immediately.
With these steps, your device should maintain a stable, persistent connection without dropping. Take five minutes to set it up properly, and you will not have to deal with this problem again.