I can't change my ip address. When I right click local area connection -> properties, the properties for Internet Protocol Version 4 is greyed out. could anyone help me fix this? thanks a lot.

Or could anyone show me how to change ip address via command line?

  • Is your PC administrated by someone else? You might lack permissions for changing these settings. Jun 17, 2014 at 7:59

1 Answer 1


To change your IP address via command line, use the following command:

netsh interface ipv4 set address "Local Area Connection" static 1

  • is your IP address
  • is your netmask
  • is your gateway

To also change your DNS server, use the following command:

netsh interface ipv4 set dnsservers "Local Area Connection" static

  • is the IP address of your DNS server

These commands have to be used from an elevated command prompt (start as Administrator).

However, if you lack the permissions to change the settings via the GUI, these commands also might not work.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.