How to Set a Static IP Address on a Mac

Illustration for How to Set a Static IP Address on a Mac

A static IP address gives your Mac the same local network address each time it connects to a particular network. To set one, open System Settings, choose Network, select your Wi-Fi or Ethernet connection, open Details, and enter the address under TCP/IP.

Before changing anything, write down your current settings or take a screenshot. An incorrect IP address, subnet mask, router address, or DNS setting can prevent your Mac from reaching the internet or other devices on your network.

Quick Answer

  1. Click Apple menu > System Settings.
  2. Select Network.
  3. Choose Wi-Fi or Ethernet, then click Details.
  4. Select TCP/IP.
  5. Set Configure IPv4 to Manually.
  6. Enter an unused IP address, Subnet mask, and Router address.
  7. Click OK, then Apply.

Use an address that belongs to your network but is outside the range your router automatically assigns, or reserve the address in your router’s settings. This helps prevent two devices from receiving the same address.

What a Static IP Address Does

Most home and office networks use DHCP, which automatically assigns an IP address to each connected device. The address can change when your Mac reconnects, the router restarts, or the DHCP lease expires.

A static IP address is entered manually and normally stays the same on that network. It can be useful when:

  • You access a Mac from another device on your local network.
  • A printer, scanner, server, or network storage device expects a fixed address.
  • You use port forwarding on a router.
  • A business, school, or home network requires specific addressing.
  • You are troubleshooting a network configuration.

A static local IP does not give your Mac a permanent public internet address. It only controls the address your Mac uses inside the connected network. It also does not improve internet speed by itself.

Before You Change the Network Settings

Identify the correct connection

Choose the connection your Mac actually uses:

  • Wi-Fi for a wireless network
  • Ethernet for a wired network
  • Another network service if your Mac uses a supported adapter or specialized connection

If you set a static address for Ethernet but normally use Wi-Fi, the change will not affect your active connection.

Check your current network details

Record the current values before making changes:

  1. Open Apple menu > System Settings.
  2. Click Network.
  3. Select the active connection, such as Wi-Fi.
  4. Click Details.
  5. Select TCP/IP.
  6. Note the current IP address, subnet mask, router, and whether Configure IPv4 is set to Using DHCP.

You can also use Network Utility alternatives such as the connection details shown in System Settings, but the values in TCP/IP are the most useful for this change.

Choose an appropriate address

Your static address must match the network’s address range. For example, if your Mac currently has an address such as 192.168.1.24, the network may use addresses beginning with 192.168.1.

Do not simply choose an address at random. First check your router’s DHCP range. If the router automatically assigns addresses from 192.168.1.2 through 192.168.1.100, an address such as 192.168.1.200 may be suitable, provided it is not already used by another device.

The safest options are:

  • Create a DHCP reservation in your router for your Mac’s hardware address.
  • Use an address outside the router’s DHCP range.
  • Ask your network administrator which address is available.

A DHCP reservation is often preferable because the router continues managing the address while ensuring your Mac receives the same one.

Set a Static IP Address in System Settings

The following method is the normal graphical way to configure a static IPv4 address.

1. Open the network settings

  1. Click the Apple menu in the upper-left corner.
  2. Select System Settings.
  3. Click Network in the sidebar.
  4. Select Wi-Fi or Ethernet, depending on your connection.
  5. Click Details next to the network service.

2. Open TCP/IP settings

  1. Select TCP/IP in the left sidebar.
  2. Find Configure IPv4.
  3. Open its menu and choose Manually.

Changing this setting stops your Mac from automatically receiving an IPv4 address from DHCP. Make sure you have the correct values before continuing.

3. Enter the network values

Enter the following information:

  • IP address: The fixed local address you want your Mac to use
  • Subnet mask: Commonly 255.255.255.0 on home networks, but use the value appropriate for your network
  • Router: Usually the local address of your router, such as 192.168.1.1

For example:

IP address:   192.168.1.200
Subnet mask:  255.255.255.0
Router:       192.168.1.1

These are examples only. Your network may use different values.

4. Save the changes

  1. Click OK.
  2. Click Apply if that button appears.
  3. Wait a few seconds for the connection to update.
  4. Test a website and any local network devices you use.

Your Mac may briefly disconnect while the new settings take effect. Save work in network-dependent apps before applying the change.

Configure DNS Separately if Needed

DNS translates website names, such as example.com, into IP addresses. DNS is separate from your Mac’s local IP address, but incorrect DNS settings can make the internet appear unavailable even when the local network connection works.

To review or change DNS:

  1. Open Apple menu > System Settings > Network.
  2. Select Wi-Fi or Ethernet.
  3. Click Details.
  4. Select DNS.
  5. Review the DNS servers listed under DNS Servers.
  6. Use the + button to add a server or the – button to remove one.
  7. Click OK, then Apply.

If your network administrator gave you DNS addresses, use those. Otherwise, leaving DNS controlled by the network is often the least complicated choice.

Use Terminal to View or Change the Configuration

Terminal is useful for checking the active network service or applying a configuration quickly. It is not necessary for most users, and a mistyped command can disconnect your Mac.

View the available network services

Open Terminal from Applications > Utilities, then run:

networksetup -listallnetworkservices

This lists services such as Wi-Fi and Ethernet. The exact names must be copied accurately into later commands. If a service name contains spaces, place it in quotation marks.

View the current settings

Replace Wi-Fi with the service you use:

networksetup -getinfo "Wi-Fi"

This displays the current IPv4 configuration, including the IP address, subnet mask, router, and DHCP status.

Set a manual IPv4 address

Use this command only after confirming the correct values:

sudo networksetup -setmanual "Wi-Fi" 192.168.1.200 255.255.255.0 192.168.1.1

What it changes:

  • -setmanual switches the service from automatic IPv4 assignment to manual configuration.
  • 192.168.1.200 is the chosen IP address.
  • 255.255.255.0 is the subnet mask.
  • 192.168.1.1 is the router address.
  • sudo may ask for your Mac login password because the command changes network settings.

Replace all example values with the ones appropriate for your network.

Safely reverse the Terminal change

To return the service to automatic DHCP:

sudo networksetup -setdhcp "Wi-Fi"

This tells your Mac to request an address from the router again. You can verify the result with:

networksetup -getinfo "Wi-Fi"

If you changed DNS manually and want to remove custom DNS servers, use the graphical DNS settings or set the service to use the network’s normal DNS configuration according to your organization’s instructions.

Troubleshooting a Static IP Address

The Mac has no internet connection

Check these values in System Settings > Network > [your service] > Details > TCP/IP:

  • The IP address is in the same range as the router.
  • The subnet mask matches the network.
  • The router address is correct.
  • The address is not already assigned to another device.

For example, 192.168.1.200 cannot normally use 192.168.0.1 as its router because those addresses belong to different common network ranges.

If you are unsure, return Configure IPv4 to Using DHCP. If the connection immediately works again, the manual values were incorrect or conflicted with another device.

The Mac connects to Wi-Fi but websites do not load

This often indicates a DNS or router problem rather than a Wi-Fi problem.

  1. Confirm that the Router field contains the router’s actual local address.
  2. Open the DNS section and remove an incorrect custom server.
  3. Test a local device, such as a network printer.
  4. Temporarily return to Using DHCP to compare the results.

If local devices work but websites do not, review DNS settings. If neither local devices nor websites work, review the IP address, subnet mask, and router.

Another device has the same IP address

An IP conflict occurs when two devices use the same local address. Symptoms can include intermittent connections, failed file sharing, or a connection that works and then stops.

Change the Mac to an unused address, or create a DHCP reservation in the router. Do not continue using an address that another device already occupies.

The static address works on one network but not another

Static settings are tied to the network where they were configured. A value that works at home may be invalid at work, school, or a hotel because those networks can use different address ranges, routers, and security rules.

Use Using DHCP when moving between networks, or create separate network locations if you regularly switch between networks that require different settings.

The Mac cannot reach a local printer or server

Confirm that the printer or server is online and that its address is correct. The Mac and the device must normally be on compatible local network ranges. Also check whether the network separates wireless clients from wired devices or blocks device-to-device communication.

If the device’s address changed, update the saved printer or server configuration rather than changing the Mac’s address unnecessarily.

How to restore the original settings

Return to:

Apple menu > System Settings > Network > [your service] > Details > TCP/IP

Set Configure IPv4 to Using DHCP, then click OK and Apply. This restores automatic address assignment. If you also changed DNS, review the DNS section and remove any entries that were added specifically for the static configuration.

Frequently Asked Questions

Does a static IP make my internet faster?

No. A static local address does not normally increase speed. It only ensures that your Mac uses a predictable address on the local network.

Should I use a static IP or a DHCP reservation?

A DHCP reservation is usually easier to manage on a home network because the router assigns the same address automatically. A manually entered static address can be appropriate when your network administrator specifically requires it.

Can I use any IP address I want?

No. The address must match the network’s range, must not be used by another device, and should not conflict with the router’s DHCP pool or reserved addresses.

Does this change my public IP address?

No. This changes your Mac’s local IPv4 address. Your public internet address is controlled by your internet service provider or network connection.

Do I need to set a static IPv6 address too?

Usually not unless your network administrator requires it. Many networks manage IPv6 automatically. Change IPv6 settings only when you have specific values and instructions for that network.

Will the setting remain after I restart my Mac?

Normally, yes. The manual setting remains assigned to that network service until you change it back to DHCP or edit the values.

Final Thoughts

Set a static IP address only when you need a predictable local address or your network requires one. Record the original settings, use an address that does not conflict with DHCP, and return to Using DHCP if the connection stops working. For many home networks, a router-based DHCP reservation provides the same consistency with less manual configuration.