How to Assign a Static IP Address in Windows 11, 10, 8, 7, XP, or Vista

Sometimes, it is better to assign an IP address to a computer than to let the router automatically assign an IP address. Read this article to learn how to assign a static IP address in Windows.

Static IP Address vs Dynamic IP Address

Typically, IP addresses for personal computers and other devices can be automatically assigned by the router using a protocol called Dynamic Host Configuration Protocol ( DHCP ). This is a convenient way to connect devices to a network because the user does not have to configure an IP address for a new device. The downside of automatically assigning IP addresses is that the device's IP address can change over time.

This is not a big deal, but in some cases, users want the device to use a static IP address that does not change. For example, in the case of:

  • When certain applications can only connect to network devices using their IP addresses, especially when many legacy network applications are restricted.
  • When you want to forward ports through a router to devices on your network. Some routers can forward ports and dynamic IP addresses; but some routers cannot.
  • Another example of static IP addresses at work is with DNS servers. DNS servers use static IP addresses so that devices always know how to connect to them. If they change frequently, you would have to reconfigure those DNS servers on your router or computer regularly to use the Internet.

A static IP address is an IP address that is manually configured for a device rather than being assigned by a DHCP server. It is called static because it does not change like a dynamic IP address. A static IP address is also sometimes called a permanent IP address or a dedicated IP address.

Routers, phones, tablets, desktops, laptops, and any other device that can use an IP address can be configured to have a static IP address. Assigning a static IP address to a device is not difficult, but users should choose whether to do this from the router or on the device.

How to Assign a Static IP Address in Windows 11, 10, 8, 7, XP, or Vista

The main disadvantage that static IP addresses have over dynamic ones is that devices have to be manually configured. The examples given above involve home web servers and remote access programs that require you to set up the device with an IP address and properly configure the router to communicate with that specific address.

This requires more than just plugging in your router and letting it dynamically assign an IP address via DHCP. If a device is assigned an IP address of, say, 192.168.1.110 and you access a different network that provides a 10.XXX address, you won’t be able to connect to the static IP. Instead, the device will need to be reconfigured to use DHCP (or use a static IP that works with that new network).

Set Static IP Address on Windows 11

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

Here's how you can set a static IP address using Windows Settings:

  • Go to the search bar in the Start menu, type settings and select the best result. Alternatively, you can press Windows + I to launch the Settings menu .
  • Then go to Network & internet settings .
  • Find the Properties button . It's right next to your connection settings.
  • Scroll down and find the IP assignment section . Then click Edit .
  • In the new Edit IP settings dialog box , click the scroll down menu and select Manual
  • Enable IPv4 .
  • Fill in all the network details here, including IP address , Subnet mask , Gateway , and then click Save .
How to Assign a Static IP Address in Windows 11, 10, 8, 7, XP, or Vista
Set up static IP on Windows 11

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

Set a static IP address assignment in Windows 7, 8, or 10

To change your computer's IP address in Windows, open the " Network Connections " window. Press Windows + R , type " ncpa.cpl " in the Run box , then press Enter .

How to Assign a Static IP Address in Windows 11, 10, 8, 7, XP, or Vista

In the " Network Connections " window , right-click on the adapter you want to set a static IP address for and then select the " Properties " command.

How to Assign a Static IP Address in Windows 11, 10, 8, 7, XP, or Vista

In the adapter properties window, select " Internet Protocol Version 4 (TCP/IPv4)" and then click the " Properties " button.

How to Assign a Static IP Address in Windows 11, 10, 8, 7, XP, or Vista

Select the " Use the following IP address " option , then type in the IP address, subnet mask, and default gateway corresponding to the network setup. Next, enter the DNS server address. Finally, select the " Validate settings upon exit " option to let Windows check the new IP address and corresponding information to make sure it works properly, then click the " OK " button when done.

How to Assign a Static IP Address in Windows 11, 10, 8, 7, XP, or Vista

And then close the network adapter properties window.

How to Assign a Static IP Address in Windows 11, 10, 8, 7, XP, or Vista

Windows automatically runs network diagnostics to verify your connection. If there's a problem, Windows will offer you the option to run a network troubleshooting wizard. However, if you're really having trouble and the troubleshooting wizard doesn't actually fix the problem, you should check your settings and try again.

Assign a Static IP Address in Windows Vista

Changing your IP from DHCP to a static address in Vista is similar to other versions of Windows, but the location is slightly different. Open the Start Menu, right-click Network, and select Properties.

How to Assign a Static IP Address in Windows 11, 10, 8, 7, XP, or Vista

On the Network and Sharing Center window that opens, click Manage network connections.

How to Assign a Static IP Address in Windows 11, 10, 8, 7, XP, or Vista

Right-click the network adapter you want to assign an IP address to and click Properties .

How to Assign a Static IP Address in Windows 11, 10, 8, 7, XP, or Vista

Select Internet Protocol Version 4 (TCP/IPv4) then click the Properties button .

How to Assign a Static IP Address in Windows 11, 10, 8, 7, XP, or Vista

Now change the IP, Subnet mask, default gateway, and DNS server address, when done click OK .

How to Assign a Static IP Address in Windows 11, 10, 8, 7, XP, or Vista

You need to close the Local Area Connection Properties window for the settings to take effect.

How to Assign a Static IP Address in Windows 11, 10, 8, 7, XP, or Vista

Open Command Prompt and use the ipconfig command to verify the changes were successful.

How to Assign a Static IP Address in Windows 11, 10, 8, 7, XP, or Vista

Assign a static IP address in Windows XP

To assign a static IP address in Windows XP, right-click on the " My Network Places " icon, then select " Properties ".

How to Assign a Static IP Address in Windows 11, 10, 8, 7, XP, or Vista

Right click on the adapter you want to set the IP for and then select " Properties " from the context menu.

How to Assign a Static IP Address in Windows 11, 10, 8, 7, XP, or Vista

Select the " Internet Protocol (TCP/IP) " item, then click the " Properties " button.

How to Assign a Static IP Address in Windows 11, 10, 8, 7, XP, or Vista

Select the " Use the following IP address " option . Enter the IP address, subnet mask, default gateway, and DNS server address you want to use. When done, click the " OK " button.

How to Assign a Static IP Address in Windows 11, 10, 8, 7, XP, or Vista

You need to close the adapter properties window before the changes take effect.

How to Assign a Static IP Address in Windows 11, 10, 8, 7, XP, or Vista

Users can verify the new settings using the ipconfig command in Command Prompt.

How to Assign a Static IP Address in Windows 11, 10, 8, 7, XP, or Vista

In general, it is best to let your router automatically assign IP addresses to your devices. Occasionally, you may want to set a static IP address for a specific device. While it is possible to set static IP addresses on your devices, it is still recommended that you set a static IP address on your router if possible.

How to set up static IP using Command Prompt

The above method, using GUI Settings, is just one way to adjust your IP address settings. For those who prefer the command line over the GUI, fortunately, there are alternatives. For example, you can also use Command Prompt and set the address with just a few commands.

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

1. Go to the search bar in the Start menu, type cmd and launch CMD with admin rights .

2. Type the following command into CMD and press Enter :

ipconfig /all

3. In Ethernet adapter , note the information for the following data:

  • IPv4
  • Subnet mask
  • Default Gateway
  • DNS Servers

4. Type the following command to assign a static IP address on Windows and press 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 your adapter name and 10.1.4.220 255.255.255.0 10.1.4.1 with the device's IP address, subnet mask, and default gateway address corresponding to your network configuration.

5. Now, type the following command to set the DNS server address and press Enter :

netsh interface ip set dns name= "Ethernet1" static 10.1.4.1
How to Assign a Static IP Address in Windows 11, 10, 8, 7, XP, or Vista
Set Static IP Using Command Prompt

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 that is primarily useful for power users, designed to provide more control and management through task automation. If any of the above methods fail, you can also use PowerShell to set up a static IP address. Here’s how you can get started:

1. Go to the search bar in the Start menu, type powershell and run it with admin rights.

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

Get-NetIPConfiguration

3. Confirm the following information fields:

  • InterfaceIndex
  • IPv4Address
  • IPv4DefaultGateway
  • DNSServer

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

New-NetIPAddress -InterfaceIndex 10 -IPAddress 10.1.4.119 -PrefixLength 24 -DefaultGateway 10.1.4.1

5. Here, replace all the values ​​of the information. Replace the InterfaceIndex number (10) with the number assigned to your adapter. Similarly, replace the IPAddress above with a static IP address that you want to set.

6. Finally, type the following command to assign the DNS server address and press Enter :

Set-DnsClientServerAddress -InterfaceIndex 10 -ServerAddresses 10.1.4.1

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

You will have a new static IP address immediately after completing all the above steps.

When to use static IP address?

While DHCP is great and makes our lives easier, there are situations where using a manually assigned static IP address is quite handy. Let’s look at a few situations where you would want to assign a static IP address to illustrate the benefits.

You need reliable name resolution on your network for computers to be found accurately and consistently. While network protocols have evolved over the years and most of the time using a more abstract protocol like SMB (Server Message Block) to access shared computers and folders on your network using the familiar //officecomputer/shared_music/ style address still works fine, for some applications it breaks down. For example, when setting up media sync on XBMC, you need to use the IP address of the media source instead of the SMB name.

Anytime you rely on a computer or software to accurately and instantly locate another computer on your network (as is the case with the XBMC example - client devices need to find the media server hosting the document) with the least chance of error, assigning a static IP address is the best way to go. Direct IP-based resolution remains the most stable and error-free method of communication on the network.

You want to impose a human-friendly numbering scheme on your network devices. For networking tasks like giving your friend’s iPad or laptop an address, you probably don’t care where the IP comes from in the available address block because you don’t really need to know (or care). If you have devices on your network that you frequently access using command line tools or other IP-oriented applications, then assigning permanent addresses to those devices in a human-friendly scheme can be really useful.

For example, normally the router will assign any available address to the 3 Raspberry Pi XBMC units. Since the author of this article frequently modifies those units and accesses them by their IP addresses, it makes sense to permanently assign them sensible and memorable addresses:

See also:

Sign up and earn $1000 a day ⋙

Leave a Comment

Yoga exercises to treat insomnia

Yoga exercises to treat insomnia

Yoga can provide many health benefits, including better sleep. Because yoga can be relaxing and restorative, its a great way to beat insomnia after a busy day.

What is the flower of the other shore? Meaning and legend of the flower of the other shore

What is the flower of the other shore? Meaning and legend of the flower of the other shore

The flower of the other shore is a unique flower, carrying many unique meanings. So what is the flower of the other shore, is the flower of the other shore real, what is the meaning and legend of the flower of the other shore?

Healthy snacks that help you lose weight

Healthy snacks that help you lose weight

Craving for snacks but afraid of gaining weight? Dont worry, lets explore together many types of weight loss snacks that are high in fiber, low in calories without making you try to starve yourself.

What to do when you have trouble sleeping?

What to do when you have trouble sleeping?

Prioritizing a consistent sleep schedule and evening routine can help improve the quality of your sleep. Heres what you need to know to stop tossing and turning at night.

How to add a printer to Windows 10

How to add a printer to Windows 10

Adding a printer to Windows 10 is simple, although the process for wired devices will be different than for wireless devices.

The most commonly deficient nutrients in the diet

The most commonly deficient nutrients in the diet

Diet is important to our health. Yet most of our meals are lacking in these six important nutrients.

How to get beautiful nails quickly

How to get beautiful nails quickly

You want to have a beautiful, shiny, healthy nail quickly. The simple tips for beautiful nails below will be useful for you.

The best laptops for students in 2025

The best laptops for students in 2025

Students need a specific type of laptop for their studies. It should not only be powerful enough to perform well in their chosen major, but also compact and light enough to carry around all day.

Ways to reduce the risk of birth defects in the fetus

Ways to reduce the risk of birth defects in the fetus

Birth defects are something no one wants. Although they cannot be completely prevented, you can take the following steps to reduce the risk of birth defects in your baby.

How to check RAM and check RAM errors on your computer with the highest accuracy rate

How to check RAM and check RAM errors on your computer with the highest accuracy rate

As you know, RAM is a very important hardware part in a computer, acting as memory to process data and is the factor that determines the speed of a laptop or PC. In the article below, WebTech360 will introduce you to some ways to check for RAM errors using software on Windows.

Top 5 best automatic home coffee makers

Top 5 best automatic home coffee makers

The automatic home coffee maker is a modern and professional product, bringing you and your family delicious cups of coffee with just a few quick steps.

Difference between regular TV and Smart TV

Difference between regular TV and Smart TV

Smart TVs have really taken the world by storm. With so many great features and the ability to connect to the Internet, technology has changed the way we watch TV.

Why doesnt the freezer have a light but the refrigerator does?

Why doesnt the freezer have a light but the refrigerator does?

Refrigerators are familiar appliances in families. Refrigerators usually have 2 compartments, the cool compartment is spacious and has a light that automatically turns on every time the user opens it, while the freezer compartment is narrow and has no light.

2 Ways to Fix Network Congestion That Slows Down Wi-Fi

2 Ways to Fix Network Congestion That Slows Down Wi-Fi

Wi-Fi networks are affected by many factors beyond routers, bandwidth, and interference, but there are some smart ways to boost your network.

How to Downgrade from iOS 17 to iOS 16 without Losing Data using Tenorshare Reiboot

How to Downgrade from iOS 17 to iOS 16 without Losing Data using Tenorshare Reiboot

If you want to go back to stable iOS 16 on your phone, here is the basic guide to uninstall iOS 17 and downgrade from iOS 17 to 16.