Usually, when a computer connects to the network, it receives a dynamic IP address assigned by the local Dynamic Host Configuration Protocol (DHCP) server. The only problem is that this configuration can change at any time, as soon as you restart the computer or after the settings expire, and this can cause services like port forwarding and remote desktop to stop working. A static network configuration always maintains the same settings, making it ideal for hosting services that other users can access through the network. This guide will teach you the steps to set a static IP (version 4) address on Windows 11. (See also this video tutorial with the steps to complete this task.)

Assign static IP address on Windows 11 from Command Prompt Assign static IP address on Windows 11 from PowerShell Assign static IP address on Windows 11 from Settings Assign static IP address on Windows 11 from Control Panel

Assign static IP address on Windows 11 from Command Prompt

To set a static IP address on Windows 11 with Command Prompt, use these steps: After you complete the steps, you can use the ping command (for example ping google.com) to see if the configuration is working correctly.

IPv4 Subnet mask Default Gateway DNS Servers

In the above command, replace Ethernet0 with the name of your network adapter. Change 10.1.4.119 255.255.255.0 10.1.4.1 with the device IP address, subnet mask, and default gateway address corresponding to the local area network. 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. In the command, change Ethernet0 with the adapter’s name and 8.8.8.8 with an alternate DNS server address.

Assign static IP address on Windows 11 from PowerShell

You can use PowerShell with the “NetTCPIP” module to manage networking settings, including changing the IP address settings to a static configuration. To set a static IP address with PowerShell, use these steps: Once you complete the steps, the new network configuration will apply to the computer.

InterfaceIndex IPv4Address IPv4DefaultGateway DNSServer

In the command, replace the InterfaceIndex number (10) 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.

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 (10) with your network adapter’s corresponding number. Also, change ServerAddresses with the DNS IP address. Regardless of your chosen method, always assign a TCP/IP address in the network range and outside of the DHCP server scope to allow proper connectivity and avoid configuration conflicts. The reason is that multiple computers sharing the same address will cause problems, preventing them from connecting to the internet.

Assign static IP address on Windows 11 from Settings

On Windows 11, you can set a static IP address configuration from the Settings app for wireless and wired adapters.

Set static IP address on Wi-Fi adapter

To assign a static IP address configuration to a Wi-Fi adapter, use these steps: Once you complete the steps, the static network configuration will apply to the computer. You can test the new settings by opening the web browser and loading a website.

Off: Transmits all DNS traffic without encryption. On (automatic template): Sends all DNS traffic with encryption. On (manual template): Allows you to specify a specific template. Only required if the DNS service doesn’t work automatically or has a template that works as expected.

Set static IP address on Ethernet adapter

To assign a static IP address to an Ethernet (wired) adapter on Windows 11, use these steps: After you complete the steps, you can test your settings using your web browser to open a website.

Off: Transmits all DNS traffic without encryption. On (automatic template): Sends all DNS traffic with encryption. On (manual template): Allows you to specify a specific template. Only required if the DNS service doesn’t work automatically or has a template that works as expected.

Assign static IP address on Windows 11 from Control Panel

On Windows 11, you can still use Control Panel to change the IP settings for Ethernet or Wi-Fi adapters. To assign a static IP configuration through Control Panel, use these steps: Once you complete the steps, you can open the web browser and load a website to see if the configuration works.

If you want to revert the changes, you can use these instructions to remove the static settings to configure a dynamic IP address on Windows 11. All content on this site is provided with no warranties, express or implied. Use any information at your own risk. Always backup of your device and files before making any changes. Privacy policy info.