Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

2 Answers

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
add comment

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 192.168.1.191 255.255.255.0

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

share|improve this answer
add comment

Your Answer

 
discard

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.