Windows Command Line IP Address Assignment

If you want to set a static IP address from the command prompt in Windows, use the following command in an elevated command prompt.

netsh interface ipv4 set address “Local Area Connection” static

where “Local Area Connection” is your network adapter name as shown in the Network and Sharing Center

where is the ip address you wish to assign

where is the subnet mask you wish to assign

where is the default gateway you wish to assign.

Leave a Reply