StackHowTo

  • How To Set Static IP Address in Windows 10 using CMD

I n this tutorial, we are going to see how to set static IP address in Windows 10 using CMD . There are several methods to set a static IP address in Windows 10. In this tutorial, we will see together how to set a static IP address from the Command Prompt.

In Windows 10, setting a static IP address for your device is an essential configuration that may be required in a number of scenarios. For example, if you plan to share files or a printer on a local network, or when you try to set up port forwarding.

Using CMD may seem difficult for some users, yet it is one of the fastest ways to assign a static IP address in Windows 10.

how to assign ip address in windows 10 using cmd

  • IPv4 address
  • Subnet mask
  • Default gateway
  • DNS servers

how to assign ip address in windows 10 using cmd

  • Types of Ethernet Cable
  • How to Install CAB File in Windows 10 using Command Line
  • How to Change Multiple File Extensions at Once in Windows 10 Using PowerShell
  • How to Make Taskbar Buttons Smaller in Windows 10
  • How to Run AutoHotKey Script on Startup Windows 10
  • How to Remap Keyboard Keys in Windows 10
  • How to Search Files by Size in File Explorer on Windows 10
  • How to Check Internet Data Usage in Windows 10
  • How to Change Folder Background Color in Windows 10
  • How to Turn off Location on Laptop Windows 10
  • How to Disable Sleep Option from Windows 10 Start Menu
  • How to Wake Up Computer From Sleep Mode in Windows 10 with Mouse
  • How to Wake Up Computer From Sleep Mode in Windows 10 with Keyboard
  • Batch File To Display Popup Message in Windows 10
  • How to Display Popup Reminder in Windows 10
  • How to See PC Startup and Shutdown History in Windows 10
  • How to Record Your Screen with VLC on Windows 7/8/10
  • How to Change Paging File Size in Windows 10
  • How to Display Full Path in Title Bar of File Explorer on Windows 10
  • How to Cancel Shutdown on Windows 10
  • How to Schedule Auto Shutdown in Windows 10
  • How to Schedule a Scan in Windows Defender
  • How to Calculate Total Duration of Multiple Video Clips in Windows 10
  • How to Fix Drag and Drop Problems in Windows 10
  • How to Disable Power Throttling in Windows 10
  • How to Run Program as Administrator Without Password Prompt in windows 10
  • How to Limit Windows Defender CPU Usage
  • How to Check if Windows 10 is Activated
  • How to Fix Right Click on Desktop Not Working in Windows 10
  • Image Resizer on Right-click for Windows 10
  • How to Change Computer Name in Windows 10
  • How to Change Account Picture in Windows 10
  • How to Zoom in and out in CMD and PowerShell
  • How to Lock Screen After Inactivity on Windows 10
  • How to Sync Computer Time With Internet in Windows 10
  • Command To Check Open Ports in Windows
  • How to Keep a Window Always On Top on Windows 10
  • How to Increase Font Size in Windows 10
  • How to Change Cursor Color in Windows 10
  • How to Change Cursor Size in Windows 10
  • How to Change Default PDF viewer on Windows 10
  • How to Disable Security Questions in Windows 10
  • How to Pin Specific Settings to the Start Menu in Windows 10
  • How to Format USB Device When FAT32 Option is Not Available
  • How to Automatically Open a Web Page at a Specific Time
  • How to Restart explorer.exe in Windows 10 Using CMD
  • How to Restart Explorer.exe in Windows 10 [2 Methods]
  • How to Add Program Shortcut to Start Menu in Windows 10
  • Hibernate Option Not Showing In Windows 10
  • How To Delete Previous Version of Windows in Windows 10
  • How to Add Print Option in Right-Click Menu
  • How to Delay Startup Programs in Windows 10/8/7
  • How to Disable Task Manager on Windows 10
  • How to Turn on Network Discovery in Windows 10
  • How to Check if Virtualization is Enabled in Windows 10
  • How to Password Protect a Zip File on Windows 10
  • How To Change User Folder Name in Windows 10
  • How to Restore Drivers in Windows 10
  • How to Backup Drivers using PowerShell Command in Windows 10
  • How to Add Store Apps to Startup in Windows 10
  • How to Enable Fingerprint in Windows 10
  • How to Enable Autocorrect and Predictive Text in Windows 10
  • How To Open a Second File Explorer Window in Windows 10
  • How to Block Websites On Your Computer
  • Check Disk Command in Windows 10
  • How to Activate a Window by Hovering Over it with the Mouse in Windows 10
  • How to Control Volume for Individual Programs in Windows 10
  • How to Schedule Restart in Windows 10
  • How to Change Microsoft Store Region in Windows 10
  • How to Hide the Clock From Windows 10 Taskbar
  • How to Enable Number Pad on Keyboard Windows 10
  • How to Turn Off Taskbar Thumbnail Previews in Windows 10
  • How Can I See All Drives in CMD
  • How to Show All Drives in Windows 10 File Explorer
  • Windows 10 Privacy Settings to Turn Off
  • How to Change Desktop Icons in Windows 10
  • How to Force a Program to Open in Full Screen in Windows 10
  • How to Delete Temporary Files in Windows 10
  • How to Enable Startup Sound in Windows 10
  • How to Reset All Default Apps in Windows 10
  • How to Change Default Action on Connecting a USB Device Windows 10
  • How to Remove Old Drivers From Windows 10
  • Where is the Drivers Folder in Windows 10
  • How to Reset Windows Update in Windows 10
  • How to Format USB Using CMD on Windows 10
  • How To Check WiFi Signal Strength on Windows 10 Using CMD
  • How to Remove “Show Desktop” Button on Windows 10
  • How to Enable Remote Desktop on Windows 10
  • How To Open File Explorer To “This PC”
  • How to Stop the Screen From Turning Off on Windows 10
  • How to Change Default Folder Name in Windows 10
  • How to Display Day of Week in Windows 10 Taskbar
  • How To Display Windows 10 Start Menu in Full Screen
  • How to Create a New Library in Windows 10
  • How to Reset the Settings App in Windows 10
  • How To Disable Startup Programs in Windows 10
  • How to Enable Registry Backup in Windows 10
  • How to Remove Password at Windows 10 Startup
  • How to Reset Windows 10 To Factory Settings
  • How To Enable or Disable Night Light in Windows 10
  • How to Add Clocks to Start Menu on Windows 10
  • How to Disable Bing Web Search Results in Windows 10 Start Menu
  • How to check Bluetooth battery level on Windows 10
  • How To Find Out If a Program is 32 or 64-bit Windows 10
  • How To Check Bios Firmware Version in Windows 10
  • How To Activate Windows 10
  • How to enter UEFI (BIOS) on Windows 10
  • How to Boot From a USB Drive on Windows 10
  • How to Reinstall Microsoft Store in Windows 10
  • How to Enable Ultimate Performance Mode in Windows 10
  • How to Stop Apps From Running in the Background on Windows 10
  • How to Change Another User’s Password in Windows 10
  • How to Delete Local User Account using PowerShell in Windows 10
  • How to Create Local User Account using PowerShell in Windows 10
  • How to Disable User Account Control (UAC) in Windows 10
  • How to Block Inappropriate Websites on Windows 10
  • How to Set Up a Child Account in Windows 10?
  • How to Download Windows 10 ISO file (32 bits and 64 bits)
  • How to Change the Default Save Location in Windows 10
  • How to Add Open Command Prompt Here to right-click Menu in Windows 10
  • Add Open PowerShell Window Here as Administrator in Windows 10
  • How to Mount ISO Images on Windows 10
  • How to Clear DNS Cache on Windows 10
  • How to Change DNS Server in Windows 10
  • How to Change Temp Folder Location in Windows 10
  • How to Reduce the Size of the Search Bar in Windows 10
  • How to Force Close a Program on Windows Without Task Manager
  • How to Force Close a Program with Task Manager
  • How to Speed Up Windows 10 Startup
  • How to Enable Sandbox in Windows 10
  • How to Disable Automatic Installation of Suggested Apps in Windows 10
  • No Sounds on Windows 10? Here’s How to Fix It
  • No Audio Output Device Is Installed in Windows 10 Fix
  • Where is the Location of Startup Folder in Windows 10?
  • How to Create a Windows 10 Bootable USB
  • How To Run Computer Performance Test in Windows 10
  • How To Tell If Your Computer Is 32 Or 64-bit Windows 10
  • How to Remove Recycle Bin From Desktop on Windows 10
  • How to Show My Computer, Recycle Bin Icon on Windows 10
  • How To Enable Screen Saver In Windows 10
  • How to Enable or Disable Updates For Other Microsoft Products on Windows 10
  • How to Disable Windows 10 Startup Delay
  • How To Open Emoji Keyboard on Windows 10
  • How to Turn On File and Printer Sharing in Windows 10
  • How To Optimize Windows 10 For Gaming
  • How to Add Shortcuts to the “Send to” Menu in Windows 10
  • How to Change the Screen Refresh Rate of Your Monitor in Windows 10
  • How to Make a Program Run on Startup in Windows 10
  • How to Turn Off SmartScreen in Windows 10
  • How to Disable Telemetry in Windows 10
  • How to Disable Windows 10 Tracking
  • How to Disable Windows 10 Data Collection
  • How to Free Up Disk Space in Windows 10
  • Fast Way to Delete a Large Folder in Windows 10
  • How to Create a Printer Shortcut on Desktop Windows 10
  • How to Change Audio Output Device Per Application on Windows 10
  • How to Format a Hard Drive or SSD in Windows 10
  • How to Switch Between Windows in Windows 10 using Keyboard
  • How to Download and Install Windows Media Player for Windows 10
  • How to Create a Shortcut on Desktop Windows 10
  • How to Block reopening of Programs on startup Windows 10
  • How To Limit Windows Update Bandwidth in Windows 10
  • How to remove the 3D Objects folder from This PC in Windows 10
  • How to Remove Old User Account Pictures in Windows 10
  • How to Delete the Hibernation File hiberfil.sys
  • How to Show Seconds in System Clock in Windows 10
  • How to Open Files and Folders with Single Click in Windows 10
  • How to Reset Your Microsoft Account Password for Windows 10
  • How to Fix Corrupted Files in Windows 10
  • How To Export And Import Start Menu Layout In Windows 10
  • How to Stop Automatic Restart After Updating Windows 10
  • How to Remove Ads From the Start Menu in Windows 10
  • How to Create a Homegroup Network in Windows 10
  • How to Disable ads in File Explorer in Windows 10
  • How To Fix gpedit.msc Group Policy Editor Missing in Windows 10
  • How to Change the Network Connection Priority in Windows 10
  • How to Watch Videos While Working on Other Tasks on Windows 10 Computer
  • How to Create a System Repair Disk in Windows 10
  • How to Customize the Taskbar in Windows 10
  • How to Change Taskbar Icons in Windows 10
  • How to Show the Control Panel in File Explorer on Windows 10
  • How to Uninstall Updates in Windows 10
  • How to reset all Local Group Policy on Windows 10
  • How To Turn Windows 10 Computer Into a Wi-Fi Hotspot
  • How to Reset Network Settings in Windows 10 Using CMD
  • How to Disable the Game Bar in Windows 10
  • How to Clear Windows 10 Update Cache
  • How to Create an Invisible Folder without Any Name in Windows 10
  • How to Add Open With to Right-click Menu in Windows 10
  • How to Change Default Apps on Windows 10
  • How to Prevent Copying Files From USB to PC
  • How to Find Your WiFi Password on Windows 10
  • How to Hide Your Name and Email Address on Windows Login
  • How to Speed Up File Transfer in Windows 10
  • How to Remove Power or Shutdown Button from Lock Screen in Windows 10
  • How to Start Windows 10 in Safe Mode
  • How to Stop Lock Screen ads in Windows 10
  • How to Enable Guest Account in Windows 10 using CMD
  • How to Restore Windows 10 Image Backup From Hard Drive
  • How to Create a System Image in Windows 10
  • How to Disable Automatic Update on Windows 10
  • How to Stop Programs From Automatically Updating in Windows 10
  • How to Take a Screenshot on Windows 10
  • Windows 10: Start Menu And Taskbar Not Working
  • How to Rebuild a Broken Icon Cache in Windows 10
  • How to Turn Off Windows Security Notifications in Windows 10
  • How to Preview a File Without Opening it in Windows 10
  • How to Permanently Disable Windows Defender on Windows 10
  • How to Disable the Action Center in Windows 10
  • How To Reinstall Microsoft Edge In Windows 10
  • How to Uninstall Microsoft Edge in Windows 10
  • How to Change Start Menu and Taskbar Color in Windows 10
  • How to Get Windows 7 Start Menu on Windows 10 with Classic Shell
  • Why the Start Menu is Slow to Open in Windows 10
  • How to Change Login Screen Background on Windows 10
  • How to Restore Windows Photo Viewer in Windows 10
  • How to Fix Screen Flickering in Windows 10
  • How to Remove Windows 10’s Built-in Apps
  • How to Fix Black Screen on Windows 10
  • How to Remove Search Bar From Taskbar on Windows 10
  • How to Disable Windows 10 Peer-to-Peer Updates
  • How to Downgrade to Windows 7 From Windows 10
  • How to Fix Windows 10 Start Menu And Cortana Not Working
  • How to Backup and Restore Registry in Windows 10
  • How to Change the Default Installation Location on Windows Using Regedit
  • How to Force Restart Windows 10 with Keyboard
  • How to Remove Shortcut Arrow from Desktop Icons on Windows 10
  • How to Find Computer Specs on Windows 10
  • How To Move Your Libraries To Another Drive in Windows 10
  • How to Enable Numlock at Windows Startup
  • How to Change CMD Color in Windows 10
  • How To Increase Font Size In CMD
  • How To Assign Letter To Drive In CMD
  • How To Get MAC Address In CMD
  • How to Open File Explorer Using CMD on Windows 10
  • How To Run Batch File On Windows Startup
  • How To Run EXE From A Batch File
  • How To Run A Python Script From A Batch File
  • How to Run PowerShell Script From A Batch File
  • How to Run Multiple Batch Files From One Batch File
  • Batch File To Copy All Files From One Folder To Another
  • How To Compare Strings In Batch Files
  • How To Concatenate Variables In Windows Batch File
  • How To Clear A Variable In A Batch File

For Loop Counting From 1 To N in a Batch File

  • How to Run Batch File Automatically Every X Minutes
  • Batch File To Get and Set System Date
  • Batch File To Set Default Programs in Windows 10
  • Batch File To Get Computer Name
  • Batch File To Get Current Directory
  • Batch File To Get Input From User
  • Batch File To Get IP Address
  • Batch File To Get MAC Address
  • How to Add a Registry Key in a Batch File
  • Batch File To Create Local User Accounts
  • Batch File To Create a Text File
  • Batch File To Create a Folder
  • Batch File To Create Folders From a List
  • Batch File To Write Ping Results To a Text File
  • Batch File To Write Variable To a Text File
  • Batch File To Write To a Text File
  • Batch File To Read XML File
  • Batch File To Read CSV / XLS
  • Batch File To Read Text File Line By Line into A Variable
  • Batch File To List Folder Names
  • Batch File To List Folders and Subfolders
  • Batch File To List Filenames in a Specified Folder
  • Batch File to List All Files in a Folder and Subfolders
  • How to Check Internet Connection using Batch File
  • How to Check the Size of a File in a Windows Batch Script
  • How To Check Batch File Error
  • Batch File To Check If Folder Exists
  • How to Check If a Path is File or Directory using Batch
  • Batch File To Delete Folders Older Than N Days
  • Batch File To Delete All Files in Folder Older Than N Days
  • Batch File To Delete All Files In Folder
  • Batch File To Delete A File If Exists
  • Batch File To Check If Multiple Files Exist
  • Batch File To Check If File Exists
  • Batch File Commands List With Examples
  • 8 Batch File Commands You Should Know
  • How to Create a Batch File in Windows
  • How to Run Batch File in CMD
  • How to Run EXE File in CMD
  • How to Change the MAC Address on Windows 10
  • How to Create a Website Shortcut on Desktop In Windows 10
  • 29 Run Commands in Windows You Should Know
  • How to Ping IP Address in CMD
  • How to Get IP Address Using Ipconfig in CMD
  • How to Delete Folder Using CMD in Windows 10
  • CMD Commands List You Should Know
  • How to Change Lock Screen in Windows 10
  • How to Show My Computer Icon on Desktop in Windows 10
  • How to Change Compatibility Mode in Windows 10
  • How to Uninstall Internet Explorer in Windows 10
  • How to Add or Change Desktop Theme in Windows 10
  • How to Disable Transparency Effects in Windows 10
  • How to Delete and Uninstall Fonts in Windows 10
  • How to Install New Fonts in Windows 10
  • How to Disable Lock Screen on Windows 10 Using Registry
  • How to Customize Action Center in Windows 10
  • How to Disable Cortana in Windows 10 using Registry
  • Battery Icon Missing From Taskbar in Windows 10 [Solved]
  • How to Change Desktop Background in Windows 10
  • How to Increase Battery Life of Windows 10 Laptop
  • How to Turn off Notifications in Windows 10
  • How to Create Keyboard Shortcuts in Windows 10
  • How to Change Desktop Icon Size in Windows 10
  • How to Turn On Dark Mode on Opera
  • How to Turn On Dark Mode on Mozilla Firefox
  • How to Turn On Dark Mode on Google Chrome
  • How to Turn On Dark Mode on Microsoft Edge
  • How to Enable Dark Mode in Windows 10
  • How to Increase Mouse Sensitivity in Windows 10
  • How to Find Which Programs are Slowing Down Your Boot Time in Windows 10
  • How to Defrag the Hard Drive in Windows 10

How to Copy and Paste Into Command Prompt in Windows 10

  • How to Enable the On-Screen Keyboard in Windows 10
  • How to Check Laptop Battery Health in Windows 10

How to Use Offline Maps in Windows 10

  • How to Calibrate Your Monitor in Windows 10
  • How to Enable God Mode in Windows 10
  • How to Increase Processor Speed in Windows 10
  • How to Pin a Folder to Taskbar in Windows 10
  • How to Pin a Website to Taskbar in Windows 10
  • How to Switch Between Desktops in Windows 10
  • How to Make Windows 10 Boot Faster
  • How to Stop Windows 10 From Sleeping
  • How to Set an Alarm Clock on Windows 10
  • How to Go Directly to Desktop in Windows 10
  • How to Create a New Folder on Windows 10
  • How to Reduce Blue Light on Computer Screen on Windows 10
  • How to Turn on Speech Recognition in Windows 10
  • How to Sync My Settings in Windows 10
  • How to Change the Screen Resolution on Windows 10
  • How to Create a New User on Windows 10
  • How to Turn Off Tablet Mode in Windows 10
  • How to Uninstall a Program on Windows 10
  • How To Change Password In Windows 10
  • Top Keyboard Shortcuts in Windows 10
  • How to Speed Up Windows 10 Shutdown
  • How to Change Default Browser in Windows 10
  • How to Disable the Lock Screen in Windows 10
  • How to disable User Account Control in Windows 10
  • How to Hide File Extensions in Windows 10
  • How to Show Hidden Files and File Extensions in Windows 10
  • How to Create a Restore Point with System Protection Enabled in Windows 10
  • How to Delete Browsing History on Firefox in Windows 10
  • How to Delete Browsing History on Microsoft Edge in Windows 10
  • How to Delete Browsing History on Google Chrome in Windows 10

You May Also Like

For Loop Counting From 1 To N in a Batch File

Leave a Reply Cancel reply

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

Save my name, email, and website in this browser for the next time I comment.

How-To Geek

How to change your ip address from the command prompt in windows.

It's easy enough to change an IP address on your PC using Control Panel, but did you know you can also do it from the Command Prompt?

Quick Links

Launch command prompt as admin to use netsh, view your network information with command prompt, change your ip address, subnet mask, and default gateway, change your dns settings in command prompt, key takeaways.

  • You must launch Command Prompt, PowerShell, or Terminal as admin to use netsh.
  • Use the "netsh interface ipv4 show config" command to find the full name of the network interface you want to change.
  • Modify your IP address, subnet mask, and default gateway using the command "netsh interface ipv4 set address". You can also change DNS settings using "netsh interface ipv4 set dns".

Changing your IP address with the Control Panel interface isn't difficult, but it does require clicking through a number of different windows and dialog boxes. If you're a fan of the Command Prompt, though, you can get it done more quickly using the netsh command, which is just one of the great network utilities built into Windows .

We're going to use the netsh command, but it requires that Command Prompt be launched as administrator to work. The netsh command allows you to configure just about any aspect of your network connections in Windows.

To launch Command Prompt (or PowerShell) as Admin, open up the Start Menu, search "cmd," hover over the result, then click "Run as Administrator."

In Windows 10 or Windows 11, you can also right-click the Start menu (or press Windows+X on your keyboard) to open the Power User Menu and choose "PowerShell (Admin)."

You can (and should ) use PowerShell for this instead.

Before you change your IP address and related information, you'll need to find the full name of the network for the interface you want to change. To do this, type the following command:

netsh interface ipv4 show config

Scroll down until you see the interface you're looking for. In our example, we're going to modify the Wi-Fi interface, which on our machine is just named "Wi-Fi." You'll also see other default names that Windows assigns to interfaces, such as "Local Area Connection," "Local Area Connection* 2," and "Ethernet." Just find the one you're looking for and make note of the exact name. You can also copy and paste the name to Notepad and then back into Command Prompt later to make things easier.

With the interface name in hand, you're ready to change the IP Address, subnet mask, and gateway. To do this, you'll issue a command using the following syntax:

netsh interface ipv4 set address name="YOUR INTERFACE NAME" static IP_ADDRESS SUBNET_MASK GATEWAY

So, for example, your command might look something like the following:

netsh interface ipv4 set address name="Wi-Fi" static 192.168.3.8 255.255.255.0 192.168.3.1

Where the info is replaced by whatever you want to use. In our example, the command does the following:

  • Uses the interface name "Wi-Fi"
  • Sets the IP address to 192.168.3.1
  • Sets the subnet mask to 255.255.255.0
  • Sets the default gateway to 192.168.3.1

And if you're using a static IP address but want to switch to using an IP address assigned automatically by a DHCP server — such as your router — you can use the following command instead:

netsh interface ipv4 set address name="YOUR INTERFACE NAME" source=dhcp

You can also use the netsh command to change the DNS servers used by a network interface. Third-party DNS servers — like Google Public DNS and OpenDNS —can be faster and more reliable than the DNS servers provided by your ISP. Whatever your reason for changing your DNS server , you can do it either at the router so it affects all the devices that get their information from the router or at the individual device. If you want to change the DNS servers for just one PC, it's easy to do with the netsh command.

You'll need to use the command twice: once to set your primary DNS server and once to set your secondary, or backup, DNS server. To set your primary DNS server, use the following syntax:

netsh interface ipv4 set dns name="YOUR INTERFACE NAME" static DNS_SERVER

So, for example, your command might look something like the following (in which we set it to Google's primary public DNS server, 8.8.8.8):

netsh interface ipv4 set dns name="Wi-Fi" static 8.8.8.8

To set your secondary DNS server, you'll use a very similar command:

netsh interface ipv4 set dns name="YOUR INTERFACE NAME" static DNS_SERVER index=2

So, continuing our example, you might set your secondary DNS as the Google Public DNS secondary server, which is 8.8.4.4:

netsh interface ipv4 set dns name="Wi-Fi" static 8.8.4.4 index=2

And just like with the IP address, you can also change it so that the network interface grabs its DNS settings automatically from a DHCP server instead. Just use the following command:

netsh interface ipv4 set dnsservers name"YOUR INTERFACE NAME" source=dhcp

And there you have it. Whether you like typing at the command prompt better or just want to impress your coworkers, now you know all the command line magic you need for changing your IP address settings.

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

Get the Windows Central Newsletter

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

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.

Ethernet settings

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

IP assignment

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

Static IP configuration

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

ipconfig command

  • 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

Command Prompt configure IP address

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

Network properties

  • Click the  Edit  button for the "IP assignment" setting.

Windows 10 IP assignment

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

Windows 10 static IP address

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

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 OpenAI won't launch a Google Search competitor or GPT-5 in the next few days, but we should expect new projects that "feel like magic" to CEO Sam Altman
  • 3 Reports indicate that Microsoft may lift the freeze on specific employee salaries while emphasizing 'more' accountability for top executives
  • 4 Every Dark Souls game gets rare sale for huge discounts ahead of Elden Ring's Shadow of the Erdtree DLC
  • 5 Days after Sony's Helldivers 2 PSN debacle, Ghosts of Tsushima's PC release gets delisted from Steam in over 170 countries

how to assign ip address in windows 10 using cmd

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 .

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

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.

Itechtics

How to set static IP address and DNS Server using Command Line in Windows 10

Configure Static IP address and DNS Server using PowerShell in Windows 10

Repeatedly having to change your Static IP address when shifting from one network to another can be a pain in the neck. The process is lengthy on Windows 10 and a bit irritating. If you are the person who needs to switch between IP addresses, then this article is for you.

Here we shall show you how you can configure your system’s IP address directly through the command line interface on your Windows 10 platform. It is very less time consuming and can be done in a few steps.

Table of Contents

The IP address is a unique identifier of your machine that lets every other component on the network know where the packets need to be routed to. Since it is unique, it cannot conflict with another IP address on the same network.

Configure Static IP address and DNS Server using PowerShell in Windows 10

You can manage your IP address by both the Command Prompt and the PowerShell, which shall be discussed further in the article.

How to check Interface Index using PowerShell

The Interface Index is a unique number assigned to either a physical or virtual networking port. Each port is assigned a number that is used to address the respective port on the machine. For example, if there are 5 different networking adapters on a computer, each one would have its own Interface Index.

To check the associated Interface Index for each, run the following command in PowerShell with administrative privileges :

get index

In the example above, the “ifIndex” is identified as the Interface Index. Note that the ports are repeated as the first half represents IPv6, while the 2nd half represents IPv4 configuration. Nonetheless, the Interface Indexes of the same ports are the same.

Note down the associated Interface Indexes as they will be required when assigning static IPs through PowerShell.

How to set static IP address using Command Prompt

These commands are relatively easier with the Command Prompt when compared with PowerShell . You can change the IP address of your computer using this quick command.

Launch the Command Prompt with administrative privileges and then use the command below to assign the desired IP address configuration:

In the above command, you need to place the information according to your requirement. Replace NameOfPort with the alias name of the network adapter you wish to set the IP of. Also, replace [IP address] with the IP address of the port you wish to assign, replace [Subnet mask] with its subnet, and replace [Default gateway] with the gateway of the adapter.

Here is an example:

Since the name of my port is “Ethernet,” entering the command above would result in the following configuration:

ip set

How to set DNS address using Command Prompt

As you may have noticed above, we did not set up the DNS. This is because you need to enter a separate command to configure the DNS, which is as below:

This will set the first DNS entry as 8.8.8.8. Note that this will only occur if the port can communicate with the DNS. Else it will throw an exception.

The above command would result in something like this:

dns 1 set

To change the second DNS server, use the following command:

dns 2 set

Remember to change the port name, IP address, gateway, and subnet mask according to your requirement.

Each time you need to switch between your IPs and DNSs, use these commands, and it will automatically overwrite the previous entering.

How to set static IP address using PowerShell

Although the PowerShell command lines are more complex than those of the Command Prompt, they also offer more parameters to be addressed. However, we will try and keep it as plain and simple as possible.

Before we proceed further, you need to understand some terms to enter the correct parameters. Below are a few arguments and their descriptions used in PowerShell to set static IPs and DNS entries.

Now, modify the following command according to your needs, launch Windows PowerShell with administrative privileges and enter the command:

PS 1

Note that we determined the correct Interface Index using the command we had discussed earlier in the article. This is what the IP configuration of the port would look like after running the command above:

PS ip set

How to set DNS address using PowerShell

You can also use PowerShell to assign DNS addresses as well quickly. In the example below, we have assigned both the primary and the secondary DNS addresses to our port simultaneously.

PS set dns

You may repeatedly use these commands in PowerShell to overwrite new IP address, subnet mask, gateway and DNS entries of any network port you want on your PC.

Closing words

Now you do not need to worry about switching from one network to another. You can make the process even quicker by saving the respective IP configuration on your PC and copy-pasting it to the command line when required to switch.

If, however, you run into a problem associated with your computer network, you may use this guide to reset the TCP/IP stack .

  • How to Check Public IP Address Using Command Line In Windows 10/Windows 11
  • Check VPN Connection Status From Command Line In Windows

how to assign ip address in windows 10 using cmd

Pradip Shah

I have been using netsh for more than 10 years now to switch between 2 ISP’s services. My only problem was the jokers at MS kept changing command line switches with every version of Windows. XP -> 7 -> 10. Why is something beyond me.

Forgot to mention that I religiously avoid using power shell & work only with “Take Command” from JPSoft.

(Cancel Reply)

Notify me of follow-up comments by email.

Notify me of new posts by email.

Get Updates in Your Inbox

Sign up for the regular updates and be the first to know about the latest tech information

Email Address

how to assign ip address in windows 10 using cmd

  • All about AI
  • Google Bard
  • Inflection AI Pi Chatbot
  • Anthropic Claude
  • Generative AI
  • AI Image Generation
  • AI Regulation
  • AI Research
  • Large Language Models (LLM)
  • Surface Pro
  • Surface Laptop
  • Surface Book
  • Surface Duo
  • Surface Neo
  • Surface Studio
  • Surface Hub
  • Surface Pen
  • Surface Headphones
  • Surface Earbuds
  • About WinBuzzer
  • Follow Us: PUSH, Feeds, Social
  • Write for Us
  • Cookie Policy and Privacy Policy
  • Terms of Service

How to Change Your IP Address on Windows 10 (3 Methods)

We show you how to change your IP address in Windows 10 using the Settings app, Control Panel, and Command Prompt.

Featured - 3 ways to change the IP address in Windows 10

Table of Contents:

IP addresses are one of the primary ways services identify a user. Though your IP address may change automatically from time to time, if you've been assigned the wrong IP by your router or want something more static, you need to know how to change your IP address on Windows 10 manually.

What is an IP address?

An IP address is a series of numbers that identifies your device and therefore allows information to be sent between devices. Without IP addresses, computers on the internet and your local network would not be able to differentiate between different devices, routers, websites, etc.

However, IP addresses also come with some downsides. For starters, somebody may be able to use your IP address to get a general idea of your location. Services may also utilize your IP address to track you across the web.

Unfortunately, changing your IP address will with the methods outlined below will not disguise your location. As the IP address will still be connected to your ISP, it can still be traced to their nearest networking hub. It will also not help if you have been banned by a service – you're only changing the IP address on your local network, not the one the internet sees. For that kind of protection, you should consider using Tor or a VPN.

That said, if you do want to change IP address on Windows 10, you'll need to have access to your administrator account. If you do have access, you can learn how to change IP by following the steps below:

How to Change IP Address in Windows 10 via Settings

Unsurprisingly, the simplest way to change your IP address in Windows 10 is via the in-built settings app, but there are a few things you need to look out for when it comes to choosing your new IP:

Press the Start button, then click the settings cog, above the power button. Alternatively, press Windows + I .

Windows 10 - Open Settings

If your IP address is currently set manually and you're running into issues, you can change the dropdown in “Edit network IP settings” to “Automatic (DHCP)” and press “Save” .

Windows 10 - Settings - Network & Internet - Wifi - Edit IP Assignment - Automatic

When you change your IP address, it's important to make sure the information you enter is correct. Before you start, it's useful to gather:

– Your current IP address – Your subnet mask – Your gateway (router IP)

If you don't know these details, you can run the ipconfig command in Command Prompt to obtain them.

Ideally, your new IP address should be of the same format as your old one. For example, if your current IP address is 10.0.0.1, you'll probably want to keep the 10.0.0.x format. Make sure you don't set your IP to the same as your gateway or other devices on your network.

Once you're done, press “Save” .

Windows 10 - Settings - Network & Internet - Wifi - Edit IP Assignment - Manual - Fill it

How to Change your Windows 10 IP Address in Control Panel

If you prefer the old-school way of doing things, the Control Panel may be better suited to you. In some ways, its interface is easier to navigate when it comes to IP editing. Here's how you can use it for that purpose:

Press Start and then type “Control Panel” . Click the top result.

Windows 10 - Open Control Panel

At this point, you'll likely have to authenticate yourself as an administrator.

Windows 10 - Control Panel - View Network Status and Tasks - Wi-Fi Status - Properties

If your IP address is currently manually assigned and you're running into issues, you can tick “Obtain an IP address automatically” here instead and click “Save” .

Windows 10 - Control Panel - View Network Status and Tasks - Wi-Fi Status - Properties - Check Internet Protocol Version 4 - IP Automatically

Once you're done, press “OK” . You can leave the DNS fields blank, though it's worth noting that there are advantages to changing them.

Windows 10 - Control Panel - View Network Status and Tasks - Wi-Fi Status - Properties - Check Internet Protocol Version 4 - IP Manual

How to Change IP in CMD (Command Prompt)

The command-line is often the fastest way to get things done, and this is no exception. You can change your IP in Command Prompt in under a minute if you need to. Here's how:

Press Start and type “Command Prompt” , then click “Run as administrator” on the right-hand side.

Windows 10 - Open Elevated Command Prompt

Before you change your IP, you need to know the name of your interface. This will likely be “Wi-Fi” if you're on a Wi-Fi network or “Ethernet” if you're on Ethernet.

You can check yours with netsh interface IP show config . While you're there, note down its default gateway and subnet mask.

Windows 10 - Elevated Command Prompt - Enter the Command - Identify the Network Adapter

If you set your manual IP previously, you can revert it to automatic assignment via DHCP with the following command:

Remember to replace “Wi-Fi” with whatever your interface is called.

Windows 10 - Elevated Command Prompt - Command for Dinamic IP

If you'd rather set your IP address manually, you can instead use the following command:

Windows 10 - Elevated Command Prompt - Command for Static IP

Now that you know how to change your IP address on Windows 10, you may be interested in learning more about your network. Here's how you can change your network name or disable a Wi-Fi or Ethernet adapter .

Last Updated on February 14, 2022 7:43 pm CET

  • Change IP address
  • how to change ip address on pc
  • how to change ip address on windows 10
  • how to find ip address windows 10
  • windows 10 change ip address

Recent News

Cortana Skills Kit preview could be coming soon

Microsoft to Pay $242 Million in Patent Case Over Cortana

how to assign ip address in windows 10 using cmd

OpenAI Denies Search Engine Rumors, Focuses on ChatGPT Enhancements

Subscribe to WinBuzzer on Google News

how to assign ip address in windows 10 using cmd

  • PC & Mobile

How to Set a Static IP Address in Windows 10

how to assign ip address in windows 10 using cmd

Lee Stanton Lee Stanton is a versatile writer with a concentration on the software landscape, covering both mobile and desktop applications as well as online technologies. Read more June 16, 2023

There are many benefits of setting up a static IP address in Windows 10. For example, this allows you to share data like documents, files, and printers locally or using port forwarding.

How to Set a Static IP Address in Windows 10

Services and port forwarding configurations will ultimately stop functioning if you don’t set a static IP address. One of the reasons for this is that most devices utilize a dynamic IP address, which the router’s Dynamic Host Configuration Protocol (DHCP) server usually determines. These addresses can be changed at any moment, including when you restart your computer or when the dynamic settings that were used end.

Luckily, there are a couple of ways you can set a static IP address. In this article, we’ll go through and discuss the necessary steps for configuring a static IP address on both Windows 10 and 11.

There are a few different methods to set a static IP address on a Windows 10 PC. Every method works is equally effective.

Command Prompt

On a Windows 10 PC, it’s possible to configure a static IP address using the command prompt. Although some users may find it difficult, this is the fastest method.

how to assign ip address in windows 10 using cmd

Again, replace Ethernet0 with the name of your adapter and 8.8.8.8 with your DNS server address in the command.

As soon as you’ve finished the process, you may test your new setup using a command line tool (for instance, ping google.com). Check out a web page to test whether the settings work.

Control Panel

For some users, the previous method using the Command Prompt might not be for them. Luckily, there is a way to modify the IP configuration on a Windows 10 PC via the Control Panel. To set a static IP address using the Control Panel, follow these steps:

how to assign ip address in windows 10 using cmd

Now you can assign all the needed information.

how to assign ip address in windows 10 using cmd

When you’re finished with the instructions, you may open a web browser to test the setup by loading a webpage.

There is an option on Windows 10 to alter the IP address settings for connected devices via the Settings app. Here’s how:

how to assign ip address in windows 10 using cmd

Once you’ve finished following the instructions, you may verify your settings by opening a webpage in a web browser.

How to Set a Static IP Address in Windows 11

You can use the Settings app to set up a static IP address in Windows 11. Here’s how:

how to assign ip address in windows 10 using cmd

Open your default web browser and determine whether you are able to surf the internet.

As well as Windows 11, the PowerShell method works on older Windows versions too. Follow these steps to set up a static IP address using PowerShell:

how to assign ip address in windows 10 using cmd

Have All the Benefits of a Static IP Address

Setting up a static IP address in Windows 10 and 11 can come in handy in a number of situations. A Windows 11 PC or Laptop with a fixed IP address and DNS address will improve the speed of your internet connection, making it more responsive. You may also reduce ping and latency time by boosting the IP address, which will result in less lag.

Do you have a static IP address on your Windows? Have you tried setting up a static IP address? Let us know in the comment section below!

Related Posts

how to assign ip address in windows 10 using cmd

Disclaimer: Some pages on this site may include an affiliate link. This does not effect our editorial in any way.

Connecting two AirPods to a Windows PC or Mac

Lee Stanton March 14, 2024

A-Full-List-of-Command-Prompt-Commands

Digvijay Kumar March 8, 2024

EA App Game Is Already Running

Aman Kumar March 7, 2024

Send To Someone

Missing device.

Please enable JavaScript to submit this form.

WinTips.org

How to Set Static IP Address on Windows 11/10.

A static IP address is a dedicated, permanent IP address that is manually assigned to a device by a user. Unlike dynamic IP addresses, which are assigned by a DHCP Server and can change over time, static IP addresses remain fixed and do not change over time.

A static IP address can be useful in many situations, such as when hosting a website or server, setting up a virtual private network (VPN) server, forwarding ports to a specific device, accessing a networked printer, and more.

Whatever your reason may be, assigning a static IP address is a simple and straightforward task that can be done directly on the device. In this article, we will cover various methods for setting up a static IP address on Windows 11/10.

How to Assign a Static IP Address on a Windows 11 PC.

  • Set Static IP on Windows 11 Settings.
  • Set Up Static IP Address in Network Connections.
  • Assign a Static IP Address through Command Prompt.
  • Specify a Static IP Address with PowerShell.

Method 1: Manually Set a Static IP Address using Windows Settings

The most straightforward method for setting a static IP address is through Windows Settings.

1. Press Windows + I keys to open the Windows Settings app

2. Select the Network & internet tab in the left pane and then click on the active/connected network connection ( Ethernet or WiFi ) on the right pane.

How to Set Static IP Address on Windows 11/10.

3. On the network configuration page:

a. Note the current IPv4 address and the IPv4 DNS server address which automatically assigned by DHCP (usually your router).

b. Click the the Edit button next to the IP assignment section to set a Static IP Address.

How to Assign Static IP Address on Windows 11/10.

4. In Edit IP settings , change the setting from Automatic (DHCP) to Manual using the drop-down menu.

clip_image006

5. Then, Turn On the IPv4 toggle and fill out the fields below as follows:

  • IP address: Enter the static IP Address that you want to use. *

* Note: if you want to set the assigned DHCP IPv4 address you noted before as static, type this address here. (e.g. "192.168.1.217" in this example)

  • Subnet mask: Type 255.255.255.0
  • Gateway: Enter the IP address of your router. [Usually, this is the same as the IPv4 DNS server address you noted before. (e.g. "192.168.1.1" in this example)]
  • Preferred DNS: Type the IPv4 DNS server address you noted before. (e.g. "192.168.1.1" in this example).

6. When finish, click Save and you done.  You have successfully changed the IP address from dynamic to static. *

* Note: If, after following the instructions above, you lose your network connectivity, make sure you have set the correct IP address, Subnet Mask, Gateway and DNS, or change to Automatic (DHCP) again.

Assign Static IPv4 Address on Windows 10/11

Method 2: Assign a Static IP Address in Network Connections settings.

The classic and my favorite method to change the IP Address in Windows, is through the Network Connections applet.

image

3a. In Network Connections window, double-click on the active Network Connection/Adapter and click Details.

Network Connection Details

3b. In Network Connection Details window, notice and write down the following information:

  • IPv4 Address (e.g. "192.168.1.101")
  • IPv4 Subnet Mask (e.g. "255.255.255.0")
  • IPv4 Default Gateway (e.g. "192.168.1.1")
  • IPv4 DNS Server   (e.g. "192.168.1.1")

IPv4 Address Settings

3c. When done, click the Close button.

4. Now, in Network Status window, click Properties.

Network Connection Properties

5. Select Internet Protocol Version 4 (TCP/IPv4) and click Properties again.

IPv4 TCPI/IP Properties

6. In ' Internet Protocol Version 4 (TCP/IPv4) Properties' window, do the following:

a. Check the Use the following IP address option and fill the below fields as follows:

b.  At IPv4 Address field, type the static IP Address that you want to use, or if you want to set the assigned DHCP IPv4 address you noted before as static, type this address. (e.g. "192.168.1.101" in this example)

c. Then press the Tab button once to fill automatically the Subnet mask field, or type manually the Subnet mask "numbers" you noted in the step-3b above (e.g. 255.255.255.0").

d. At Default gateway field, type the IP Address of the "IPv4 Default Gateway" you noted before (This is the IP Address of your router. e.g. "192.168.1.1" in this example)

Set Static IP Address

e. Next, check the Use the following DNS addresses option and type below the IPv4 DNS Server address you noted before (e.g. "192.168.1.1" in this example), or type your preferred DNS server's address, such as the Google's public DNS Server's addresses " 8.8.8.8 " for Preferred DNS and " 8.8.4.4 " for Alternate DNS, as in this example.

Set Preferred DNS Server Address

7. Now, check the Validate settings upon exit option and click OK to save the changes.

set static ip address on windows

8. Finally, click Close to close the adapter’s properties window and you done! *

* Note: If, after following the instructions above, you lose your network connectivity, make sure you have set the correct IP address, Subnet Mask, Gateway and DNS, or change back to the Dynamic IP assignment, by checking both the " Obtain an IP address automatically "  & " Obtain DNS Server addresses automatically " options in the above screen.

Set Static IP Address on Windows 11/10

Method 3: Set Up a Static IP Address using Command Prompt

If you like commands, then here are the instructions to change your Dynamic IP address to Static, via command line.

1. Open Windows Search, type command prompt, and select Run as administrator . Then, click Yes on the UAC prompt to proceed.

command prompt

2. Proceed and view your current IP Address configuration by giving the below command and pressing Enter :

  • ipconfig/all

ipconfig/all

3. After command execution, scroll up and and note the name of the network adapter that you are currently using (e.g. "Wi-Fi" in this example), and then note the following details below it:

  • IPv4 Address (e.g. "192.168.1.100")
  • Subnet Mask (e.g. "255.255.255.0")
  • Default Gateway (e.g. "192.168.1.1")
  • DNS Server   (e.g. "192.168.1.1")

ip configuration

2a. To change the Dynamic IP address configuration you already have to a static IP address configuration, enter the following command:*

  • netsh interface ip set address name=" Adapter's_Name " static IPAddress SubnetMask DefaultGateway

* Note: In the above command:*

  • Replace Adapter's_Name with the name of the active network adapter, (e.g. " Wi-Fi " in this example)
  • Replace the IPAddress with the IPv4 Address you noted above (e.g. " 192.168.1.100 " in this example), or type the Static IP Address that you want to use.
  • Replace the SubnetMask with the " Subnet mask" address you noted above (e.g. " 192.168.1.1 " in this example).

* In this example, the command will be:

  • netsh interface ip set address name="Wi-Fi" static 192.168.1.100 255.255.255.0 192.168.1.1

setup static ip address command prompt

2b. To assign a DNS server address, type or paste the following command and press Enter :*

  • netsh interface ip set dns name=" Adapter's_Name " static DnsServer
  • Replace the DnsServer with the DNS Server's IP Address of the DNS you noted above (e.g. " 192.168.1.1 " in this example), or the type the IP address of the DNS Server that you want to use. **

** e.g. In this example will want to use Google's Public DNS server (8.8.8.8). So , the command will be:

  • netsh interface ip set dns name="Wi-Fi" static 8.8.8.8

set dns address command

2c. If you want to assign an alternate DNS server address, (e.g. "8.8.4.4"), give the following command and press Enter : *

  • netsh interface ip add dns name=" Wi-Fi " 8.8.4.4 index=2

* Note: Replace Wi-Fi with your adapter's name and change 8.8.4.4 with your desired alternative DNS server address.

set alternate dns address

3. When finish, close the command prompt window and you're done!

Method 4: Set a Static IP Address using PowerShell.

Another way to change to a Static IP address on your device, is via PowerShell.

1. Press the Windows key, type powershell in the search bar, and click Run as Administrator to open Windows PowerShell as administrator .

powershell

2. Now give the following PowerShell command and hit Enter to view the current Network IP configuration:

  • Get-NetIPConfiguration

view network ip configuration

3. Now note the InterfaceIndex of the active network adapter (e.g. "22" in this example), and the following details below it:

  • IPv4Address (e.g. "192.168.1.100")
  • IPv4Default Gateway (e.g. "192.168.1.1")

assign ip address powershel

4. Run the following command to set up a static IP address: *

  • New-NetIPAddress -InterfaceIndex Number -IPAddress New- IPv4Address -PrefixLength 24 -DefaultGateway IPv4DefaultGateway

* Notes 1. In the above command:

  • Replace Number with the Interface's Index number you noted above (e.g. "22" in this example)
  • Replace New- IPv4Address with the static IP Address you want to use.  (e.g. "192.168.1.150" in this example), or type the IPv4Address you noted before.
  •   Replace IPv4DefaultGateway with the IP Address you noted above (e.g. "192.168.1.1" in this example.

e.g. To set the IPv4 Address to "192.168.1.150", type:

New-NetIPAddress -InterfaceIndex 22 -IPAddress 192.168.1.150 -PrefixLength 24 -DefaultGateway 192.168.1.1

2. The number "24" is usually the default prefix (Subnet Mask) for home networks.

set dns address powershel

5. To add a primary DNS server to your network adapter, run the below command:*

  • Set-DnsClientServerAddress -InterfaceIndex Number -ServerAddresses DnsServer

Note: In the above command:

  • Replace DnsServer with the IP of the DNS Server you noted above (e.g. "192.168.1.1" in this example), or type the IP Address of your referred DNS Server.

Example No1: To use the current DNS server's IP address in this example:

  • Set-DnsClientServerAddress -InterfaceIndex 22 -ServerAddresses 192.168.1.1

Example No2: To set another DNS Server with IP address "208.67.222.222" type:

  • Set-DnsClientServerAddress -InterfaceIndex 22 -ServerAddresses 208.67.222.222

set alternate dns address powershel

Example No3: To specify both a Preferred and an Alternate DNS Server with IP's 208.67.222.222 & 208.67.220.220 respectively, give the following command:

  • Set-DnsClientServerAddress -InterfaceIndex 22 -ServerAddresses 208.67.222.222, 208.67.220.220

image

That's it! Which method worked for you? Let me know if this guide has helped you by leaving your comment about your experience. Please like and share this guide to help others.

We're hiring

We're looking for part-time or full-time technical writers to join our team! It's about a remote position that qualified tech writers from anywhere in the world can apply. Click here for more details.

  • Recent Posts

Konstantinos Tsoukalas

  • Fix: 0x80070426 in Xbox app, Microsoft Store or in Windows Update. - May 1, 2024
  • FIX: Not in a hypervisor partition, VT-x is Disabled in BIOS in VirtualBox' (Solved) - April 29, 2024
  • How to Disable or Remove BitLocker from Windows RE. - April 24, 2024

' src=

Konstantinos Tsoukalas

Related posts.

Fix: 0x80070426 in Xbox app, Microsoft Store or in Windows Update.

How to , Tutotial , Windows , Windows 10 , Windows 11

Fix: 0x80070426 in Xbox app, Microsoft Store or in Windows Update.

FIX: Not in a hypervisor partition, VT-x is Disabled in BIOS in VirtualBox' (Solved)

FIX: Not in a hypervisor partition, VT-x is Disabled in BIOS in VirtualBox' (Solved)

How to Disable or Remove BitLocker from Windows RE.

How to Disable or Remove BitLocker from Windows RE.

Leave a reply cancel reply.

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

  • Engineering Mathematics
  • Discrete Mathematics
  • Operating System
  • Computer Networks
  • Digital Logic and Design
  • C Programming
  • Data Structures
  • Theory of Computation
  • Compiler Design
  • Computer Org and Architecture

Configure IP in Windows 10

  • Setting Static IP Address in Windows
  • How to Configure Firewalls in Windows?
  • How to Create and Configure Wi-Fi Hotspot in Windows 10?
  • How to Configure DNS in Linux?
  • How To Set Up VPN on Windows 10?
  • DHCP Server Configuration in Cisco
  • How to Manage User Accounts in Windows 10?
  • How to Get Volume Mixer in Windows 10 ?
  • How to Create a New User in Windows 10?
  • How to Open Control Panel on Windows 11?
  • Enable In-Built Dark Mode on Windows 10
  • How to Open Camera in Windows?
  • Configuring IP Networking with nmtui in linux
  • How to Set Up a VPN in Windows 11?
  • How to Forget a Network in Windows 11?
  • Steps to Configure a New WLAN Network
  • How to Set Internet Priority on Windows 11?
  • How to Change Administrator Account in Windows 11?
  • Windows Defender Firewall Settings

Prerequisite : IP address , Subnet mask  , DNS server .

Introduction : An IP address is basically an identifier for a device on a network, it helps in sending information to and from a specific device on the network. An IP address is a string of numbers separated by periods. IP addresses are expressed as a set of four numbers ex- 192.168.0.10. Each number in the set can range from 0 to 255. So, the full IP addressing range goes from 0.0.0.0 to 255.255.255.255.

The internet needs a way to differentiate between different computers, routers, and websites. IP addresses provide a way of doing so and form an essential part of how the internet works. 

Let us see how IP works behind the scene –

  • Your device indirectly connects to the internet by connecting at first to a network connected to the internet, which then grants your device access to the internet.
  • When you are at home, that network will probably be your Internet Service Provider (ISP). At work, it will be your company network.
  • Your IP address is assigned to your device by your ISP.
  • Your internet activity goes through the ISP, and they route it back to you, using your IP address. Since they are giving you access to the internet, it is their role to assign an IP address to your device.
  • However, your IP address can change. For example, turning your modem or router on or off can change it. Or you can contact your ISP, and they can change it for you.
  • When you are out and about – for example, traveling – and you take your device with you, your home IP address does not come with you. This is because you will be using another network (Wi-Fi at a hotel, airport, or coffee shop, etc.) to access the internet and will be using a different (and temporary) IP address, assigned to you by the ISP of the hotel, airport or coffee shop.

This article covers the steps to configure IP to connect to the Internet.

Steps to follow : 1. Go to the search bar and search for control panel. Once it appears then double click on it. A dialogue box will appear.

how to assign ip address in windows 10 using cmd

2. In the dialogue box, find “Networks and Internet” option and click on it. 

how to assign ip address in windows 10 using cmd

3. A new menu will appear, find “Network and Sharing Center”, present in the left hand side. Click on it.

how to assign ip address in windows 10 using cmd

4. Click on “Change adapter settings” at the left hand side of the menu.

how to assign ip address in windows 10 using cmd

5. Right click on the desired network to which you want your computer to be connected. If you are unable to find the desired network then do the following –

  • Check whether the router is switched on or not.
  • Check if the ethernet wire has been properly plugged or not.
  • If you are using hotspot, then check whether the device is visible to other devices or not. You can check it by going to the tethering hotspot settings of your phone.

how to assign ip address in windows 10 using cmd

6. Click on the “Properties”.

how to assign ip address in windows 10 using cmd

7. Select IPv4. The IPv4 address is a 32-bit number that uniquely identifies a network interface on a machine. It is widely used even when its successor protocol, i.e. IPv6 is more efficient.

how to assign ip address in windows 10 using cmd

8. Go to “Properties” and Click on the “Use the following IP address” radio button for manually adding the IP address.

how to assign ip address in windows 10 using cmd

9. Enter the details provided by your ISP. These includes –

  • IP address – An IP address is a unique address that identifies a device on the internet or a local network. IP stands for “Internet Protocol,” which is the set of rules governing the format of data sent via the internet or local network.
  • Subnet mask – A subnet mask is used to divide an IP address into two parts. One part identifies the host (computer), the other part identifies the network to which it belongs.
  • DNS server –  It is basically a phonebook of internet that maps IP addresses to its domain name.

how to assign ip address in windows 10 using cmd

Please Login to comment...

Similar reads, improve your coding skills with practice.

 alt=

What kind of Experience do you want to share?

How to set a static IP address on Windows 11

Here are the steps to set a static IP address on Windows 11 with Command Prompt, PowerShell, Control Panel, and Settings.

Avatar for Mauro Huculak

UPDATED 7/21/2023: On Windows 11, a static IP address is a network configuration that never changes, making it the preferred option to share files , a printer on a local network , or configure port forwarding.

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

To set a static IP address on Windows 11 with Command Prompt, use these steps:

Open Start on Windows 11.

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 11 ipconfig all command

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

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.

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, change “Ethernet0” with the adapter’s name and “8.8.8.8” with an alternate DNS server address.

Windows 11 netsh command to set static IP address

After completing the steps, you can use the ping command (for example ping google.com ) to see if the configuration works correctly.

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:

Open Start .

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 :

Get-NetIPConfiguration

Confirm the following network information: 

  • InterfaceIndex
  • IPv4Address
  • IPv4DefaultGateway

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

PowerShell assign static IP address

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.

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

PowerShell assign static DNS address

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.

Once you complete the steps, the new network configuration will apply to the computer.

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.

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:

Open Settings on Windows 11.

Click on Network & Internet .

Click the Wi-Fi tab.

Open Wi-Fi settings

Select the current network connection.

Open wireless properties

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

Windows 11 edit IP address

Select the Manual option.

Static IP enable option

Turn on the IPv4 toggle switch.

Set a static IP address for Windows 11 – for example, 10.1.4.119 .

Settings app set static IP address

Specify a Subnet mask  – for example, 255.255.255.0 .

Specify a Default Gateway address.

Specify a Preferred DNS address (required).

(Optional) Specify an “Alternate DNS” address.

Use the “DNS over HTTPS” drop-down menu and select the Off option for the preferred and alternate addresses, but you can enable DoH with these options:

  • 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. It is only required if the DNS service doesn’t work automatically or has a template that works as expected.

Turn off the “Fallback to plaintext” toggle switch (if you enable DoH).

Click the Save button.

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.

Set static IP address on Ethernet adapter

To assign a static IP address to an Ethernet (wired) adapter on Windows 11, use these steps:

Open Settings .

Click the Ethernet  tab.

Open Ethernet settings

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

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 the Control Panel, 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.

Open Change adapter settings

Right-click the network adapter and select the Properties option.

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

Click the Properties button.

Control Panel open TCP/IPv4 properties

Select the “Use the following IP address” option.

Assign the static IP address – for example, 10.1.4.119 .

Set static IPv4 address in Control Panel

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

Specify a Default gateway address – for example, 10.1.4.1 (Usually, your router’s address).

Under the “Use the following DNS server addresses set Preferred DNS server” section, set the “Preferred DNS server address,” which is usually your router’s IP address or server IP address providing DNS resolutions (for example, 10.1.4.1 ).

(Optional) Specify an “Alternative DNS server,” which the computer will use if it cannot reach the preferred DNS server.

Click the OK button.

Click the Close button again.

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.

Avatar for Mauro Huculak

Mauro Huculak is a Windows How-To Expert who started Pureinfotech in 2010 as an independent online publication. He has also been a Windows Central contributor for nearly a decade. Mauro has over 14 years of experience writing comprehensive guides and creating professional videos about Windows and software, 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 . Email him at [email protected] .

  • How to delete network folder with thumbs.db file on Windows 10
  • How to enable new energy and battery usage settings on Windows 11

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

Android Police

How to find your ip address.

Write down your IP address; you're gonna need it later

Whether you use a Google Pixel phone , Chromebook, desktop, or another device to connect to the internet, you'll encounter something that requires your IP address. Any networking activity requires knowing your IP address. It makes troubleshooting easier with internet service providers (ISPs) and tech support for software or hardware that requires an internet connection. Also, you'll need it to remotely access your devices or share your network with other devices, such as a printer. Here's how to find your IP address on a Mac, Windows, Android, or iOS device.

What is the IP address?

Your device's unique position on the internet is marked by an IP (Internet Protocol) address, a numerical code allocated by your internet service provider (ISP). This code functions similarly to a residential address but for your online presence, distinguishing your device from billions of others.

Devices within your local network have private (local) IP addresses but share a common public IP address the internet service provider (ISP) allocates to your router. IPv4 and IPv6 are the two common versions of IP addresses.

IPv4 uses a 32-bit format that offers around 4.3 billion unique addresses. However, due to the internet's growth, IPv4 addresses are running out . In response to this shortage, IPv6 was introduced, using a 128-bit format to provide a virtually limitless number of addresses.

IPv6 addresses are in hexadecimal, shown as 2001:0db8:85a3::8a2e:0370:7334. The transition to IPv6 is ongoing, with IPv4 and IPv6 addresses currently being used on the internet. Dual-stack technology allows devices to run IPv4 and IPv6 simultaneously.

IP address explained in practice

When you type example.com into your browser, your device first needs to find the IP address of the server hosting example.com. This is done through a Domain Name System (DNS) lookup.

Your device queries a DNS server, which translates the domain name into a public IP address of the website's server. Your device sends the request to access the website to your router. This request includes the destination server's public IP address (obtained from the DNS lookup) and is sent from your local network to the internet.

The request carries your network's public IP address as the current source IP. This is because the internet does not recognize private IP addresses for routing. The server hosting example.com receives the request and sends the requested data back to the source IP address specified in the request, which is your router's public IP address.

The router uses your device's private IP to deliver the data to the correct device on your local network and loads the data for you on your screen.

How to make Android use the DNS server of your choice

How to find your ip address on windows 11.

To view your local IP address with Windows 11, follow these instructions:

1. Open the Windows Start menu , type Settings , and open it.

2. Navigate to Network & internet on the left panel, then click Properties .

3. Your local IP address (including IPv4 and IPv6 addresses) displays here.

How to find your IP address on Windows 10

For Windows 10, find your local IP address by following these steps:

1. Open the Windows Start menu and select Settings .

2. Choose Network & Internet .

3. For Wi-Fi connections, select Wi-Fi on the left, then Advanced Settings . For wired connections, select Ethernet and your network connection.

4. Your IPv4 address is listed here.

How to find your IP address on Windows 7, 8, and 8.1

Here's how to find your local IP address in Windows 8, 8.1, or 7:

1. Locate and select the Network Connection icon on the taskbar, then open the Network and Sharing Center .

2. Depending on your connection type, double-click Wireless Network Connection for Wi-Fi or Local Area Connection for wired connections. Then click Details .

3. Your local IPv4 or IPv6 addresses are shown here.

Find your IP address using Command Prompt (CMD)

The following steps help you locate your local IP address via Command Prompt, regardless of the Windows version:

1. Open the Windows Start menu , type CMD , and open Command Prompt .

2. In Command Prompt , type ipconfig and press Enter to view your local IP addresses.

How to find your IP address on macOS

If you use a Mac computer, follow these steps to find your IP address:

1. Open the Apple menu , then click System Settings .

2. Click Network in the left panel, then select Wi-Fi or Ethernet .

3. Click Details next to the connected network, then choose TCP/IP to view your IP addresses.

How to find your IP address using Mac Terminal

Find your Mac's local IP address by following these steps:

1. Press Command + Spacebar to launch Spotlight and open the Terminal. Or open Finder , go to Applications > Utilities , and double-click Terminal .

2. For Wi-Fi, type ipconfig getifaddr en1 . For Ethernet connections, type ipconfig getifaddr en0 and press Enter.

3. To view your public IP, type curl ifconfig.me and press Enter .

How to find your IP address on iPhone and iPad

iPhone and iPad users can check their local IP address with these instructions:

1. Open Settings and tap Wi-Fi .

2. Tap the information icon (i) next to the network you're on.

3. Your IPv6 and IPv4 addresses are listed here.

How to find your IP address on Android

We used a Samsung Galaxy S21 Ultra for this guide, but the process is similar for Android devices:

1. Go to Settings , then tap Connections .

2. Select Wi-Fi , then tap the settings gear icon next to your network.

3. Tap View more and scroll to find your IPv4 and IPv6 addresses.

Mask your online footprint

Online anonymity depends on protecting your IP address. IP addresses can be traced to reveal your location, making it easy to track you down on the internet. Combining this information with metadata and cookies could lead to identity theft. One way to hide your IP is to use a virtual private network (VPN) , which masks your IP address. We ranked the best VPNs to help you choose the right one for your online privacy.

How to trace an email to its source IP address

logo

  • Password Tools For Windows Password Genius Windows Password Genius Windows 10 Password Genius Windows 7 Password Genius RAR Password Genius ZIP Password Genius SQL Password Genius Chrome Password Genius WiFi Password Genius For Office Office Password Genius Word Password Genius Excel Password Genius PowerPoint Password Genius Access Password Genius Outlook Password Genius Outlook Email Password Genius PDF Password Genius For Removing Office Password Remover Word Password Remover Excel Password Remover Workbook Unprotect Genius PowerPoint Unprotect Genius Word Unprotect Genius

iphone passcode genius

  • More Utilities Data Recovery BitGenius Word Repair Genius Excel Repair Genius PowerPoint Repair Genius Office Repair Genius Photo Data Genius Android Data Genius BitLocker Tools BitLocker Genius for Mac BitLocker Genius for Windows More Tools Product Key Finder SafeUSB Genius ISO Genius All Products
  • Support Support Center FAQ & Contact Resource Center How-to Articles Blog Blog, News & Guides

How to use cmd to enable and configure BitLocker on Windows system?

I’m planning to enable BitLocker on my computer and want to quickly configure BitLocker through the command line. How can I do this? And there are other commonly used commands to manage BitLocker?

author

I get your ideas. Enable BitLocker via cmd is indeed a faster way compared to activate it through Control Panel. However, you should examine whether your Windows software is compatible with BitLocker first. Next I'm going to show you how to use it smartly.

Steps for Enable BitLocker via Command Line

Step 1 Open Command Prompt: Type "cmd" into the search bar. From the search results, click on "Command Prompt" .

Step 2 Check BitLocker Status: Verify the current status of encryption on the desired drive is crucial to avoid unexpected error during the encryption process. Execute the following command to check the BitLocker status for all drives.

manage-bde -status

Step 3 Prepare the Drive and Enable BitLocker: Ensure that the drive is prepared and meets the necessary requirements. For system drives, ensure that the system partition meets the BitLocker requirements. Then use the following command to enable BitLocker on drive C. You can replace "C" with the drive name you want to encrypt.

manage-bde -on C:

Step 4 Choose Encryption Method: You can specify the encryption method using the "-EncryptionMethod" parameter. Take AES encryption algorithm with a 128-bit key as example:

mange-bde -on C: -EncryptionMethod AES128

Step 5 Set Encryption Password: Recovery password will be automatically generated by BitLocker and displayed on the screen.

manage-bde –on C: -recoverypassword

Step 6 Initiate Encryption and Monitor Encryption Process: Execute all command and wait for the BitLocker encryption process to complete. As the process may take some time due to the size of drive and system resources, you can use "-status" command mentioned earlier to track the encryption status and estimate the time remaining.

Step 7 Reboot the System: After enabling BitLocker, click the "restart" button. It’s to ensure that BitLocker protection is active and functioning correctly.

Addional Notes

Other manage-bede parameters like "-off" to disable BitLocker, "-pause" to pause decryption/encryption process and "-lock" to prevent access to encrypted drive, is also used frequently in managing BitLocker.

There is also other third-party software that support BitLocker and help you better manage it. You can try them all over again and pick one that fits you most.

Tips : iSunshare BitLocker Genius for Windows helps us better handle the BitLocker through straightforward graphical user interface.

Easy BitLocker Encryption Management

iSunshare BitLocker Genius for Windows provides several smart functions for you to conveniently manage the BitLocker drive.

Support Windows 11/10/8/7

People Also Ask

Are there any third-party software that support bitlocker.

Firstly, Windows comes with three tools and options to manage and operate BitLocker: the BitLocker PowerShell module, the BitLocker drive encryption tools and BitLocker Control Panel.

Is Data Written From Home Edition to BitLocker-Protected Drive Encrypted?

Let's start with the conclusion: Yes, you can read, write and decrypt data stored in Bitlocker-protected drive on Windows Home edition as long as you have the appropriate key.

author

Is Device Encryption the Same as BitLocker in Windows 11/10?

No, Device Encryption is really just a lite version of BitLocker, which can only apply encryption to Windows system drive. You can check the difference below.

author

How Do I Use BitLocker on Unsupported Computer?

While BitLocker is only included in certain Windows versions, you can still access BitLocker-encrypted drives on other systems. Each operating system has corresponding tools to accomplish this purpose. Let's explore them.

iSunshare is dedicated to providing the best service for Windows, Mac, Android users who are in demand for password recovery and data recovery.

Copyright © 2024 iSunshare Studio All Rights Reserved.

Change the hostname of your AL2 instance

When you launch an instance into a private VPC, Amazon EC2 assigns a guest OS hostname. The type of hostname that Amazon EC2 assigns depends on your subnet settings. For more information about EC2 hostnames, see Amazon EC2 instance hostname types in the Amazon EC2 User Guide for Linux Instances .

A typical Amazon EC2 private DNS name for an EC2 instance configured to use IP-based naming with an IPv4 address looks something like this: ip-12-34-56-78.us-west-2.compute.internal , where the name consists of the internal domain, the service (in this case, compute ), the region, and a form of the private IPv4 address. Part of this hostname is displayed at the shell prompt when you log into your instance (for example, ip-12-34-56-78 ). Each time you stop and restart your Amazon EC2 instance (unless you are using an Elastic IP address), the public IPv4 address changes, and so does your public DNS name, system hostname, and shell prompt.

This information applies to Amazon Linux. For information about other distributions, see their specific documentation.

Change the system hostname

If you have a public DNS name registered for the IP address of your instance (such as webserver.mydomain.com ), you can set the system hostname so your instance identifies itself as a part of that domain. This also changes the shell prompt so that it displays the first portion of this name instead of the hostname supplied by AWS (for example, ip-12-34-56-78 ). If you do not have a public DNS name registered, you can still change the hostname, but the process is a little different.

In order for your hostname update to persist, you must verify that the preserve_hostname cloud-init setting is set to true . You can run the following command to edit or add this setting:

If the preserve_hostname setting is not listed, add the following line of text to the end of the file:

To change the system hostname to a public DNS name

Follow this procedure if you already have a public DNS name registered.

For AL2: Use the hostnamectl command to set your hostname to reflect the fully qualified domain name (such as webserver.mydomain.com ).

For Amazon Linux AMI: On your instance, open the /etc/sysconfig/network configuration file in your favorite text editor and change the HOSTNAME entry to reflect the fully qualified domain name (such as webserver.mydomain.com ).

Reboot the instance to pick up the new hostname.

Alternatively, you can reboot using the Amazon EC2 console (on the Instances page, select the instance and choose Instance state , Reboot instance ).

Log into your instance and verify that the hostname has been updated. Your prompt should show the new hostname (up to the first ".") and the hostname command should show the fully-qualified domain name.

To change the system hostname without a public DNS name

For AL2: Use the hostnamectl command to set your hostname to reflect the desired system hostname (such as webserver ).

For Amazon Linux AMI: On your instance, open the /etc/sysconfig/network configuration file in your favorite text editor and change the HOSTNAME entry to reflect the desired system hostname (such as webserver ).

Open the /etc/hosts file in your favorite text editor and change the entry beginning with 127.0.0.1 to match the example below, substituting your own hostname.

You can also implement more programmatic solutions, such as specifying user data to configure your instance. If your instance is part of an Auto Scaling group, you can use lifecycle hooks to define user data. For more information, see Run commands on your Linux instance at launch and Lifecycle hook for instance launch in the AWS CloudFormation User Guide .

Change the shell prompt without affecting the hostname

If you do not want to modify the hostname for your instance, but you would like to have a more useful system name (such as webserver ) displayed than the private name supplied by AWS (for example, ip-12-34-56-78 ), you can edit the shell prompt configuration files to display your system nickname instead of the hostname.

To change the shell prompt to a host nickname

Create a file in /etc/profile.d that sets the environment variable called NICKNAME to the value you want in the shell prompt. For example, to set the system nickname to webserver , run the following command.

Open the /etc/bashrc (Red Hat) or /etc/bash.bashrc (Debian/Ubuntu) file in your favorite text editor (such as vim or nano ). You need to use sudo with the editor command because /etc/bashrc and /etc/bash.bashrc are owned by root .

Edit the file and change the shell prompt variable ( PS1 ) to display your nickname instead of the hostname. Find the following line that sets the shell prompt in /etc/bashrc or /etc/bash.bashrc (several surrounding lines are shown below for context; look for the line that starts with [ "$PS1" ):

Change the \h (the symbol for hostname ) in that line to the value of the NICKNAME variable.

(Optional) To set the title on shell windows to the new nickname, complete the following steps.

Create a file named /etc/sysconfig/bash-prompt-xterm .

Make the file executable using the following command.

Open the /etc/sysconfig/bash-prompt-xterm file in your favorite text editor (such as vim or nano ). You need to use sudo with the editor command because /etc/sysconfig/bash-prompt-xterm is owned by root .

Add the following line to the file.

Log out and then log back in to pick up the new nickname value.

Change the hostname on other Linux distributions

The procedures on this page are intended for use with Amazon Linux only. For more information about other Linux distributions, see their specific documentation and the following articles:

How do I assign a static hostname to a private Amazon EC2 instance running RHEL 7 or Centos 7?

Warning

To use the Amazon Web Services Documentation, Javascript must be enabled. Please refer to your browser's Help pages for instructions.

Thanks for letting us know we're doing a good job!

If you've got a moment, please tell us what we did right so we can do more of it.

Thanks for letting us know this page needs work. We're sorry we let you down.

If you've got a moment, please tell us how we can make the documentation better.

IMAGES

  1. How To Assign IP Address Using CMD in WIndows 10

    how to assign ip address in windows 10 using cmd

  2. How to Configure IP Address with Command Prompt in Windows 10?

    how to assign ip address in windows 10 using cmd

  3. CMD : How to Find Your Public IP Addresses with 1 command

    how to assign ip address in windows 10 using cmd

  4. Assign IP address to your computer using cmd

    how to assign ip address in windows 10 using cmd

  5. How to change the IP address in Windows 10 using Command Prompt (CMD)

    how to assign ip address in windows 10 using cmd

  6. How to find and manually assign an IP address in Windows 10

    how to assign ip address in windows 10 using cmd

VIDEO

  1. How to Enter IP Address Windows 10 & 11

  2. How to find IP address in windows7

  3. How to Assign IP Address in your computer using CMD

  4. Ip Address Settings With Windows 11 For Internet Connection

  5. How to Assign IP Address through Command Prompt || Assign IP Address Via CMD

  6. How to assign static ip In Windows 11

COMMENTS

  1. How To Set Static IP Address in Windows 10 using CMD

    Using CMD may seem difficult for some users, yet it is one of the fastest ways to assign a static IP address in Windows 10. Step 1: There are two ways to open the command line. Click on the Start menu, type CMD in the search box, then right-click on it and select Run as administrator.

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

    Key Takeaways. 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. Sometimes, it's better to assign a PC its ...

  3. How to Change Your IP Address From the Command Prompt in Windows

    View Your Network Information with Command Prompt. Before you change your IP address and related information, you'll need to find the full name of the network for the interface you want to change. To do this, type the following command: netsh interface ipv4 show config. Scroll down until you see the interface you're looking for.

  4. How to set static IP address on Windows 10

    Set static IP address on Windows 10 from Settings. 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 ...

  5. How to Configure Windows 10 IP Address with CMD?

    To find your IP address on Windows 10, just type " ipconfig " in command prompt. To do this process: Press Windows+R keys to open the Run. Type " cmd " in the run and press enter. Now type " ipconfig " to show the IP address. The " ipconfig " command shows everything about your computer network interfaces.

  6. How to change the IP address in Windows 10 and Windows 11 (4 ways)

    In both Windows 11 and Windows 10, you can also change your IP address from the Control Panel. Open the Control Panel and click or tap on "View network status and tasks" under "Network and Internet.". In the Network and Sharing Center, click or tap on your internet connection from the "View your active networks" area.

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

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

  8. How to set a Static IP Address in Windows 11/10

    To set a static IP address in Windows 10 using a command prompt, follow the below suggestions: Right-click on the Start button and select Run to open the Run dialog box. Type cmd in the text box ...

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

    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.

  10. How to set static IP address and DNS Server using Command ...

    How to set static IP address using Command Prompt. These commands are relatively easier with the Command Prompt when compared with PowerShell. You can change the IP address of your computer using this quick command. Launch the Command Prompt with administrative privileges and then use the command below to assign the desired IP address ...

  11. How to Change Your IP Address on Windows 10 (3 Methods)

    Open Settings. Press the Start button, then click the settings cog, above the power button. Alternatively, press Windows + I. Click "Network & Internet". Click "Wi-Fi" in the sidebar and ...

  12. How to Set Static IP Address in Windows 10

    Step #2. Set Static IP Address. After noting down Subnet Mask and DHCP Server Address, follow the steps below to Assign or Set Static IP Address for your computer. 1. Go to Settings > Network & Internet > Select your active network ( WiFi or Ethernet) in the left-pane. In the right-pane, scroll down and click on Change adapter options link ...

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

    Choose the option to Use the following IP address: and fill in the blanks for your network. Click OK, and close the next window. Verify you can access the Internet. You will now have the IP Address always set to this address. Because it is getting set to whatever was found below, once your computers find the new address, it will remember it.

  14. How to Set a Static IP Address in Windows 10

    Pick "Wi-Fi" or "Ethernet". Select the active network connection. Go to "Edit" in the "IP settings" section. Select "Manual" from the menu. Turn the IPv4 toggle switch on ...

  15. How to Set Static IP Address on Windows 11/10.

    Method 3: Set Up a Static IP Address using Command Prompt. If you like commands, then here are the instructions to change your Dynamic IP address to Static, via command line. 1. Open Windows Search, type command prompt, and select Run as administrator. Then, click Yes on the UAC prompt to proceed. 2.

  16. Configure IP in Windows 10

    This article covers the steps to configure IP to connect to the Internet. Steps to follow : 1. Go to the search bar and search for control panel. Once it appears then double click on it. A dialogue box will appear. 2. In the dialogue box, find "Networks and Internet" option and click on it. 3.

  17. How To Change Your IP Address On Windows 10 (& Why You'd Want To)

    To set a static IP address, open your network settings by right-clicking the Start menu and clicking the Network Connections option. In the Network Connections settings menu, press the Change connection properties option. Under the IP Settings category, press the Edit option. Change the IP allocation type to Manual.

  18. How To Assign IP Address Using CMD in WIndows 10

    In this Video I Will show you guys how to change or assign ip address using cmd in windows 10 computer.commands : netsh interface ipv4 show confignetsh inter...

  19. How to change from static to dynamic IP address on Windows 10

    Open Settings on Windows 10. Click on Network & Internet. Click on Ethernet or Wi-Fi. Click the network connection. Under the "IP settings" section, click the Edit button. Use the Edit IP settings drop-down menu and select the Automatic (DHCP) option. Click the Save button. Once you complete the steps, the networking stack configuration ...

  20. Change IP Address and DNS Servers using the Command Prompt

    The first step to changing your IP address is to find the network name for the interface you want to change. Open an elevated Command Prompt by typing CMD in the search bar and clicking on Run as Administrator. Next, type netsh interface ipv4 show config in the command prompt window, press Enter, and scroll down to the interface you want.

  21. How to set a static IP address in windows 10?

    The instruction steps are listed below: start>type Powershell>rmb>Open powershell as administrator. (Only do this step if you can not immediately run the script the first time.) Type: Set-ExecutionPolicy RemoteSigned -Scope CurrentUser and hit enter, to set the security policy so that you can run a powershell script.

  22. How to change IP address using script on Windows?

    Look in your control panel for the correct name. 2) The IP you want to set is 192.168..101, change this to whatever IP to want to use. 3) The default gateway and dns are the same IP. If you are using some kind of router they usually are. Change this to match your network config found with the command ipconfig /all.

  23. How to set a static IP address on Windows 11

    To set a static IP address on Windows 11 with Command Prompt, use these steps: Open Start on Windows 11. 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.

  24. How to find your IP address

    The following steps help you locate your local IP address via Command Prompt, regardless of the Windows version: 1. Open the Windows Start menu, type CMD, and open Command Prompt . 2. In Command ...

  25. How to Configure Static IP Address on Ubuntu 24.04 (Desktop)

    Login to your desktop, click on the network icon and then choose Wired option as shown below: We will get the following window, click on "gearbox" icon. Go to IPv4 tab, there you will see that DHCP is enabled for automatic IP allocation. Choose Manual option to configure static IP address and specify IP details (IP address, netmask, gateway ...

  26. How to use cmd to enable and configure BitLocker on Windows ...

    Step 6 Initiate Encryption and Monitor Encryption Process: Execute all command and wait for the BitLocker encryption process to complete. As the process may take some time due to the size of drive and system resources, you can use "-status" command mentioned earlier to track the encryption status and estimate the time remaining.. Step 7 Reboot the System: After enabling BitLocker, click the ...

  27. Change the hostname of your AL2 instance

    For AL2: Use the hostnamectl command to set your hostname to reflect the desired system hostname (such as webserver ). [ec2-user ~]$ sudo hostnamectl set-hostname webserver.localdomain. For Amazon Linux AMI: On your instance, open the /etc/sysconfig/network configuration file in your favorite text editor and change the HOSTNAME entry to reflect ...

  28. windows

    Step 1: Open up cmd.exe (note: you may need to run it as an administrator, but this isn't always necessary), then run the below command:. netstat -ano | findstr :<PORT> (Replace <PORT> with the port number you want, but keep the colon). The area circled in red shows the PID (process identifier). Locate the PID of the process that's using the port you want.