Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a box running windows which I want to assign a static IP to but give remote access to change that IP (without giving complete access to the windows instllation). I want to run a little app or command or something similar to connect to that machine and tell it to try and change it's IP address to a new value. If there are any problems with that, it should change itself back again after a timeout.

Is there any free software out there which will do the whole lot? ..or are there command line utilities I could wrap in a bit of Python? ...or any other options?

share|improve this question
up vote 8 down vote accepted

I think the netsh utility may be what you need for this. Of course you can call that from within your own program/script. It's been quite a while since I used it so can't really remember the specifics.

share|improve this answer

John's got it, but in addition, I found some good examples of what you can do with it.

netsh interface ip set address name="Local Area Connection" static

...will set the machine's IP to and it's subnet mask to

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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