How to Assign Static IP Address to Your Devices

By default, your router assigns dynamic IP Address to every device that connects to it. This is called DHCP (short for Dynamic Host Control Protocol). But sometimes, we need our devices to have the same IP address (i.e. Static IP) every time it connects to the network. Reason being,

What IP address should you choose?

If two devices on the network have the same IP address, then there will be conflicts. The Internet won’t work on one of them or both, depending on your router. So, it’s important to assign a unique IP address to your computer. There are a couple of ways to pick an unused IP address.

For instance– firstfind your device’s IP address, say it’s192.168.1.7; then keep the first three values (i.e. 192.168.1) as it’s and replace the last digit with some far number like192.168.1.222. Though verify the last digit should be between a0-255range.

IP address

Assigning Static IP address to most devices is easy, just go to its network settings, look for DHCP option and turn it OFF. Once you do that, you’ll see a text area to enter Static IP address. Enter the new IP address there, save changes and that’s it.

So let’s see how to Assign Static IP address to various Operating Systems

adapter_name_command_line

1. Assign IP Address on Windows 10/8/7

You can do this quickly through the command line. You will need to first find your subnet mask, default gateway, and network adapter name. In my case, I’m on a Wi-Fi network, so the adapter name is Wi-Fi. To find yours just type the following command.

Once you get the output, find for theNetwork Adapterwhich has IP listed under it. The adapter name is a one-word name suffixed to the end of the Network Title. You will also need theSubnet maskand theDefault GatewayAddress.

staticIP_cmd

Once you have the adapter name, Subnet Mask and Default Gateway, run the following command.

Wherein, Wi-Fi should be replaced by your adapter name and the IP, subnet mask and gateway address according to your configuration.

Network_Sharing_Center_Start_Menu

This will change your IP address from DHCP to manual with the static IP address you have specified.

In case you find it too confusing, you are not alone. you’re able to do the same via GUI which is much more intuitive. You’ll need theSubnet Mask and Default Gateway Address. You can refer to the above step on how to find these details. Once you have noted down the address, click onStartMenu and type inNetwork and Sharing Center.Click once you see the Network and Sharing Center Icon.

RightClickOnStartMenu_Windows10

Alternatively, if you are in Windows 10 then you can right-click on the Start menu and click on “Network Connections“.

A new window will open, click onChange Adapter Options.

Right Click on yourCurrent Network Adapter ( like WiFi)and chooseProperties.

When the new window pops up, selectInternet Protocol Version 4(TCP/IPv4)and click onProperties.

Once you get the pop-up window, select “Enter the IP address you want” and fil the IP Address, ForSubnet Mask, andDefaultGatewayAddress enter the values that you have noted down previously. Next, click on OK to save changes.

To switch to dynamic IP, click on Obtain the IP address automatically. Once this is enabled, your system will start picking an IP address dynamically from the router.

2. How to setup static IP on Ubuntu

On Ubuntu, you’re able to set a static IP Address via the terminal or GUI. Firstly, let’s start with the command line. Right-click anywhere on the desktop to open the terminal.

Once the terminal window opens, we need to run a command. We need the subnet mask and network adapter name in order to set a static IP and to get that, run the following command on the terminal.

Once you have the subnet mask noted down, in my case, it’s 255.255.255.0, we can proceed further.

It is pretty simple and straight forward. We need to open the Network Adapter settings. To do that, click on the Network Icon at the top right corner of the desktop.

Now, navigate on the active network and click on the expand button for more options. Click onWired Settingsto open the Network menu.

Once you get the Wired Settings dialogue, make sure you are on the Network page. Click on the Settings icon beside the active network to open the adapter properties.

When you get the pop-up, navigate to the IPv4 tab to change the IP settings.

On the IPv4 tab, select the radio button which says “Manual“. Some text fields will appear, you need to enter the IP address, Netmask and Gateway accordingly. Once it is validated, you may click onthe Applybutton to register the changes.

Again you need to restart the network for the changes to take effect. You can do it manually via command line or just switch off and switch on the Network adapter. Once done, runifconfigon the terminal to check the IP address. It should be the same IP address which you have specified earlier.

3. How to setup static IP on Mac

If you are on macOS, setting static IP is quite similar to that of Ubuntu. But, here you don’t need the subnet mask or Default Gateway Address. Right click on the apple icon at the top left corner of the desktop. Click onSystem Preferencesfrom the dropdown list.

Once the System Preferences dialogue box displays, navigate toNetworkand click on it to open the Network Settings

Alternatively, you can also hit Cmd+Space to trigger the Spotlight search. Type “Network” in the search bar and click on the icon once it appears. This will directly navigate you to the Network Settings.

From the pop-up window, select an active network interface. For example, I am connected to a WiFi network so my active network isWi-Fi.Make sure you are on the active network tab and then click onAdvanced.

A new window will open the configuration settings for that adapter. Move over to the IP settings by clicking on theTCP/IP tab.

From the Configure IPv4 menu, chooseUsing DHCP with manual address.Enter a static IP address in the IPv4 Address and leave the Subnet Mask and Router field as default. Click Ok to save the changes.

Now when you do an ifconfig, the system should be using the static IP you have defined in the previous times. If the IP’s have not changed, try restarting the Wi-Fi and it should fix it.

To switch back to dynamic IP, move back to “Using DHCP” from the Configure IPv4 menu.

4. How to setup static IP on Android

Setting a static IP can be natively done on Android. But the way to do it might be different on every phone due to the manufacturer skin. We will see how to do it on Pixel3 and the process should be similar on other phones as well. So head over to theSettingsmenu and tap on “Network & Internet”.On top of the menu, you will see Wi-Fi, tap on it to get to the Wi-Fi Settings.

The network which you are connected to should be on top of the list. Tap on the settings icon beside the Wi-Fi network name.

Once the pop-up opens, you will see IP settings at the bottom of the menu. The default option is “DHCP”. Tap on it to change the IP configuration.

Select “Static” from the presented drop-down menu. Enter thedesired IP addressand leave the other options as default. Make sure that other devices are not using the same IP. you may see the IP address of the other devices in your network by using a small utility calledFing. For a detailed process, check our article onhow to find the IP Address of any Device on your network. Once you have entered the IP, click onSaveto register the change. Now, your Android phone should start using the desired IP Address.

In almost all the Android version, you get the option to set static IP Address. For some rare older Android versions, you can use a third-party app likeWiFi Static. It’s free and it doesn’t require ROOT.

To switch back to dynamic IP, repeat the same procedure and select “DHCP” from the IP settings instead.

5. How to setup static IP on iPhone and iPad

If you are using an iPhone or iPad, then you may set static IP Address natively. You would need the Subnet Mask of your network. This can be obtained from the Wi-Fi settings and we would see to it in the further steps. To get started, click on theSettings iconin the dock to get to the Settings menu.

Now on the Settings menu page, tap onWi-Fito get to the Wi-Fi settings.

On the Wi-Fi page, you should see your connected Wi-Fi network at the top. Click on the“i”button beside it. This will open the Wi-Fi configuration window.

Once the Wi-Fi settings page appears, you will see an option called “Configure IP“. By Default, this would be set to automatic. Just below this option, you will see “Subnet Mask“, note it down as we will need it in the further steps. to set static IP, we need to change Configure IP it to Manual. Tap on it and it will open the IPv4 settings page.

There should be 3 options available on the “Configure IPv4” page. Select “Manual” from it. As soon as Manual IP is enabled, you will get extra text fields at the bottom to enter the IP Address, Subnet Mask, Router. We need to fill in the IP Address of our choice and Subnet Mask which we noted down in the previous step. Now, after you fill both the fields, the save button at the top right corner will be enabled. Click on it to save the static IP configuration.

Now, when you return to the Wi-Fi settings page, you will see your device is using the Static IP address. This should be the same IP address we have set in the IP configuration menu.

This static IP address will be applicable only to that particular Wi-Fi network. In case, you connect to some other Wi-Fi network the IP will change accordingly.

6. How to setup static IP to any Device from Router

Other network devices like yourWireless Printer, PS4, NAS, IP Camera, Raspberry Pi, etc. do not have an Interface. Hence, to configure the network, either you have to connect remotely or use the router. If you have access to the router, setting Static IP for network devices is the easiest and convenient way. I would recommend this method over any other.

So, to assign a Static IP Address to any network device, you need to login to the web portal of the router. The web portal address, username, and password are mostly printed behind the router. In case you don’t have physical access to the router, the web portal URL is mostly the PC’s gateway address. To find that, open command prompt and type the following command.

Once you have the web portal loaded, log in with the credentials. Now every router has a different web UI, but the overall structure is the same. Basically,  you will have to link the IP Address to theMac Address and Hostnameof the device. So, we need to find the MAC address & Hostname of the network device. To do that, look forDHCP client listwhich should look something like the following screenshot.

You can get your MAC Address & Hostname under DHCP Client list. Once, you have the MAC address & Hostname noted down, we can proceed further. On most of the routers, you will have the option to set a Static IP under the sectionIP Mac binding or DHCP Static IPoption. In case you are on a custom ROM like dd-wrt, head over to Services tab and you will haveDHCP Server. Under DHCP Server, add an entry for Static Leases by clicking on the Add button.

Clicking on theAdd buttonwill create a new row. You have to enter theMAC Address, Hostname, desired Static IP and Lease time. Lease time is a unit in minutes after which your IP will be renewed. Since we are adding only 1 entry for the particular host the IP will be the same even after the renewal. Once, done click onSave changes.

Once you have configured successfully on the router, just restart the Wi-Fi on the device. When it connects it should start using the static IP. In case of issues, make sure that you have the correct MAC Address and Hostname. To check, just run the command ipconfig or look back again in the router’s DHCP client list.

These changes are written to the ROM so restarting the router won’t make changes to the static IP configuration. to get back to Dynamic IP, just remove the entry from the IP leases.

What’s next

Once you have started configuring the IPs on Router and network devices, you are good to go configure telnet and SSH. Have a look at our brief article onHow to Enable Telnet Server in Windows 10,Best SSH clients for iOS To Manages Remote Serversand6 Best FTP Clients For Android. A word of caution would be to note down the static IPs assigned to devices as assigning the same IP to two network devices would render them useless.

Also Read:How To Change DNS on Windows|Mac|Android|iOS

Mrinal Saha

Mrinal is a tech geek who spends half of his day reading and writing about tech. While the nights are spent on shooting or editing YouTube videos. Feel free to geek out with him on-

Is New Camera Coach Feature on Pixel 10 Worth The…

What’s Coming and Leaving Hulu Soon (August 2025)

What’s Coming to Apple TV+ in August 2025

Today’s Jumble Answers (June 25, 2025)

Longest Snapchat Streak (August 2025) – And How to Keep…

Samsung One UI Status Bar Icons and Symbols Meaning

Safari Icons and Symbols Meaning – Complete Guide

What Do Icons and Symbols Mean on Slack? Complete Guide

Coffee Meets Bagel (CMB) Icons and Symbols Meaning? Complete Guide

What Do Icons and Symbols Mean on OkCupid? Complete Guide

You must belogged into post a comment.