Devices
How to Set a Static IP Address on Mac
Devices · 5 min read · Updated November 18, 2026
To set a static IP address on a Mac, open System Settings, then Wi-Fi, click Details next to your network, open the TCP/IP tab, and change Configure IPv4 from Automatically to Manually. Then type in the address, subnet mask, and router, and click OK.
A static IP gives your Mac the same private address every time it connects, which is handy for a home server, a printer setup, or remote access. It does not change your public IP, and it takes about two minutes.
Before you start: pick an address that will not clash
A static IP only works if no other device is using the same address. If you pick one your router already handed to another device, you get an IP conflict and both devices lose the connection. The safe way is to pick an address inside your network's range but outside the range your router hands out automatically.
First, find your Mac's current address and your router's address. Our guide to finding your Mac's IP shows both: your address is usually something like 192.168.1.5 and the router is usually 192.168.1.1. Keep the same first three numbers and change only the last one. If your Mac is on 192.168.1.5, a good static choice is 192.168.1.50, a number most routers do not hand out on their own.
If you can log in to your router, check its DHCP range and pick a number outside it. Better still, reserve the address in the router's settings for your Mac. That way the router never gives it to anyone else, and your Mac keeps the same address even if you switch it back to automatic later. Our static IP explainer covers the difference between a manual setting and a router reservation.
Method 1: System Settings
Click the Apple menu, then System Settings, then Wi-Fi. Click Details next to your connected network and open the TCP/IP tab. Change Configure IPv4 to Manually.
Three fields appear. In IP Address, type the address you picked, for example 192.168.1.50. In Subnet Mask, type 255.255.255.0. In Router, type your router's address, usually 192.168.1.1. Click OK, and your Mac starts using the new address right away. There is no restart needed.
If you connect by cable instead of Wi-Fi, the path is the same but under Network instead of Wi-Fi: System Settings, Network, pick your Ethernet adapter, click Details, then TCP/IP.
Method 2: Terminal (one command)
If you prefer the command line, open Terminal and run this, replacing the numbers with your own: networksetup -setmanual Wi-Fi 192.168.1.50 255.255.255.0 192.168.1.1. The four values are your address, subnet mask, and router, in that order.
To check that it worked, run: ipconfig getifaddr en0. It should print the address you just set. To switch back to automatic later, run: networksetup -setdhcp Wi-Fi.
On older macOS versions the same screens live under System Preferences instead of System Settings. The path is System Preferences, Network, Wi-Fi, Advanced, then the TCP/IP tab, and the steps are identical from there.
If the internet stops working after the change
The most common mistake is a wrong router number. Your Mac can talk to your home network but not the internet, because it is sending traffic to the wrong door. Double-check the Router field against the address shown in your router's own status page or in the default gateway guide.
The second most common mistake is a conflict: another device already has the address you picked. Your Mac will warn you, or the connection will simply fail. Pick a different last number and try again.
If you are stuck, switch Configure IPv4 back to Automatically and click OK. Your Mac will ask the router for a normal address again, which is the same fix as renewing the lease. You lose nothing by reverting, and you can try again once you know the right numbers.
Frequently asked questions
Does setting a static IP on my Mac change my public IP?
No. A static IP only fixes your private address on your home network. Your public IP, the one websites see, is set by your router and your internet provider, and it stays the same. Our guide on [public vs private IP addresses](/guides/public-vs-private-ip-address) explains the difference.
What static IP address should I pick for my Mac?
Keep the first three numbers of your current address and change only the last one. If your Mac is on 192.168.1.5, use something like 192.168.1.50. Pick a number outside your router's automatic range if you know it, or reserve the address in the router so it is never handed to another device.
Is it better to reserve the address in the router instead?
Yes, usually. A router reservation gives your Mac the same address every time without changing any settings on the Mac itself, and it cannot cause a conflict. Manual settings on the Mac are the better choice only when you cannot log in to the router.
Will a static IP break my Mac on other Wi-Fi networks?
Yes, it can. A static address is set per network, so it only applies to the network you configured. But if that network's address range does not match your home network, your Mac may fail to connect until you switch it back to automatic. For a laptop that travels, a router reservation is the safer option.
How do I switch my Mac back to an automatic IP address?
Open System Settings, Wi-Fi, Details next to your network, TCP/IP tab, and change Configure IPv4 back to Automatically, then click OK. In Terminal, the same thing is networksetup -setdhcp Wi-Fi.
Can I set a static IP on a Mac running an older macOS?
Yes. On versions that still use System Preferences, go to System Preferences, Network, pick Wi-Fi or Ethernet, click Advanced, then open the TCP/IP tab. Change Configure IPv4 to Manually and enter the same three values: address, subnet mask, and router.