How to configure a static IP on Windows 10 or 11

Do you need to switch from a dynamic to a static IP address configuration on Windows 11 or 10? Here's how.

Windows 11 static IP

  • Windows 11 static IP
  • Windows 10 static IP

On Windows, the router's Dynamic Host Configuration Protocol (DHCP) server is (usually) responsible for assigning a dynamic Transmission Control Protocol/Internet Protocol (TCP/IP) configuration to every device in the network, including to your computer running Windows 11 or Windows 10.

Although a dynamic IP address is the recommended configuration for most situations, you may need to change to a static IP address if you're thinking about setting up a printer or file sharing, or you have to configure port forwarding on the router to your computer.

The reason is that a dynamic network configuration can change at any time after the lease from the DHCP expires and if the address changes, network resources you may have configured will stop working. Setting a static IP address will always stay the same on the computer, allowing a more reliable experience sharing resources in the network or forwarding ports.

Whatever the reason, on Windows 10 and 11, you have many ways to configure a static TCP/IP address, including using the Settings app and Command Prompt.

This guide will walk you through the different ways to configure a static network configuration on Windows 11 and 10.

How to set a static TCP/IP network configuration on Windows 11

On Windows 11, you can change your computer's dynamic IP configuration to static in at least two ways through the Settings app or commands.

Configure IP from Settings app

To assign a permanent TCP/IP configuration on Windows 11, use these steps:

  • Open  Settings .
  • Click on  Network & internet .
  • (Optional) Click on Advanced network settings .
  • Under the "More settings" section, click on Hardware and connection properties.
  • Note the current IPv4 ,  Subnet mask ,  Default Gateway , and  DNS server addresses to determine the new configuration, as it has to be in the same network scope.
  • Click the  Ethernet  or  Wi-Fi  page on the right side from the "Network & internet." page.
  • Quick note:  If you select the Wi-Fi page, you need to click on the connection properties to access the network settings.
  • Click on the  Edit  button for the "IP assignment" setting.
  • Select the  Manual  option from the drop-down menu.
  • Turn on the  IPv4  toggle switch.
  • Confirm the IP address for the computer – for example, 10.1.4.90.
  • Confirm the subnet mask for the configuration – for example, 255.255.255.0.
  • Confirm the default gateway address (usually your router's IP) – for example, 10.1.4.1.
  • Confirm the preferred DNS address – for example, 10.1.4.1.
  •   Quick note:  In a home network, you may also be able to use the router's IP address for the DNS configuration. You can also use third-party DNS services like Google Public DNS, Cloudflare, Cisco's OpenDNS, and others. 
  • (Optional) Select the  "On (automatic template)"  option for the "DNS over HTTPS" setting and leave the  "Fallback to plaintext"  option disabled unless you want to encrypted as well as unencrypted traffic or you're troubleshooting connectivity.
  • Quick note:  DNS over HTTPS (DoH) is a feature that encrypts the DNS queries over the HTTPS protocol to improve security and privacy on the internet. You only want to enable this feature if the DNS server supports this feature.
  • Confirm the alternate DNS address (if applicable).
  • (Optional) Select the  "On (automatic template)"  option for the "DNS over HTTPS" setting and leave the  "Fallback to plaintext"  option disabled.
  • Click the  Save  button.

Once you complete the steps, the computer will start using the static network configuration. If everything has been configured correctly, you should be able to open the web browser to access the internet.

If you entered an address (such as the DNS address) and then changed it, you probably won't be able to save the settings. If this is the case, cancel the configuration, start over, enter the correct configuration, and then try to save the settings.

Configure IP from Command Prompt

To set a static TCP/IP configuration on Windows 11, use these steps:

  • Open  Start .
  • Search for  Command Prompt , right-click the top result, and select the  Run as administrator  option.
  • Type the following command to see your current networking configuration and press  Enter : ipconfig /all
  • Confirm the name of the adapter and the networking configuration, including the IPv4 , Subnet mask , Default Gateway , and DNS Servers .
  • Type the following command to configure a static TCP/IP address and press  Enter :  netsh interface ip set address name= "ADAPTER-NAME" static IP-ADDRESS SUBNET-ADDRESS DEFAULT-GATEWAY-ADDRESS

In the above command, replace  ADAPTER-NAME  with the name of your network adapter. Change  IP-ADDRESS SUBNET-ADDRESS    DEFAULT-GATEWAY-ADDRESS  with the device IP address, subnet mask, and default gateway addresses you want. For example, this command sets the 10.1.4.90, 255.255.255.0, 10.1.4.1 configuration:  netsh interface ip set address name="Ethernet 10Gb" static 10.1.4.90 255.255.255.0 10.1.4.1

  • Type the following command to set a DNS server address and press  Enter :  netsh interface ip set dns name="ADAPTER-NAME" static DNS-ADDRESS  

In the command, change  ADAPTER-NAME  with your adapter's name and  DNS-ADDRESS  with the DNS server address of the network. For example, this command sets the local router as the DNS server:  netsh interface ip set dns name="Ethernet 10Gb" static 10.1.4.1

  • Type the following command to set an alternate DNS server address and press  Enter :  netsh interface ip add dns name="ADAPTER-NAME" DNS-ADDRESS index=2

In the command, change  ADAPTER-NAME  with the adapter's name and  DNS-ADDRESS  with an alternate DNS server address. For example, netsh interface ip add dns name="Ethernet 10Gb" 1.1.1.1 index=2

After you complete the steps, the commands will set a static network configuration on Windows 11.

How to set a static TCP/IP network configuration on Windows 10

On Windows 10, you can also use the Settings app and Command Prompt to set up a static IP network configuration.

To assign a permanent TCP/IP configuration on Windows 10, use these steps:

  • Click on  Ethernet  or  Wi-Fi .
  • Click on the active connection on the right side.
  • Click the  Edit  button for the "IP assignment" setting.
  • Select the  Manual  option.
  • Confirm the subnet prefix length (subnet mask) for the configuration – for example, 24 to specify the 255.255.255.0 subnet mask.
  • Quick tip:  It's important to use the number that represents the network instead of the subnet mask. Otherwise, the configuration won't save. If you don't know the subnet prefix length for your subnet mask, you can use any  online subnet calculator  to find out.

Once you complete the steps, Windows 10 will start using the static IP configuration. If you lose network connectivity, restart the computer to regain access to the local network and internet.

To change from dynamic to static IP address with commands on Windows 10, use these steps:

In the command, change  ADAPTER-NAME  with your adapter's name and  DNS-ADDRESS  with the DNS server address of the network. For example, this command sets the local router as the DNS server:  netsh interface ip set dns name=" Ethernet 10Gb" static 10.1.4.1

In the command, change  ADAPTER-NAME  with the adapter's name and  DNS-ADDRESS  with an alternate DNS server address. For example, netsh interface ip add dns name="Ethernet0" 1.1.1.1 index=2

After you complete the steps, the network configuration will switch from dynamic to static on Windows 10.

Get the Windows Central Newsletter

All the latest news, reviews, and guides for Windows and Xbox diehards.

Mauro Huculak

Mauro Huculak is technical writer for WindowsCentral.com. His primary focus is to write comprehensive how-tos to help users get the most out of Windows 10 and its many related technologies. He has an IT background with professional certifications from Microsoft, Cisco, and CompTIA, and he's a recognized member of the Microsoft MVP community.

  • 2 Microsoft News Roundup: Call of Duty on Game Pass, XPS 14 & 16, and more reviews than you can shake a stick at
  • 3 Best Helldivers 2 stratagems: Tier list, for early game, solo, bugs, and Automatons
  • 4 Elden Ring: Shadow of the Erdtree is this year's most anticipated DLC, and you can pre-order at a discount — here's how
  • 5 Starship Troopers star "can't wait to play" Helldivers 2, suggests a collab I'd kill to see: "Maybe we should do a crossover movie?!"

how to give yourself a static ip

How to set static IP address on Windows 10

You can assign a static IP address manually on Windows 10 in many ways, and in this guide, you'll learn how.

Avatar for Mauro Huculak

  • To set a static IP address on Windows 10, open Settings > Network & Internet > Wi-Fi , click the connection, click on “Edit,” select “Manual,” turn on “IPv4,” and set the static IP address.
  • Alternatively, you can configure a static IP address from Command Prompt, PowerShell, and Control Panel.

UPDATED 12/20/2023: On Windows 10, setting a static IP address to a computer is a configuration you may need to set up in many scenarios. For instance, if you plan to share files , set up a printer on a local network , enable and use Remote Desktop , or configure port forwarding on the router.

If you don’t assign a static IP address, services or a port forwarding configuration may eventually stop working. The reason is that, by default, connected devices use dynamic IP addresses assigned by the Dynamic Host Configuration Protocol (DHCP) server (usually the router), which can change anytime, as soon as you restart the machine or after the dynamically assigned configuration lease expires. On the other hand, a static configuration is permanent, and it’ll remain assigned until you change it.

Regardless of the reason, Windows 10 offers multiple ways to configure a static network configuration through the Settings app, the legacy Control Panel, and the command line using Command Prompt and PowerShell.

In this guide , I will teach you the steps to set a static IP (version 4) address to a Windows 10 computer.

Set static IP address on Windows 10 from Settings

Set static ip address on windows 10 from control panel.

  • Set static IP address on Windows 10 from Command Prompt
  • Set static IP address on Windows 10 from PowerShell

To assign a static IP address on Windows 10, use these steps:

Open Settings on Windows 10.

Click on Network & Internet .

Click on “Wi-Fi” or “Ethernet.”

Click on the current network connection.

Windows 10 Wi-Fi settings

Under the “IP settings” section, click the Edit button.

Wi-Fi IP settings on Windows 10

Using the drop-down menu, select the Manual option.

Turn on the “IPv4” toggle switch.

Wi-Fi edit IP address settings

Set a static IP address to use by the Windows 10 computer.

Specify a “Subnet prefix length” (subnet mask). If the subnet mask is 255.255.255.0 , the subnet prefix length in bits is 24 .

Specify a “Default Gateway” address.

Specify a “Preferred DNS” address.

Specify an “Alternate DNS address” (if applicable).

Click the Save button.

Wi-Fi TCP/IPv4 static configuration

After you complete the steps, you can test your settings using your web browser to open a website.

To assign a static IP from the Control Panel on Windows 10, use these steps:

Open Control Panel .

Click on Network and Internet .

Click on  Network and Sharing Center .

Click the Change adapter settings option on the left navigation pane.

Control Panel's Network and Sharing Center

Right-click the Wi-Fi or Ethernet adapter and select the Properties option.

Select the “Internet Protocol Version 4 (TCP/IPv4)” option.

Click the Properties button.

Control Panel's network adapter properties

Select the “Use the following IP address” option.

Set the static IP address for the adapter – for example, 10.1.2.220 .

Specify a Subnet mask . (Typically, on a home network, the subnet mask is 255.255.255.0 .)

Specify a Default gateway . (Usually, your router’s IP address. For example, 10.1.2.1 .)

Under the “Use the following DNS server addresses set Preferred DNS server” section, set the Preferred DNS server address. (Usually, your router’s IP address or server IP address that provides the DNS resolution, such as 10.1.2.1 ).

(Optional) Specify an Alternative DNS server. (The computer will use this address if it cannot reach the preferred DNS server.)

Click the OK button.

Windows 10 network adapter TCP/IPv4 properties

Click the Close button again.

Once you complete the steps, you can open your web browser and load a website to see if the configuration works.

Set static IP address on Windows 10 from Command Prompt

To set a static IP address on Windows 10 from Command Prompt, use these steps:

Open Start .

Search for Command Prompt , right-click the top result, and select the Run as administrator option.

Type the following command to see your current networking configuration and press Enter :

Under the network adapter, note the name of the adapter as well as the following information in these fields:

  • Subnet mask
  • Default Gateway
  • DNS Servers

Windows 10 ipconfig command

Type the following command to assign a static IP address on Windows 10 and press Enter :

In the above command, replace “Ethernet0” with the name of your network adapter. Change “10.1.4.220 255.255.255.0 10.1.4.1” with the device IP address, subnet mask, and default gateway address corresponding to your network configuration.

Type the following command to set a DNS server address and press Enter :

In the command, make sure to change “Ethernet0” with your adapter’s name and “10.1.4.1” with the DNS server address of the network.

Type the following command to set an alternate DNS server address and press Enter :

In the command, replace “Ethernet0” with your adapter’s name and “8.8.8.8” with an alternate DNS server address.

Windows 10 netsh command to set static IP address

After you complete the steps, you can test the new configuration using the ping command (for example ping google.com ) to see if the internet is working. Alternatively, you can open a website to see if the configuration works.

Set static IP address on Windows 10 from PowerShell

Windows 10 also includes the PowerShell command line platform that allows you to use the “NetTCPIP” module to manage networking settings, including the ability to change your computer’s IP address settings. Microsoft recommends using this command-line method instead of netsh .

To set a static IP address from PowerShell, use these steps:

Search for PowerShell , right-click the result, and select the Run as administrator option.

Type the following command to view your current network configuration and press Enter :

After running the command, note the following information: 

  • InterfaceIndex
  • IPv4Address
  • IPv4DefaultGateway

PowerShell's Get-NetIPConfiguration command

Type the following command to set a static IP address and press Enter :

PowerShell's New-NetIPAddress command

In the command, replace the “InterfaceIndex” number (5) with the corresponding number of your adapter. Change “IPAddress” with the static IP address you want to assign to your device. Change PrefixLength (subnet mask) with the correct bit number if necessary. Typically, on a home network, the setting is “24.” Also, change the “DefaultGateway” option with the default gateway address of the network.

Type the following command to assign a DNS server address and press Enter :

PowerShell's Set-DNSClientServerAddress command

If you need to set a secondary DNS server address, use a comma to use the same command with another address. For example:

In the command, replace the “InterfaceIndex” number (5) with your network adapter’s corresponding number. Also, change “ServerAddresses” with the DNS IP address.

After you complete the steps, you can test the new configuration by opening your web browser and navigating a website.

Whatever method you use, assigning an IP address within the network range and outside of the DHCP server scope is recommended to allow proper connectivity and avoid address conflicts. If multiple devices share the same address, this will cause a networking conflict, preventing connection to the internet.

Update December 20, 2023: This guide has been updated to ensure accuracy and reflect changes to the process.

Avatar for Mauro Huculak

Mauro Huculak is a Windows expert and the Editor-in-Chief who started Pureinfotech in 2010 as an independent online publication. He is also been a Windows Central contributor for nearly a decade. Mauro has over 12 years of experience writing comprehensive guides and creating professional videos about Windows, software, and related technologies, including Android and Linux. Before becoming a technology writer, he was an IT administrator for seven years. In total, Mauro has over 20 years of combined experience in technology. Throughout his career, he achieved different professional certifications from Microsoft (MSCA), Cisco (CCNP), VMware (VCP), and CompTIA (A+ and Network+), and he has been recognized as a Microsoft MVP for many years. You can follow him on X (Twitter) , YouTube , LinkedIn and About.me .

  • How to revert back to Windows 10 from Windows 11
  • How to disable Fast Startup on Windows 11, 10

We hate spam as much as you! Unsubscribe any time Powered by follow.it ( Privacy ), our Privacy .

How to Assign Static IP Address to Your Devices

IP address

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,

  • Access your computer from the Internet.
  • Share data between two devices on the same network.
  • Quickly access your Network Printer or NAS.
  • Use your computer as a media server.
  • Or your work WiFi requires you to use Static IP address.

IP address

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– first  find your device’s IP address , say it’s  192.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 like  192.168.1.222 . Though make sure the last digit should be between a  0-255  range.

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

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 the Network Adapter which 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 the Subnet mask and the Default Gateway Address.

adapter_name_command_line

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.

staticIP_cmd

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 can do the same via GUI which is much more intuitive. You’ll need the  Subnet 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 on  Start  Menu and type in  Network and Sharing Center.  Click once you see the Network and Sharing Center Icon.

Network_Sharing_Center_Start_Menu

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

RightClickOnStartMenu_Windows10

A new window will open, click on  Change Adapter Options.

Change_Adapter_Options

Right Click on your Current Network Adapter ( like WiFi)  and choose  Properties.

Right_Click_NetworkAdapter

When the new window pops up, select  Internet Protocol Version 4(TCP/IPv4)   and click on  Properties.

IPv4_Properties

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

Manual_IP_Settings

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 can 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.

OpenTerminal_Ubuntu

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.

how to give yourself a static ip

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.

GUI_Network

Now, navigate on the active network and click on the expand button for more options. Click on Wired Settings to open the Network menu.

Wired_Settings_GUI

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.

how to give yourself a static ip

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

IPv4_Tab

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 can click on the Apply button to register the changes.

static_IP_GUI_Ubunty

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, run ifconfig on the terminal to check the IP address. It should be the same IP address which you have specified earlier.

changed_IP_Config

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 on  System Preferences  from the dropdown list.

mac_systemPreferences

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

Network_Symbol

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.

network_on_spotlight

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

Network_Settings_menu

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

TCP_IP_tab

From the Configure IPv4 menu, choose Using 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.

change_tcp_ip_Settings

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

Settings_menu_Android

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.

Wifi_connected_network

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.

IP_Settings_Android

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

Manual_IP_Android

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 like  WiFi 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 can 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 the Settings icon in the dock to get to the Settings menu.

ios_Settings

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

Settings_page_wifi_ios

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.

i_button_ios_wifi

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. In order to set static IP, we need to change Configure IP it to Manual. Tap on it and it will open the IPv4 settings page.

Configure_ip_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.

IPv4_Configuration_Menu

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.

ipaddr_ios

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 your  Wireless Printer, PS4, NAS, IP Camera, Raspberry Pi , etc. do not have an Interface. Hence, in order 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 the Mac Address and Hostname of the device. So, we need to find the MAC address & Hostname of the network device. To do that, look for DHCP client list which should look something like the following screenshot.

MAC_address_Router

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 section  IP Mac binding or DHCP Static IP  option. In case you are on a custom ROM like dd-wrt, head over to Services tab and you will have DHCP Server . Under DHCP Server, add an entry for Static Leases by clicking on the Add button.

Static_leases_router

Clicking on the Add button will create a new row. You have to enter the MAC 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 on Save changes .

staticIPSetting_Router

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.

ipconfig_newIP

These changes are written to the ROM so restarting the router won’t make changes to the static IP configuration. In order 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 on  How to Enable Telnet Server in Windows 10 ,  Best SSH clients for iOS To Manages Remote Servers and  6 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

' src=

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-

You may also like

How to view and add notes on google..., what are the different buttons on siri remote..., how to share files using airdrop on apple..., 7 fixes for instagram not downloading reels on..., how to use iphone as passkey to login..., 8 fixes for something went wrong error on..., how to use travel mode on apple vision..., 10 fixes for tiktok couldn’t upload video error, 10 fixes for amazon fire tv stick stuck..., why am i getting notifications when someone posts....

Thank you for taking the time to respond. The NETGEAR documentation team uses your feedback to improve our knowledge base content.

Rating Submitted

Do you have a suggestion for improving this article?

Characters Left : 500

NETGEAR logo

MyNETGEAR® Account

Welcome back

Access your NETGEAR

how to give yourself a static ip

NETGEAR Support

How do I set a static IP address in Windows?

Was this article helpful?    Yes      No | 3 people found this helpful in last 30 days

Most users do not need to set a static IP address. However, advanced users and businesses might benefit from a static IP address.

A static IP address is useful for hosting servers or websites and for sharing large files. For more information about static and dynamic IP addresses, see What is an IP address?

To set a static IP address in Windows 7, 8, and 10:

  • Click Start Menu > Control Panel > Network and Sharing Center or Network and Internet > Network and Sharing Center.
  • Click Change adapter settings .
  • Right-click on Wi-Fi or Local Area Connection.
  • Click Properties .
  • Select Internet Protocol Version 4 (TCP/IPv4) .
  • Click Properties . 
  • Select Use the following IP address .
  • Enter the IP address , Subnet mask , Default gateway , and DNS server .
  • Click OK . Your computer displays a static IP address.  

To set a static IP address on a Macintosh OS X computer, see  Configuring TCP/IP and Proxy Settings on Mac OSX .

Last Updated:04/25/2023 | Article ID: 27476

Was this article helpful?

This article applies to:.

  • EX7000-1AZNAS
  • R6300-2CHNAS
  • XR1000-1RNNAS (ENTOUCH)
  • XR1000-1RNNAS (GRANDE)
  • XR1000-1RNNAS (RCN)
  • XR1000-1RNNAS (WAVE)
  • DGN1000SP-1RGUKS
  • DGN1000SS-1VGUKS
  • DGN2200-4DDAUS
  • DGN2200M-2TKSAS
  • DGN2200T-3BEGES
  • DGND3300Bv2
  • DGND3700Bv2
  • DM111PSP-2GTLAS
  • ProLine 6100
  • Versalink 7500
  • EVG1500-1EMRUS
  • EVG1500-2EMRUS
  • EVG2000-1STAUS
  • DG834NU-2BEGES
  • WN2000RPTv1
  • WN2000RPTv2
  • WN2000RPTv3
  • CENTRIA (WNDR4700/4720)
  • JWNR2000-4EMRUS
  • JWNR2000Tv3
  • WNDR3400-1CANAS
  • WNR1000-2VCNAS
  • WNR2000-3XFNAS
  • WNR2000UPPE
  • WNR3500CEIF
  • WNR612-2EMRUS
  • WGR614-7VCNAS
  • WGR614-8CONAS
  • WGR614-9UMGRS

Read this article in another language:

Looking for more about your product.

Get information, documentation, videos and more for your specific product.

Can’t find what you’re looking for?

Quick and easy solutions are available for you in the NETGEAR community.

Need to Contact NETGEAR Support?

With NETGEAR’s round-the-clock premium support, help is just a phone call away.

Complimentary Support

NETGEAR provides complimentary technical support for NETGEAR products for 90 days from the original date of purchase.

NETGEAR Premium Support

Gearhead support for home users.

GearHead Support is a technical support service for NETGEAR devices and all other connected devices in your home. Advanced remote support tools are used to fix issues on any of your devices. The service includes support for the following:

  • Desktop and Notebook PCs, Wired and Wireless Routers, Modems, Printers, Scanners, Fax Machines, USB devices and Sound Cards
  • Windows Operating Systems (2000, XP or Vista), MS Word, Excel, PowerPoint, Outlook and Adobe Acrobat
  • Anti-virus and Anti-Spyware: McAfee, Norton, AVG, eTrust and BitDefender

ProSUPPORT Services for Business Users

NETGEAR ProSUPPORT services are available to supplement your technical support and warranty entitlements. NETGEAR offers a variety of ProSUPPORT services that allow you to access NETGEAR's expertise in a way that best meets your needs:

  • Product Installation
  • Professional Wireless Site Survey
  • Defective Drive Retention (DDR) Service

Where to Find Your Model Number

To find the model/version number, check the bottom or back panel of your NETGEAR device.

Select a product or category below for specific instructions.

how to give yourself a static ip

Nighthawk Routers

how to give yourself a static ip

Powerline and Wall Plug Extenders

how to give yourself a static ip

Cable and DSL Modem Routers

how to give yourself a static ip

ReadyNAS Network Storage

how to give yourself a static ip

Wireless Access Points

how to give yourself a static ip

Other Business Products

how to give yourself a static ip

Mobile Broadband

How to Set a Static IP Address on a Windows PC

You can learn how to set up a static IP address on your computer. Here's how.

While most of the internet runs on dynamic addresses these days, static addresses are sometimes helpful to use as well. Whether you need to run a server of your own, set up external devices or services, or are just simply looking to explore, before you get your hands dirty, you need to know your way around and be super careful while setting up an IP address.

Moreover, there's more than one way to go about this. So, one by one, let's look at all the ways you can easily set up a static IP address on your Windows.

Static IP Addresses: The Whys and Hows

An IP address of a computer that stays the same over time is known as a Static IP address . This is in contrast to a dynamic IP Address, which is an address that can tweak over time.

Today, most devices use a dynamic IP address because of their ease of use and management. However, in rare cases, Static IP addresses can become handy. Some of those cases include:

  • When you have external devices that you can only connect to your network through your IP address.
  • When you connect to other networks through a VPN.
  • Static IP addresses can make hosting a server somewhat easier.

Because of a slew of such benefits, using a Static IP address can make your life super easy in some situations. So, now let's look at the different methods you can use to set up a static IP address for yourself.

How to Set a Static IP Address on Windows 11

Like most things on Windows, you have multiple ways to do this. Let's look at the most straightforward method first, which is using Windows Settings.

Here's how you can set a static IP Address using the Windows settings:

  • Head to the Start menu search bar, type in 'settings,' and select the best match. Alternatively, press the Windows Key + I to launch the Settings menu.
  • Then head to Network & internet settings .
  • Look for the Properties button. It's right next to your connection settings.
  • Scroll down and look for the IP assignment section. Then click on Edit .
  • In the new Edit IP settings dialog box, click on the scroll-down menu and select Manual .
  • Toggle on the switch for the IPv4 button.
  • Fill in all the network details here, including the IP address , Subnet mask , Gateway , and then click on Save .

ip settings

Follow the above steps meticulously, and your Windows 11 will have a new static IP address from here on.

How to Set Up a Static IP Address on Windows 10

The basics of setting up an IP Address in Windows 10 are similar. Even though the implementation of steps might differ here and there, you have to follow a pattern that's pretty much the same. Here's how:

  • Open the Windows 10 Settings.
  • Click on Network & Internet .
  • Depending on how you are connected to the Internet, select Wi-Fi or Ethernet .
  • Select the current network connection.

settings

  • Toggle on the IPv4 switch.
  • Set up the static IP address here and fill in other relevant information, such as the Preferred DNS , Default Gateway , etc.
  • Click on Save .

After you are done, you will have a new static IP address on your PC from here on.

How to Set Up a Static IP With Command Prompt

The above method, using the Settings GUI, is only one of the ways to tweak your IP address settings. For those of you who tilt more towards a command line rather than a simple click-and-play GUI, luckily, alternatives exist. For instance, you can also use the Command prompt, and set up the address with just a few commands.

To change up your IP address through your Command Prompt, follow the below steps:

  • Head to the Start menu search bar, type in 'cmd,' and launch the cmd as administrator.
  • Type in the following command in the cmd and hit Enter : ipconfig /all
  • Subnet mask
  • Default Gateway
  • DNS Servers
  • Type in the following command to assign static IP address on your Windows and hit Enter : netsh interface ip set address name= "Ethernet1" static 10.1.4.220 255.255.255.0 10.1.4.1 In the above command, replace Ethernet1 with the name of your adapter, and change 10.1.4.220 255.255.255.0 10.1.4.1 with the device IP address, subnet mask, and default gateway address corresponding to your network configuration
  • Now type the following command to set up a DNS server address and hit Enter : netsh interface ip set dns name= "Ethernet1" static 10.1.4.1

cmd

That's it. Your new static IP address will be set up from here.

How to Set Up a Static IP Address With PowerShell

PowerShell is another tool primarily handy for power users, designed to give them more control and management capabilities through task automation. If any of the above methods fail, you can also use PowerShell to set up the Static IP Address. Here’s how you can get started:

  • Head to the Start menu search bar, type in ‘powershell,’ and run it as administrator.
  • Type the following command to view your current network configuration and press Enter : Get-NetIPConfiguration
  • InterfaceIndex
  • IPv4Address
  • IPv4DefaultGateway
  • Type in the following command to set up a static IP address and hit Enter : New-NetIPAddress -InterfaceIndex 10 -IPAddress 10.1.4.119 -PrefixLength 24 -DefaultGateway 10.1.4.1
  • Here, replace all values of information. Replace the InterfaceIndex number (10) with the number assigned to your adapter. Similarly, replace the above IPAddress with a static IP address that you want to set.
  • Finally, type in the following command to assign the DNS server address and hit Enter : Set-DnsClientServerAddress -InterfaceIndex 10 -ServerAddresses 10.1.4.1

Again, replace the InterfaceIndex number (10) with your network’s corresponding number. Also, replace the ServerAddress with the DNS IP address.

You will have a new static IP address as soon as you finish all the above steps.

Setting up a Static IP Address on a Windows PC

Setting up your static IP address doesn't have to be complicated. If you follow the above methods we have laid out above, you should be done without any significant difficulties.

And while static IP address has their uses, dynamic addresses are undoubtedly necessary. So, before you make an important switch, ensure you understand their significant differences well.

  • iPhone 15 Plus vs. Pro Max
  • 3 Key Tech Trends to Watch in 2024
  • When to Use a Static IP Address

Are static IP addresses better than dynamic addresses?

  • Massachusetts Institute of Technology
  • University of Illinois

how to give yourself a static ip

In This Article

Jump to a Section

Static IP Address Uses

  • Static vs. Dynamic
  • When Not to Use a Static IP

Static IP Address Assignment on Home Networks

  • Getting a Static Public IP Address

A static IP address, or fixed IP address , is an IP address that never changes. Not everyone needs a static IP address, but knowing how they differ from dynamic IP addresses can help you understand whether you should use a static IP address.

Here are some example situations for when you might need a static IP address:

  • Setting up a home file server .
  • Adding a second router to a network.
  • Enabling access to a computer when away from home or work.
  • Forwarding ports to certain devices.
  • Sharing a printer over a network.
  • Connecting to an IP camera when away from home.

Static & Dynamic: What They Mean

The terms static and dynamic are simple to understand. At the core, the only real change you'll notice between static versus dynamic IP addresses is that the former never changes, while the latter does.

Most people don't care if their IP address changes. If you never know what your IP address is and never have a reason to keep it the same, then dynamic addresses are fine for you.

However, if your network or computer is set up in a specific way where some devices would work easier and set up would be smoother for you as the admin if an IP address always stayed the same, then static addressing is what you want.

Static IP addresses are assigned manually by an administrator. In other words, the device receiving the static IP is given a specific address (such as 192.168.1.2 ), and from then on, the address never changes.

Dynamic IP addresses are not assigned manually. They are assigned automatically by DHCP (Dynamic Host Configuration Protocol).

When Static IP Addresses Are Used

Static IP addresses are necessary for devices that need constant access.

For example, a static IP address is necessary if your computer is configured as a server, such as an FTP server or web server. If you want to ensure that people can always access your computer to download files, force the computer to use a static, never-changing IP address.

If the server was assigned a dynamic IP address, it would change occasionally, preventing your router from knowing which computer on the network is the server.

If you want to access your home computer while you're on a trip or your work computer when you're at home, setting up the computer to use a static IP address lets you reach that computer at any time without fearing that the address will change and block your access to it.

A shared printer is another example of when to use a static IP address. If you have a printer that everyone in your house or office needs to share, give it an IP address that won't change no matter what. That way, when every computer is set up to connect to that printer, those connections remain indefinitely because the address never changes.

Here are some other reasons to use static IPs:

  • They provide slightly better protection against network security problems than DHCP address assignment provides.
  • Some network devices don't support DHCP.
  • They help avoid potential  IP address conflicts where DHCP might supply an address already assigned elsewhere.
  • They provide geolocation that's more accurate than a dynamic IP address.

When Not to Use a Static IP Address

Because a static IP address is assigned manually, it's less efficient for a network admin to give it out, especially in mobile situations. Someone must visit the device in person to give it an IP address instead of letting DHCP assign the address automatically.

For example, you wouldn't set a static IP address on a smartphone because the moment it reaches another Wi-Fi network, the address might not be supported on that network, meaning that it won't be able to access the internet.

Dynamic addressing is more convenient in this situation because it's easy for administrators to set up. DHCP works automatically with minimal intervention needed, allowing mobile devices to move between different networks seamlessly.

Businesses are more likely to use static IP addresses than home networks. Implementing static IP addresses isn't easy and frequently requires a knowledgeable technician.

However, you can have a static IP address for your home network. When making static IP assignments for local devices on home and other private networks, the address numbers should be chosen from the  private IP address  ranges defined by the Internet Protocol standard:

  • 10.0.0.0–10.255.255.255
  • 172.16.0.0–172.31.255.255
  • 192.168.0.0–192.168.255.255

These ranges support thousands of IP addresses. It's common for people to assume they can choose any number in the range and that the specific choice doesn't matter much. This is untrue.

To choose and set specific static IP addresses suitable for your network, follow these guidelines:

  • Do not choose any addresses that end with .0 or .255 . These addresses are usually reserved for use by network protocols .
  • Do not choose the addresses at the beginning of a private range. Addresses like 10.0.0.1 , 192.168.0.1 , and 192.168.0.100 are commonly used by network routers and other consumer devices. These are the first addresses hackers attack when trying to break into a private computer network.
  • Don't choose an IP address that falls outside the range of your local network. For example, to support all addresses in the 10.x.x.x private range, the subnet mask on all devices must be set to 255.0.0.0. If they aren't, some static IP addresses in this range don't work.

How to Get a Static Public IP Address

Internet service providers (ISP) traditionally assign all their IP addresses to customers dynamically, due to historical shortages of available IP numbers.

Contact your service provider if you prefer a static IP address. You can't get a static public IP address without requesting it from your ISP. Customers can sometimes obtain a static IP by subscribing to a special service plan and paying extra fees.

Get the Latest Tech News Delivered Every Day

  • What Is an IP Address?
  • What Is a Public IP Address? (and How to Find Yours)
  • What Is a Static IP Address?
  • How to Find Your IP Address on Windows 10
  • What Is a Dynamic IP Address?
  • How Is 192.168.1.2 Used?
  • What Is DHCP? (Dynamic Host Configuration Protocol)
  • Uses for the 192.168.0.2 and 192.168.0.3 IP Addresses
  • What Is a Private IP Address?
  • How to Work With IP Address 192.168.100.1
  • Understanding the 192.168.1.100 IP Address
  • What Is the 192.168.1.5 IP Address Used For?
  • Cisco Default Password List
  • 192.168.1.4: IP Address for Local Networks
  • How to Change Your IP Address
  • How to Obtain a Fixed IP Address
  • Privacy news

Tips & tricks

  • ExpressVPN news

How to configure a static IP address

' src=

Felipe Allende

how to give yourself a static ip

A static IP address can be very useful in some cases, and can even improve your security. If you want to set up a local server or improve your internet speeds, configuring a static IP address on different devices is a very simple process. In this article, we’ll guide you through the steps so you can have a working static IP address in no time.

Note that ExpressVPN does not offer static IP addresses at the moment. This article is only informational on how you might set one up.

What is a static IP?

An IP address is a unique series of numbers that identifies each device on a local network or the internet. An IP address can be dynamic or static.

Most people use dynamic IP addresses, which change automatically and regularly—most commonly every 24 hours or after a router reset . This means when you go online, your IP address should be different from the one you had the day before.

A static IP address, also called a dedicated IP address, doesn’t change. This means whenever you connect to the internet after disconnecting, you’ll get the same IP address. It usually costs extra to get a static IP address. 

And while dynamic IP addresses generally offer greater privacy and security for the average user, static IP addresses can be useful for certain systems.

Why you may want a static IP address

Most residential internet services use a dynamic IP configuration through DHCP (Dynamic Host Configuration Protocol). While a static IP address could be the best approach in some cases, it’s important that you know what they are good for, and see if you’re in one of these use cases. Here are the most common ones:

You want to host a server For hosting game, web, email, or other types of servers, a static IP provides a consistent address for users to connect to, making connections easy.

Your IoT device requires it Some Internet of Things (IoT) devices require static IPs to function correctly and remain consistently accessible for monitoring and control.

You want a more stable connection File downloads and uploads tend to be slightly faster with a static IP.

You want more security Static IPs facilitate the implementation of security measures like IP whitelisting, ensuring only authorized devices can access certain online services.

You want to simplify your network management

Assigning static IPs to devices makes network management easier, allowing for straightforward identification, troubleshooting, and configuration of networked devices.

How to set up a static IP address

Setting up a static IP address is fairly simple but varies per device. However, the first thing you should sort out before configuring is the static IP address itself. You would inquire with your internet service provider (ISP) about getting a static IP , which usually involves a small extra charge.

How to set a static IP address on a router

You can assign 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. Lastly, note that most routers have different software, so these are general instructions to get you started. 

  • Access the router. Open a web browser and enter your router’s IP address into the address bar. You can usually find this on the back of your router or in the manual.
  • Log in. Enter your username and password to log into the router’s admin panel. If you haven’t changed these from the defaults, they should also be on the router or manual.
  • Navigate to LAN settings. Look for a section in the admin panel labeled “LAN” or “Network Settings”. This might be under “Advanced Settings” depending on your router.
  • Find DHCP or static IP settings. Locate the DHCP settings within the LAN or Network Settings. You may need to switch from DHCP to Manual or Static IP configuration.
  • Fill in the IP address , Gateway , Network prefix length , and DNS fields.
  • Save and apply. After entering all necessary information, save and apply your changes. The router may need to restart for changes to take effect.

How to set a static IP address on Windows 10

Assigning a static IP to your Windows 10 device is much easier than on your router. Just follow these instructions:

  • Go to Settings. Press the Windows key, type “Settings,” and press Enter.
  • Click Network and Internet and then Network and Sharing Center .
  • Click Change adapter settings on the left pane.
  • Right-click your network connection and select Properties .
  • Highlight Internet Protocol Version 4 (TCP/IPv4) and click on Properties .
  • Fill in the IP address, Gateway, Network prefix length, and DNS fields.
  • Click OK to save your changes, then click OK again to exit the properties menu.

How to set a static IP address on Windows 11

The steps for Windows 11 are very similar to those on Windows 10:

  • Open Settings. Click on the Start menu, select Settings, or press Windows + I on your keyboard.
  • In the Settings menu, click on Network & Internet .
  • Choose the network you are connected to. If you are using Wi-Fi, click on “Wi-Fi” and then select your network. For a wired connection, click on “Ethernet” and then on your network connection.
  • Edit IP Assignment. Scroll down and click on “Hardware properties.” Then, find the “IP assignment” section and click the “Edit” button.
  • Change to Manual. In the “Edit IP settings” window, change the setting from “Automatic (DHCP)” to “Manual.” Toggle on the “IPv4” switch to enable manual IP configuration.
  • Click Save to apply your settings.

How to set a static IP address on macOS

To configure a static IP on your Mac, follow these steps:

1. Click on the Apple menu in the top left corner of your screen and select System Preferences .

how to give yourself a static ip

2. In the System Preferences window, find and click on Network .

3. Select the network connection you wish to configure from the list on the left side. This could be either Wi-Fi or Ethernet, depending on how your Mac is connected to the network.

how to give yourself a static ip

4. With the network selected, click on the Details button in the top right corner of the window.

how to give yourself a static ip

5. Click on the TCP/IP tab on the left.

6. Click on the dropdown menu next to “Configure IPv4” and select Manually from the list of options.

how to give yourself a static ip

7. Fill in the IPv4 Address field with the static IP address you want to assign to your Mac. 

8. Optionally, navigate to the DNS tab in the same window to manually enter DNS server addresses if required.

9. Click OK to close the Details settings window.

How to set a static IP address on Android

Setting up a static IP address on Android is straightforward. Just follow these steps:

  • Tap on the Settings icon on your home screen or app drawer.
  • Scroll down and tap on Wi-Fi . Ensure Wi-Fi is turned on, and you’re connected to the network you want to configure.
  • Select the gear icon beside your current network.
  • Find the IP settings section and change it from DHCP to Static .
  • Scroll down and tap Save to apply your new static IP settings.

How to set a static IP address on iOS

On iOS, the process is quite similar. Follow these instructions:

1. Tap the Settings icon on your home screen or App Library.

how to give yourself a static ip

2. Next to the Wi-Fi network you’re connected to, tap the i icon to access the network’s settings.

how to give yourself a static ip

3. Scroll down and tap on Configure IP to change how your device acquires an IP address.

how to give yourself a static ip

4. Tap Manual to switch from automatic (DHCP) to manual IP settings.

how to give yourself a static ip

5. Fill in the IP address , Gateway , Network prefix length , and DNS fields.

6. Tap Save in the upper right corner to apply your changes.

How to set a static IP address on Linux

The process for Linux is a little more involved. Bear in mind that while you could do it by running a ip adr command, that change would be reversed with every reboot. To set up the static IP permanently, follow these steps:

  • Press Ctrl + Alt + T to open the terminal on your Linux desktop.
  • Use the command ip addr or ifconfig to identify your network interface.
  • Navigate to Netplan Configuration. Files are typically located in /etc/netplan/. Use ls /etc/netplan/ to list the configuration files.
  • Use a text editor like nano or vim to edit the YAML configuration file found in the previous step.
  • Modify the file to include your static IP settings under the appropriate network interface.
  • Save the file and apply the changes by running sudo netplan apply .

How to set a static IP address on Raspberry Pi

Like with Linux, the process with Raspberry Pi is more involved than with other platforms. To configure the static IP, follow these steps:

  • Access the terminal directly or via SSH if you’re remotely connected to your Raspberry Pi.
  • Type sudo nano /etc/dhcpcd.conf to edit the DHCP client configuration file with nano editor. You can replace nano with your preferred text editor.
  • Scroll to the end of the file and add your static IP configuration.
  • Press Ctrl + O to save the changes, then Ctrl + X to exit nano.
  • To apply the changes, restart the DHCP client daemon with sudo service dhcpcd restart.

The differences between static and dynamic IP addresses

Static and dynamic IP addresses serve the fundamental role of identifying devices on a network, yet they differ in management, purpose, and application. Here’s a comparison:

Does ExpressVPN offer static or dynamic IPs?

ExpressVPN provides dynamic IPs and doesn’t offer static IPs at the moment. 

This means every time you connect to ExpressVPN, you are given a different IP address. (That said, it is possible to repeatedly get the same IP if you happen to connect to the same server multiple times.) The IP you are given should indicate to websites and apps that you are located in the country of your choosing. Moreover, every IP is shared by numerous ExpressVPN users at the same time, increasing your anonymity even more.

Phone protected by ExpressVPN.

Mask your IP address with a VPN

30-day money-back guarantee

A phone with a padlock.

Enjoy a safer online experience with powerful privacy protection

' src=

Like what you have read?

Clap for this post. Or share your thoughts!

Subscribe to the weekly blog newsletter

Get the latest in privacy news, tips, tricks, and security guides to level-up your digital security.

how to give yourself a static ip

  • Related posts
  • Featured Posts
  • More from the author

how to give yourself a static ip

4 easy ways to change the location on your iPhone

how to give yourself a static ip

How to use Private Browsing on your iPhone in 2024

how to give yourself a static ip

How to change your home address on an iPhone

How to change location on Facebook Marketplace

How to change location on Facebook Marketplace

Tech Friend Edition 2

Tech Friend: My VPN location seems to be wrong

Dynamic MTU to fix VPN browsing issues.

Dynamic MTU: How we fixed a common cause of browsing problems

Alternative apps to Omegle that let you chat with random strangers.

Best Omegle alternatives to chat with strangers

Phone with location pin and luggage handles.

How to track your own luggage

21 best onion and Tor sites on the dark web

Dark Web Links: The best .onion and Tor sites in 2024

streaming push play button

Best new shows and movies to stream in February 2024

Tech Friend talks cheap phones.

Tech Friend: 5 great phones under 400 USD

how to give yourself a static ip

Can you stop someone from mirroring your phone?

how to give yourself a static ip

Why is the Chrome browser so slow?

how to give yourself a static ip

Is someone spying on your phone?

how to give yourself a static ip

Tech Friend: Help! My phone is overrun with ads

Leave a comment cancel reply.

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

ExpressVPN is proudly supporting

logo_1

Subscribe to the blog newsletter

Choose language.

how to give yourself a static ip

This topic has been marked solved and closed to new posts due to inactivity. We hope you'll join the conversation by posting to an open topic or starting a new one.

  • NETGEAR Forum
  • Home Networking
  • Nighthawk Pro Gaming
  • Nighthawk Pro Gaming Routers

Assigning a static IP address to home devices

  • Community Browser:
  • NETGEAR Website

Start a New Discussion

Orbi WiFi 7 RBE973

Welcome to NETGEAR Community Please Login

  • Subscribe to RSS Feed
  • Mark Topic as New
  • Mark Topic as Read
  • Float this Topic for Current User
  • Printer Friendly Page
  • All forum topics
  • Previous Topic

xlr8r

  • Mark as New
  • Report Inappropriate Content

Solved! Go to Solution.

Netduma-Fraser

Re: Assigning a static IP address to home devices

View solution in original post

  • ‎2018-02-20 06:01 AM
  • 57956 views

xlr8r

• What is WiFi 7?

• Orbi WiFi 7 (Black Edition)

• Orbi WiFi 7 Key Features

• What is Quad Band?

• What is the difference between WiFi 6 and WiFi 7?

• Yes! WiFi 7 is backwards compatible with other Wifi devices? Learn more

  • Contact Support

how to give yourself a static ip

How to Set a Static IP Address on Raspberry Pi

Make sure your Pi has the same IP every time you boot.

Static IP Address for Raspberry Pi

If you're trying to access a Raspberry Pi on your local network, there are times when you'll really need its IP address. Sure, you can usually SSH or VNC into a Pi by using its hostname, but for something like port forwarding on a router (which you'll use to create an externally-accessible Minecraft server or web server), an actual IP v4 address may be needed. The problem: every time you reboot your Pi, the IP address can change, based on what the router decides to assign at the moment.

Fortunately, there's a simple way to make sure that your Raspberry Pi always gets the same IP address on your local network or, at least, always tries to get the same address on your local network. It almost goes without saying that if, at the time it boots, another device that's powered on is already using the address in question, your Pi will either have no IP v4 address at all or (if you configured it as such) it will choose an alternative one. So keep that in mind.

Note that this tutorial assumes you already have a Raspberry Pi that's connected to your network. If not, please see our tutorials on how to set up a Raspberry Pi and how to set up a headless Raspberry Pi (no monitor required).

How to Assign a Static IP to a Raspberry Pi

1. Determine your Raspberry PI's current IP v4 address if you don't already know it. The easiest way to do this is by using the hostname -I command at the command prompt. If you know its hostname, you can also ping the Pi from a different computer on the network.

2. Get your router's IP address if you don't already know it. The easiest way to do this is to use the command ip r and take the address that appears after "default via."

3. Get the IP address of your DNS (domain name server) by enter the command below. This may or may not be the same as your router's IP. 

Now that you have the IP address your Pi is currently using, the router's IP address and the DNS IP address, you can edit the appropriate configuration file.

4. Open /etc/dhcpcd.conf for editing in nano.

5. Add the following lines to the bottom of the file. If such lines already exist and are not commented out, remove them.

Replace the comments in brackets in the box below with the correct information. Interface will be either wlan0 for Wi-Fi or eth0 for Ethernet.

In our case, it looked like this.

You may wish to substitute "inform" for "static" on the last line. Using inform means that the Raspberry Pi will attempt to get the IP address you requested, but if it's not available, it will choose another. If you use static, it will have no IP v4 address at all if the requested one is in use.

6. Save the file by hitting CTRL + X and reboot . 

From now on, upon each boot, the Pi will attempt to obtain the static ip address you requested.

Using the Raspberry Pi OS Guide to Set a Static IP

If you already have all the information about your router's IP and DNS IP, you can configure the static IP address using the Network Preferences menu instead of editing the dhcpcd.conf file.

1. Right click on the network status icon and select the Wireless & Wired Network Settings.

2. Select the appropriate interface . If you're configuring a static IP for Wi-FI, choose wlan0. For Ethernet, choose eth0.

3. Enter the IP addresses into the relevant fields.  Your desired IP address will be in the IPv4 field, followed by a /24. Your router's IP and DNS server's IP will be in the fields named after them.

4. Click Apply , close the window and reboot your Pi.

Your Pi will now attempt to use your desired IP address at each boot. However, the Network Preferences menu sets this as a preference, not an absolute. So, if the IP address you asked for is not available, it will use another.

Stay on the Cutting Edge

Join the experts who read Tom's Hardware for the inside track on enthusiast PC tech news — and have for over 25 years. We'll send breaking news and in-depth reviews of CPUs, GPUs, AI, maker hardware and more straight to your inbox.

Avram Piltch

This Raspberry Pi RP2040-based keyboard is open-source and designed for serious modularity

This Raspberry Pi volumetric display is a new spin on LED 3D animations

15.5 million Toshiba laptop AC adapters recalled over fire hazard

  • AusMatt Typo: grep "namesever" /etc/resolv.conf Should read: grep "name r sever" /etc/resolv.conf Reply
  • alan tracey wootton With an Arduino that is serving a web page one can use mDns instead of keeping track of the local IP address. Add this to your Setup(): if (MDNS.begin("esp32")) { MDNS.setInstanceName("count server demo"); MDNS.addService("http", "tcp", 80); MDNS.addServiceTxt("http","tcp","counter","true"); }Then that webpage is available locally in chrome and safari as: http://esp32.local./I didn't test the other browsers. I'm sure this works for a Pi also even though I haven't tried it yet. mDns might be on by default. The url would be http:// raspberrypi .local./To check, try this command: dns-sd -B _http._tcpWhen I do that I find that both of my printers are serving http (a supply level page) in addition to the microcontroller. Reply
  • wl84 When I run the nameserver command I get two results back - 192.168.11.1 and 192.168.68.1. I tried both in the config and I can't connect to anythign with either. I'm trying to setup pihole Reply
  • View All 3 Comments

Most Popular

By Sammy Ekaran January 04, 2024

By Sammy Ekaran December 24, 2023

By Sammy Ekaran December 23, 2023

By Les Pounder December 10, 2023

By Les Pounder December 05, 2023

By Sammy Ekaran December 04, 2023

By Sammy Ekaran December 02, 2023

By Sammy Ekaran November 06, 2023

By Sammy Ekaran November 05, 2023

By Les Pounder November 04, 2023

By Sammy Ekaran November 03, 2023

How-To Geek

How to set a static ip address in ubuntu.

When static is the way forward.

Quick Links

What is a static ip address, setting a static ip in ubuntu, set a static ip in ubuntu with the gui, connection convenience, key takeaways.

After gathering your connection name, subnet mask, and default gateway, you can set a static IP address in the terminal using the nmcli command. Or, in the GNOME desktop, open your connection settings and click the + icon, then enter the info for your static IP address there.

Your home network relies on IP addresses to route data between devices, and sometimes on reconnecting to the network a device's address can change. Here's how to give an Ubuntu Linux computer a permanent IP address that survives reboots.

Everything on your network home network, whether it's using a wired connection or Wi-Fi, has an IP address . IP stands for Internet Protocol. An IP address is a sequence of four numbers separated by three dots. Each IP address that is unique within that network.

IP addresses act as numeric labels. Your router uses these labels to send data between the correct devices. Usually, your router assigns IP addresses. It knows which IP addresses are in use and which are free. When a new device connects to the network, it requests an IP address and the router allocates one of the unused IP addresses. This is called DHCP, or dynamic host configuration protocol .

When a device is restarted or powered off and on, it may receive its old IP address once more, or it might be allocated a new IP address. This is normal for DHCP and it doesn't affect the normal running of your network. But if you have a server or some other computer that you need to be able to reach by its IP address, you'll run into problems if its IP address doesn't survive power downs or reboots.

Pinning a specific IP address to a computer is called allocating a static IP address . A static IP address, as its name suggests, isn't dynamic and it doesn't change even if the computer is power-cycled .

Nmcli is the command-line network manager tool , and can be used to change your IP address, configure network devices, and --- relevant to our purposes --- set up a static IP in Ubuntu.

We're demonstrating this technique on Ubuntu 22.04 LTS, but it ought to work on any Linux distribution, including Ubuntu 23.04. The nmcli tool was released in 2004, so it should be present on just about any standard distribution.

Let's take a look at the network connections that already exist on the computer. We're using the connection command with the show argument.

nmcli connection show

Using nmcli to list network connections

This displays some information about each connection. We only have a single connection configured.

The details of a single network connection displayed by nmcli

The output is wider than the terminal window. This is the information that we're shown.

  • Name : Our network connection is called "netplan-enp0s3."
  • UUID : The universally unique identifier Linux uses to reference this connection internally.
  • Type : This is an ethernet connection.
  • Device : This connection is using the "enp0s3" network interface. It's the only network card in this computer.

We can use the ip command to discover the IP address this computer is using.

The output of the ip addr command showing the ip address of the computer

In the output we can see the "enp0s3" entry, and its current IP address, 192.168.86.117. The "/24" is a shorthand way of saying that this network uses a 255.255.255.0 subnet mask . Take a note of this number, we'll need to use it later.

We need to choose the IP address we're going to set as our static IP address. Obviously, you can't use an IP address that is already in use by another device. One safe way to proceed is to use the current IP address assigned to the Ubuntu system. We know for certain that nothing else is using that IP address.

If we want to use a different IP address, try pinging it. We're going to test whether IP address 192.168.86.128 is in use. If everything else on your network uses DHCP and you get no response to the ping command, it should be safe to use.

ping 192.168.86.128

Using ping to determine if an IP address is in use

Even if another device had previously used that IP address, it'll be given a new IP address when it next boots up. Nothing responds to the ping requests, so we're clear to go ahead and configure 192.168.86.128 as our new static IP.

We also need to know the IP address of your default gateway , which will usually be your broadband router. We can find this using the ip command and the route option, which we can abbreviate to "r."

Using the ip command to find the IP address of the default gateway

The entry that starts with "default" is the route to the default gateway. Its IP address is 192.168.86.1. Now we can start to issue commands to set up our static IP address.

The first command is a long one.

sudo nmcli con add con-name "static-ip" ifname enp0s3 type ethernet ip4 192.168.86.128/24 gw4 192.168.86.1

Creating a new connection with the nmcli command

Taken in small chunks, it's not as bad as it looks. We're using sudo . The nmcli arguments are:

  • con : Short for "connection."
  • add : We're going to add a connection.
  • con-name "static-ip" : The name of our new connection will be "static-ip."
  • ifname enp0s3 : The connection will use network interface "enp0s3."
  • type ethernet : We're creating an ethernet connection.
  • ip4 192.168.86.128/24 : The IP address and subnet mask in classless inter-domain routing notation . This is where you need to use the number you took note of earlier.
  • gw4 192.168.86.1 : The IP address of the gateway we want this connection to use.

To make our connection a functioning connection, we need to provide a few more details. Our connection exists now, so we're not adding anything, we're modifying settings, so we use the mod argument. The setting we're changing is the IPv4 DNS settings. 8.8.8.8 is the IP address of Google's primary public DNS server , and 8.8.4.4 is Google's fallback DNS server.

Note that there is a "v" in "ipv4." In the previous command the syntax was "ip4" without a "v." The "v" needs to be used when you're modifying settings, but not when adding connections.

nmcli con mod "static-ip" ipv4.dns "8.8.8.8,8.8.4.4"

Using the nmcli command to set the DNS servers for a connection

To make our IP address static, we need to change the method which the IP address obtains its value. The default is "auto" which is the setting for DHCP. We need to set it to "manual."

nmcli con mod "static-ip" ipv4.method manual

Using the nmcli command to set an IP address to static

And now we can start or "bring up" our new connection.

nmcli con up "static-ip" ifname enp0s3

Using the nmcli command to start a network connection

We didn't get any error messages which is great. Lets use nmcli to look at our connections once more.

nmcli con show

The details of two network connections displayed by nmcli

Here's the output:

Our static-ip connection is active and using device "enp0s3." The existing connection "netplan-enp0s3" is no longer associated with a physical network interface because we've pinched "enp0s3" from it.

Click the icons at the far-right end of the system bar to show the system menu, then click on the "Wired Connected" menu option. If you're using a wireless connection, instead click the name of your Wi-Fi network.

The available connections are displayed. A dot indicates which is in use. Click the "Wired Settings" or "Wi-Fi Settings" menu option. The details of the active connection are displayed.

If you followed our previous instructions the new connection will be the active connection. We can see our new "static-ip" connection has the IP address, default gateway, and DNS servers that we set for it.

The system menu with the

To create a new connection using the "Settings" application, click the " + " icon on the "Networks" page, above the list of wired connections.

The wired connection section in the Network tab of the Settings app

A dialog appears. We need to provide a name for our new static IP connection.

Giving a name to a new connection profile in the

We're calling our new connection "static-2." Click the "IPv4" tab.

Supplying the IPv4 connection details to a new connection profile in the

Select the "Manual" radio button, and complete the "Address", "Netmask", and "Gateway" fields. Also complete the DNS field, and then click the green "Apply" button. Note the comma between the DNS entries.

Our new connection is listed in the "Wired" connections pane.

A newly-added connection in the wired connection section of the Network tab of the Settings app

You can swap between the available connections by clicking directly on their names.

If you want to modify a connection after you create it, click the cog icon. In this case, we'll enter the settings for the "static-ip" connection.

The wired connection section in the Network tab of the Settings app

A dialog box opens. Click on the "IPv4" tab.

The IPv4 tab of the connection settings dialog

Because we set our new IP address to be static, the "Manual" radio button is selected. You could change this back to DHCP by selecting the "Automatic (DHCP)" radio button, and clicking the green "Apply" button.

Using the nmcli command or the GNOME desktop and apps, you can hop between network connections very easily and very quickly.

It's more convenient to have a selection of connection profiles and move between them as you need to, rather than to have one that you keep editing. If something goes horribly wrong with the connection you're editing or adding, you can always fall back on one of the existing connections.

IMAGES

  1. How to Set Static IP Address in Windows 10

    how to give yourself a static ip

  2. How To Assign A Static Ip Address To A Windows 11 10 Pc

    how to give yourself a static ip

  3. Получить статический IP-адрес в Windows

    how to give yourself a static ip

  4. Set Static IP Address on Windows

    how to give yourself a static ip

  5. How to Set a Static IP Address on Windows 10

    how to give yourself a static ip

  6. powershell

    how to give yourself a static ip

VIDEO

  1. How to Assign Static IP Address to Raspberry Pi- Step by Step Guide!

  2. How to configure static ip using control panel

  3. How to do Static IP for PAX A35?

  4. how to set a static IP address

  5. KONFIGURASI IP ROUTING STATIC

  6. KONFIGURASI IP ROUTING STATIC

COMMENTS

  1. How to Set Up a Static IP Address

    Step 1: Open the Command Prompt Your first step should be to track down your computer's current IP address, subnet mask, and default gateway. Do this by opening the Start menu and searching for...

  2. How to Assign a Static IP Address in Windows 10 or Windows 11

    To set a static IP address in Windows 10 or 11, open Settings -> Network & Internet and click Properties for your active network. Choose the "Edit" button next to IP assignment and change the type to Manual. Flip the IPv4 switch to "On", fill out your static IP details, and click Save.

  3. How to Obtain and Set Up a Static IP Address

    How to Get a Static IP Address When you access the internet on your home network, you're almost always using a dynamic IP address. That means it changes each time you connect. Dynamic IPs are generally the default for most Internet Service Providers (ISPs) when they set up private, individual home networks.

  4. How to configure a static IP on Windows 10 or 11

    Click on Network & internet. (Optional) Click on Advanced network settings. Under the "More settings" section, click on Hardware and connection properties. Note the current IPv4 , Subnet mask ,...

  5. How to Set a Static IP Address for a Windows 10 PC

    Click the magnifying glass icon in the bottom-left corner of your screen. Then type IP Address into the search bar and click Open. You can also hit Enter on your keyboard if you see Ethernet settings. Then click Change adapter options. You will see this under Related settings. This will open a control panel window.

  6. How to set static IP address on Windows 10

    To assign a static IP address on Windows 10, use these steps: Open Settings on Windows 10. Click on Network & Internet. Click on "Wi-Fi" or "Ethernet." Click on the current network connection. Under the "IP settings" section, click the Edit button. Using the drop-down menu, select the Manual option. Turn on the "IPv4" toggle switch.

  7. How to Assign Static IP Address to Your Devices

    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 1.

  8. How to set up and use a static IP address

    Enter "Settings" into the search bar and click Enter. Click the hamburger button and choose Network & internet. Click Advanced network settings. Scroll down to Hardware and connection properties and click it. Write down the current IPv4, Subnet mask, Default Gateway, and DNS server addresses for future use.

  9. How to set up a static IP address

    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."

  10. Static IP: Beginner's guide to setting up static (and reserved) IP

    Do you know the difference between setting a static IP and reserving an IP address? Knowing how to do both can be very useful, especially if you'd like to do...

  11. How do I set a static IP address in Windows?

    Click Change adapter settings. Right-click on Wi-Fi or Local Area Connection. Click Properties. Select Internet Protocol Version 4 (TCP/IPv4). Click Properties . Select Use the following IP address. Enter the IP address, Subnet mask, Default gateway, and DNS server. Click OK. Your computer displays a static IP address.

  12. How to Set a Static IP Address on a Windows PC

    Alternatively, press the Windows Key + I to launch the Settings menu. Then head to Network & internet settings. Look for the Properties button. It's right next to your connection settings. Scroll down and look for the IP assignment section. Then click on Edit. In the new Edit IP settings dialog box, click on the scroll-down menu and select Manual.

  13. How to Set Static IP Addresses On Your Router

    Without DHCP, you would need to hop on a computer, log into your router's admin panel, and manually assign an available address to your friend's device, say 10.0.0.99. That address would be permanently assigned to your friend's iPad unless you went in later and manually released the address. With DHCP, however, life is so much easier.

  14. Windows 10: Assign static IP address

    162 16K views 2 years ago Windows 10 Tutorials Windows 10 steps to set a static IP address in four different ways. More info https://pureinfotech.com/set-static-i... ⏯ This video walks you...

  15. How to assign a static IP Address in Windows 10

    This video will show you how to assign a permanent IP address in Windows 10.First, right click on your network connection in the bottom right, and then choos...

  16. How to Set a Static IP on Windows 11 [Manually]

    Any Windows device's settings can be tweaked in order to set up a static IP address. You can either have a static IP address that can be manually configured or a dynamic IP address that is automatically assigned. A static IP is constant as it does not change anytime you log off and log back in.

  17. When to Use a Static IP Address

    Static IP addresses are assigned manually by an administrator. In other words, the device receiving the static IP is given a specific address (such as 192.168.1.2 ), and from then on, the address never changes. Dynamic IP addresses are not assigned manually. They are assigned automatically by DHCP (Dynamic Host Configuration Protocol).

  18. Static IP vs. Dynamic IP: What Is the Difference?

    Dynamic IP addresses are allocated by your router and subject to change while static IP addresses are manually configured and never change. For most cases, dynamic IP addressing is perfectly adequate. A static IP address is useful, though, if you want to access your home network remotely. Dynamic IP addresses are set automatically, but liable ...

  19. How to configure a static IP address

    7. Fill in the IPv4 Address field with the static IP address you want to assign to your Mac.. 8. Optionally, navigate to the DNS tab in the same window to manually enter DNS server addresses if required.. 9. Click OK to close the Details settings window.. How to set a static IP address on Android. Setting up a static IP address on Android is straightforward.

  20. CONFIGURE A STATIC IP ADDRESS IN 4 MINUTES!

    Introduction CONFIGURE A STATIC IP ADDRESS IN 4 MINUTES! Ultimate Tech Hub 43.3K subscribers Join Subscribe Subscribed 576 Share 80K views 1 year ago The Wireless Router Guide This is How To...

  21. Assigning a static IP address to home devices

    2018-02-20 06:10 AM. Hi xlr8r, great to hear you're getting the XR500. You can set this in Settings > LAN Setup, then click Add under Address reservation. Then you can select the devices you want and give them a static IP. I've included a screenshot >. Message 2 of 7. staticip.png ‏674 KB.

  22. How to Set a Static IP Address on Raspberry Pi

    How to Assign a Static IP to a Raspberry Pi. 1. Determine your Raspberry PI's current IP v4 address if you don't already know it. The easiest way to do this is by using the hostname -I command at ...

  23. How to Set a Static IP Address in Ubuntu

    Set a Static IP in Ubuntu with the GUI. Click the icons at the far-right end of the system bar to show the system menu, then click on the "Wired Connected" menu option. If you're using a wireless connection, instead click the name of your Wi-Fi network. The available connections are displayed.

  24. How do I get a static IP for free? : r/AskTechnology

    To be your own ISP and give yourself your own public IP address you would likely need a contract with a tier 1 provider (only going to speak to you of you have a solid business plan to resell to your own customers, your own data center with a lot of networking equipment, several employees to manage technical, data protection and legal sides of ...

  25. How to set a static internal IP in Ubuntu

    If you're connected to the internet via Wi-Fi, choose Wi-Fi.If you're connected via Ethernet, select Network.; Once the interface is open, click the settings icon next to the network you're ...