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

10 Best Ways to Use Embedded Images in Email Newsletters

10 Best Ways to Use Embedded Images in Email Newsletters

Images in your newsletter enhance your message and motivate readers to feel or take action, making them an important part of your email marketing strategy.

How to Make Music Sound Like Hi-Res Audio Without Spending a Lot of Money

How to Make Music Sound Like Hi-Res Audio Without Spending a Lot of Money

With just a few smart choices and simple upgrades, you can dramatically improve your audio experience without having to spend a fortune on expensive equipment.

8 Galaxy AI Features Youll Need Every Day

8 Galaxy AI Features Youll Need Every Day

The Galaxy AI has been performing extremely well lately, and you can count on some of its features almost every day.

Motivational status, good quotes to help regain faith in life

Motivational status, good quotes to help regain faith in life

Motivational status can help you restore your mood and move forward positively. The article will summarize for you good quotes about motivation on the Internet.

Samsung is about to launch a phone rental service

Samsung is about to launch a phone rental service

You want to buy Samsung Galaxy S25 but your budget is not too much. Or you simply want to try out the experience of Samsung's flagship smartphone.

Googles Daily Listen experiment turns the Discover feed into an AI podcast

Googles Daily Listen experiment turns the Discover feed into an AI podcast

If you're tired of reading breaking news and interesting articles on Google Search and Discovery, you'll be glad to know that you may not have to do so anymore.

Fix Google Chrome crash frequently, Chrome automatically shuts down

Fix Google Chrome crash frequently, Chrome automatically shuts down

Although it is one of the most popular browsers in the world with millions of users every day, Google Chrome is not immune to some minor errors such as automatically shutting down the browser, crashing Chrome, automatically reloading the page...

What exactly is a meteor shower?

What exactly is a meteor shower?

Several times a year, the deep night sky above us puts on a spectacular show of lights streaking through the darkness.

Analyzing How Kabbalah Numerology Works

Analyzing How Kabbalah Numerology Works

Kabbalah Numerology is a way to determine your inner purpose and life path. Let's analyze how Kabbalah Numerology works.

A hacker only needs a lighter to break into a computer.

A hacker only needs a lighter to break into a computer.

A hacker and hardware modder named David Buchanan has just gained root access (highest administrative rights) on a laptop using only... a lighter, making the online community stop worrying about a new security vulnerability.

Would a 15-minute movie make you buy Apple Vision Pro?

Would a 15-minute movie make you buy Apple Vision Pro?

Perhaps to expand its rather limited audience, Apple has just released its first short film, along with a slew of immersive content in development.

Minecraft is now available in its native version for PS5, free on PS4

Minecraft is now available in its native version for PS5, free on PS4

Minecraft, the wildly popular 3D blocky world exploration game owned by Microsoft, is now available on nearly every major gaming hardware platform — except the PlayStation 5.

What is the CORREL function in Excel?

What is the CORREL function in Excel?

Data can be overwhelming, but Excel's CORREL function helps you cut through the noise. Calculating the correlation coefficient is the secret weapon for uncovering hidden trends and making smarter decisions.

What happens if you lose your Google account?

What happens if you lose your Google account?

Losing access to your Google account can have serious consequences beyond not being able to send and receive email.

Google Launches AI Video Creation Feature on Gemini

Google Launches AI Video Creation Feature on Gemini

Google has just announced that users can now create videos using artificial intelligence through its Gemini chatbot and the recently launched experimental tool Whisk.