keepcalculator

06 Numbers and Powers

Set Static IP Address Mac: Step-by-Step Guide

Card No. 06·84598 · Updated · Standard formula, shown below

To set a static IP address on a Mac, open System Settings > Network, select your active connection (Wi-Fi or Ethernet), click Details, switch to TCP/IP, change Configure IPv4 to Manual, enter your desired IP address, subnet mask, and router, then click OK and Apply. This guide walks through the exact steps for macOS Ventura and later, explains how to choose a safe IP, and covers common problems you might hit.

Why Set a Static IP on a Mac?

Most home and office networks use DHCP (Dynamic Host Configuration Protocol), which automatically assigns your Mac an IP address when it connects. That address can change over time, which is fine for browsing but causes issues for certain tasks:

  • Port forwarding: If you forward a port on your router to your Mac (for a game server, security camera, or remote access), the forwarding rule points to a specific IP. When that IP changes, the rule breaks.
  • Network sharing: Other devices on your network that connect to your Mac by IP address (like a NAS, printer, or another computer) will lose the connection when the IP changes.
  • Stable SSH or remote desktop: If you SSH into your Mac from outside, you need a consistent IP to connect to.
  • Running servers: Web, file, or game servers hosted on your Mac need a permanent address so clients can find them.

For most casual users, DHCP is perfectly fine. Only set a static IP if you have a specific need, because it requires manual configuration and can cause connection issues if done incorrectly.

How Static IPs Work on macOS

An IP address (like 192.168.1.50) identifies your Mac on a network. The subnet mask (usually 255.255.255.0) defines which part of the address is the network and which is the host. The router (often 192.168.1.1) is the gateway that connects your local network to the internet.

When you set a static IP, you’re telling your Mac to use a specific address instead of asking the DHCP server (usually your router) for one. macOS stores this configuration in the network interface settings, and it will keep using that address until you change it or switch back to DHCP.

There’s also a middle-ground option: DHCP with manual address. This lets you specify an IP but still get other settings (like DNS servers) from DHCP. It’s useful if you only need a fixed IP for port forwarding but want to keep automatic DNS.

Step-by-Step: Set a Static IP on macOS Ventura and Later

  1. Open System Settings (Apple menu > System Settings, or click the Apple logo in the top-left and select System Settings).
  2. Click Network in the sidebar.
  3. Select your active connection on the right: Wi-Fi or Ethernet (if you’re using a wired connection).
  4. Click Details next to the connection name.
  5. In the sheet that appears, click TCP/IP in the left column.
  6. Next to Configure IPv4, change the dropdown from Using DHCP to Manual.
  7. Enter your desired IP address, Subnet mask, and Router (gateway) in the fields that appear. (See the next section for how to choose these.)
  8. Click OK, then click Apply in the Network settings.
  9. Your connection will drop briefly and reconnect with the new static IP. To verify, click Details again and check the IP address, or open Terminal and type ipconfig getifaddr en0 (for Wi-Fi) or en1 (for Ethernet).

If you’re on an older macOS (Monterey or earlier), the steps are similar but in System Preferences > Network, then select the connection and click Advanced > TCP/IP.

How to Choose a Safe Static IP Address

The most common mistake is picking an IP that’s outside your network’s range or conflicts with another device. Here’s how to avoid that:

  • Find your current IP and router: Go to System Settings > Network > Details > TCP/IP. Note the current IP (e.g., 192.168.1.10) and the Router (e.g., 192.168.1.1).
  • Stay in the same subnet: Keep the first three numbers the same as your current IP (e.g., 192.168.1.x). If your router is 192.168.0.1, use 192.168.0.x.
  • Pick a high number: Use a number between 100 and 200 for the last octet (e.g., 192.168.1.150). This avoids the low range where DHCP typically assigns addresses (often 2-100) and reduces collision risk.
  • Don’t use .1 or .255: .1 is usually the router itself, and .255 is the broadcast address. Both are reserved.
  • Check for conflicts: Before applying, you can ping the chosen IP from Terminal (ping 192.168.1.150). If you get a reply, another device is using it—pick a different number.
  • Use the same subnet mask as your current one: Usually 255.255.255.0 for home networks. Don’t change it unless you know what you’re doing.

If you’re unsure, the safest approach is to use DHCP with manual address instead of Manual. That way, macOS asks the router for an IP but you can specify which one, and the router will usually honor it if it’s free.

Common Problems and How to Fix Them

Even with careful setup, things can go wrong. Here are the most frequent issues and their fixes:

  • No internet after setting static IP: Double-check the Router field. It must match your actual gateway (usually 192.168.1.1 or 192.168.0.1). Also verify the subnet mask is correct (typically 255.255.255.0).
  • IP address conflict warning: This means another device on the network is using the same IP. Change to a different number, or temporarily disconnect the other device.
  • Can’t connect to the network at all: You may have entered an IP outside your subnet. Make sure the first three octets match your router’s IP, and the last octet is between 1 and 254.
  • Static IP works but DNS fails: If you can browse by IP but not by name, your DNS settings are wrong. Go back to Details > DNS and either set it to automatic or use a public DNS like 8.8.8.8 and 8.8.4.4.
  • Changes don’t stick after reboot: Some VPN or security software can override network settings. Try disabling them temporarily, or re-apply the static IP and restart.
  • Wi-Fi vs Ethernet: Remember that each interface (Wi-Fi and Ethernet) has its own settings. If you set a static IP on Wi-Fi, it won’t apply to Ethernet.

If you’re stuck, the quickest fix is to switch back to Using DHCP and let the network sort itself out. You can always try again later.

Static IP vs. DHCP Reservation

There’s a better alternative to setting a static IP on your Mac: a DHCP reservation on your router. This tells the router to always assign the same IP to your Mac based on its MAC address (a unique hardware identifier).

Advantages of DHCP reservation:

  • No risk of IP conflicts because the router manages the pool.
  • You don’t have to configure anything on your Mac—it stays on DHCP.
  • If you take your Mac to another network, it won’t have a static IP that might not work there.

To set this up, log into your router’s admin page (usually at 192.168.1.1 or 192.168.0.1), find the DHCP reservation or address reservation section, and add your Mac’s MAC address (found in System Settings > Network > Details > Hardware) along with the IP you want. The exact steps vary by router, so check your router’s manual.

For most people, DHCP reservation is the better choice. Only use a manual static IP if you specifically need the IP set on the Mac itself (e.g., for a server that must keep the same IP even if the router changes).

How to Reset Back to DHCP

If you want to undo your static IP and go back to automatic, it’s simple:

  1. Go to System Settings > Network > Details > TCP/IP.
  2. Change Configure IPv4 back to Using DHCP.
  3. Click OK, then Apply.
  4. Your Mac will request a new IP from the router and reconnect.

If you used DHCP with manual address, switch back to Using DHCP as well. After that, you can verify your IP changed by checking the TCP/IP tab or using Terminal.

Frequently Asked Questions

What IP address should I use for my Mac?

Use an address in the same subnet as your router, but outside the DHCP pool. A common safe choice is 192.168.1.150 if your router is 192.168.1.1. Avoid low numbers and don’t use .1 or .255.

Will setting a static IP speed up my internet?

No. A static IP doesn’t change your internet speed or latency. It only affects how your Mac is addressed on the local network. Speed is determined by your ISP and Wi-Fi signal.

Can I set a static IP on a Mac without a router?

If you’re connecting two Macs directly with an Ethernet cable, you can set manual IPs on both (e.g., 192.168.2.1 and 192.168.2.2) with a subnet mask of 255.255.255.0. But for internet access, you need a router or gateway.

Why does my Mac keep losing the static IP after sleep?

This can happen if the router’s DHCP server assigns the same IP to another device while your Mac is asleep. A DHCP reservation prevents this. Also, check that you’re not using a VPN that changes network settings.

Is it safe to set a static IP on a public Wi-Fi network?

No. Public networks (coffee shops, airports) often use strict DHCP and may block manual IPs. You could lose connectivity entirely. Only set a static IP on networks you control.

What’s the difference between a static IP and a static route?

A static IP is your device’s address. A static route is a rule in the routing table that tells your Mac how to reach a specific network. They’re unrelated; you only need a static IP for the tasks described above.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →