In our example, the command does the following:
Where the info is replaced by whatever you want to use. 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 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 With the interface name in hand, you’re ready to change the IP Address, subnet mask, and gateway. Change Your IP Address, Subnet Mask, and Default Gateway You can also copy and paste the name to Notepad and then back into Command Prompt later to make things easier. 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.
Scroll down until you see the interface you’re looking for.
RELATED: How to Enable CTRL+C / Ctrl+V for Pasting in the Windows Command Prompt To do this, type the following command: netsh interface ipv4 show config
RELATED: How to Find Your Private and Public IP Addresses View Your Network Informationīefore 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.
In Windows 10 or 8.1, right-click the Start menu (or press Windows+X on your keyboard) and choose “Command Prompt (Admin).” In previous versions of Windows, search Start for “command prompt” and then right-click the result and choose “Run as Administrator.” To work with it, you’ll need to open Command Prompt with administrative privileges.
The network adapter you're trying to change the IP for named "local area connection". This procedure will work, based on the following: Netsh int ip set dns "local area connection" static 192.168.0.254 primary Instead of validating the search, press CTRL + SHIFT + Enter.Press the Windows key on your keyboard or click Start to bring up the boot menu.How to change your IP address via the Command Prompt on Windows PC?įirstly, open the command prompt as administrator: