How to set static IP on Mac
Complete guide with multiple methods and troubleshooting
7-10 min read
Expert Verified
Last Updated: August 2025
Quick Answer
Setting a static IP address on a Mac is a straightforward process that can be accomplished through the System Preferences. This guide provides detailed instructions for various macOS versions, ensuring that users can maintain a consistent IP address for their devices.
Medium⏱ 7-10 min read
Prerequisites & Requirements
Before setting a static IP on your Mac, ensure you have the following:
- •A Mac running macOS (10.15 Catalina or later is recommended)
- •Access to the network settings and administrative privileges on the Mac
- •Knowledge of the network's IP address range and subnet mask
- •Backup of important network configurations if necessary
Method 1: Using System Preferences
This method is the most common way to set a static IP address on a Mac. It is user-friendly and does not require command-line knowledge.
- •Step 1: Click on the Apple menu in the top-left corner of the screen and select 'System Preferences'.
- •Step 2: In the System Preferences window, click on 'Network'.
- •Step 3: Select the network interface you are using (e.g., Wi-Fi or Ethernet) from the left sidebar.
- •Step 4: Click on the 'Advanced...' button located at the bottom right of the window.
- •Step 5: In the new window, navigate to the 'TCP/IP' tab.
- •Step 6: From the 'Configure IPv4' dropdown menu, select 'Manually'.
- •Step 7: Enter your desired IP address, subnet mask, and router address. For example: IP Address: 192.168.1.100, Subnet Mask: 255.255.255.0, Router: 192.168.1.1.
- •Step 8: Click 'OK' to close the advanced settings, then click 'Apply' to save your changes.
- •Step 9: To verify it worked, open 'Terminal' and type 'ifconfig' to check if the static IP is set correctly.
- •Step 10: If it doesn't work, ensure that the IP address is not already in use by another device on the network.
For macOS Monterey (12) and later
The interface remains largely the same, but ensure you are familiar with any new features introduced in the latest version.
- •Step 1: Follow the same steps as outlined above, as the process is consistent across versions.
For macOS Big Sur (11) and earlier
The steps are similar, but the visual layout may differ slightly.
- •Step 1: Ensure you are looking for the same options, as the terminology and layout have remained consistent.
Method 2: Using Terminal
This method is suitable for advanced users who prefer command-line operations.
- •Step 1: Open 'Terminal' from Applications > Utilities.
- •Step 2: Type the following command to set a static IP: 'sudo ifconfig en0 192.168.1.100 netmask 255.255.255.0'. Replace 'en0' with your network interface (use 'ifconfig' to check).
- •Step 3: Enter your password when prompted.
- •Step 4: To verify, type 'ifconfig' and check the assigned IP address.
- •Step 5: If it doesn't work, ensure you have the correct interface name and that the IP is not in use.
Troubleshooting Common Issues
If you encounter issues when setting a static IP, consider the following solutions:
- •Error: 'IP address already in use' - Solution: Change the static IP to an unused address within your network range.
- •Issue: Unable to connect to the internet after setting a static IP - Fix: Double-check the subnet mask and router address.
- •Problem: Static IP not retained after reboot - Workaround: Ensure you have saved the settings in System Preferences.
Advanced Tips & Shortcuts
For power users, here are some tips to enhance your experience:
- •Keyboard shortcut: Command + Space - Opens Spotlight for quick access to applications like Terminal.
- •Command line: 'networksetup -setmanual Wi-Fi 192.168.1.100 255.255.255.0 192.168.1.1' - Sets a static IP via Terminal for Wi-Fi.
- •Hidden feature: Use 'networksetup -listallhardwareports' to find all network interfaces and their names.
Common Mistakes to Avoid
Avoid these common pitfalls:
Expert Tips
For the best results, always document your network settings to avoid confusion in the future.