How to set up a static IP address
A static IP address can facilitate remote access solutions and enhance network security. Setting up a static IP address is a simple process on most operating systems. In this article, we’ll provide step-by-step instructions for configuring a static IP on all popular systems, as well as using your router.
Contents
- Why use a static IP address?
- How to set a static IP address in MacOS
- How to set a static IP address on Windows 10 and 11
- How to set a static IP address on Android
- How to set a static IP address on iOS
- How to set a static IP address on Linux
- How to set a static IP address on Raspberry Pi
- How to set a static IP address through a router
Why use a static IP address?
A static IP address can be useful for remote access systems, like virtual private networks (VPNs) and proxy servers.
Unlike dynamic IP addresses, which most devices use, static IPs don’t change. If you’re setting up your own server — for example, if you want to host work resources for employees to access remotely — being able to designate a dedicated IP address can be useful.
Static IP addresses are also great for virtual private networks (VPNs). If some members of your team work from home while others are in the office, you can host programs and sensitive files on a (with a static IP address), to which team members can connect with a VPN client (an application on their device). Now everyone has secure access to the same resources, wherever they are based. Services like NordVPN also offer their own dedicated IPs which can be used for work purposes.
On some occasions, you may need to change or reset your IP address to resolve errors and other problems, including the IP address conflict on Windows. That’s another way in which being able to change your IP settings is useful.
How to set a static IP address in MacOS
- Open “About Mac” and select “System preferences.”
- Select “Network” and then choose the network you’re using.
- Select “Advanced.”
- Select “TCP/IP.”
- Select “Configure IPv4” > “Manually.”
- Open “System preferences” > “Network.”
- Select “Advanced” > “TCP/IP” > “WiFi.”
- In the IPv4 address field, input the IP address you want to be static.
- Select “Apply.”
How to set a static IP address on Windows 10 and 11
- Open “Settings” on your computer.
- Select “Network and internet.”
- Select your current connection.
- Select “Manage known networks” > “Properties” > “IP settings.”
- Select “Edit.”
- Select “Manual.”
- Select “IPv4” and switch it to “On.”
- Input the IP address you want to be static.
- In the “Subnet prefix length” field, input “24.”
- Type “ipconfig/all” into the window and input your gateway information.
- Select “Save.”
How to set a static IP address on Android
- Open “Settings” and select “Connections” > “Wi-Fi.”
- Select the gear icon which appears beside your current network.
- Select “IP settings” > “Static.”
- Input your static IP address.
- Select “Save.”
How to set a static IP address on iOS
- Open “Settings” and select “Wi-Fi.”
- Select “Network.”
- In “IPv4” select “Configure IP” > “Manual.”
- Input your static IP address.
Check out our video on how to set up a static IP on MacOS, Windows, Android, and iOS below.
How to set a static IP address on Linux
Input the “ifconfig” command, the name of your network interface, and your preferred static IP address.
$ ifconfig [interface name] [ip address]
For example, let’s say your network interface is called “etho1” and you want to set your IP address to “00.000.00.000” (for obvious reasons, this is not a real IP address). To do this, you would run the following command:
$ ifconfig etho1 00.000.00.000
To verify that the new IP address has been set, run the “ifconfig” command with the name of your network interface. Sticking with the interface name from the example above, it would look like this:
$ ifconfig etho1
How to set a static IP address on Raspberry Pi
A Raspberry Pi computer is a single board computer that’s extremely cost-effective and versatile. Here’s how you can set up a static IP address for the tiny computers.
- Click the Wi-Fi icon on the menu bar.
- Select “Wireless & wired network settings” and open the empty dropdown menu.
- Select a network interface.
- In the “IPv4 address” field, input your static IP address.
- In the “Router” field, input your router’s IP address.
- In “AS DNS servers” input “8.8.8.8.”
- Select “Disable IPv6.”
How to set a static IP address through a router
You can set a static IP address through your router for any device on its network. To do this, you’ll need the MAC address of whatever device you want to configure with a static IP address, and that device must be connected to the router.
NOTE: Different router brands use different systems, so these instructions won’t relate exactly to your router.
- Access your router’s configuration page (this can be done by typing your router’s current IP address into your browser search bar)
- Navigate to a section on the configuration page with a name like “LAN setting,” “static IP addresses,” or “DHCP reservations”
- Input the MAC address of a device on the router’s network
- Input the static IP address you wish to assign to that device
- Save changes
Want to read more like this?
Get the latest news and tips from NordVPN.