How to Set a Static IP Address on a Mac
If you want to set your Mac to always have the same IP address (also known as a static IP address), you can easily configure this to be set in the Network settings of OS X. This can be valid for both wi-fi networks and wired ethernet networks, and it can also be set under a specific network location if desired.
We’ll walk through how to set a manual IP address in Mac OS X, this is the same in all versions of OS X system software so it will not matter what version is on your Mac.
Setting a Manual Static IP Address in OS X
- Launch System Preferences from the Apple menu
- Click on “Network”
- Click on the protocol you are using, let’s say we’re using Wi-Fi with a wireless connection so click on “Wi-Fi” so that the network interface is selected, and then click on the “Advanced” button in the lower right corner
- Click on the “TCP/IP” tab
- You now have multiple options for manual IP address assignment. For the sake of this exercise, let’s assume you want to maintain DHCP but set a manual static IP address, so click on the drop-down menu next to “Configure IPv4″ and select “Using DHCP with manual address”, but you can also use full manual mode by choosing “Manually”
- Select a static IP that will not conflict with anything else on the network. It’s best to pick a number far out of the normal range of assigned IP’s, in the example below we chose 192.168.0.245 because most of the machines on this network stop at 192.168.0.150
- After you have selected your static IP address, click on “OK” in the corner
- Click on the “Apply” button in the lower right corner
- Your IP will now manually set to the static address you provided, you will briefly disconnect from the network while this occurs
- Close Network settings and System Preferences
This is what a complete manual IP address assignment would look like in OS X Network settings:
This is what the DHCP with manual address setting would look like:
Now your Mac has a static IP address that will not change if the router resets or the Mac rejoins the network. As long as the IP does not collide with another network devices IP address, it will work just fine, this is why you pick an assigned IP far out of range of other potential devices.
There are other ways to achieve assigned static IP addresses of course, and ideally you would set a static IP to your hardware from the router itself by determining it’s MAC address, but that is a more advanced solution and also varies from router to router, making it impractical to cover here. Instead, the software based method in OS X works quite well, and is an easy way to always carry the same defined IP address on a given network.