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

There is a laptop running Windows XP.

When the computer connects to the Wireless network in the office it should have a static IP address (because it's used as a small DB server).

When it connects to the network anywhere else, it should get its IP using DHCP.

I know about the Alternative IP configuration setting under Windows but in order to use that, I'd have to turn off the DHCP server in the office and assign IPs to each computer manually which I can't do right now.

Any ideas for an easy solution?

Edit: the computer is at a client's site, access to the router might not be granted. Sorry for not mentioning this before.

What should be my plan B if I can't get access?

share|improve this question
Wait, you have a laptop connected via wireless that you're using as a DB server at work? Really? – Chris S May 18 '11 at 14:17
It's the air-db! :-) – Lucky Luke May 18 '11 at 14:34
The DB is a Firebird instance with 2 people connecting to it. No need for a server :-) – Steve May 19 '11 at 9:41

If you have control over the DHCP server at work, you could assign yourself a static IP by MAC address and use DHCP both at home and at the office.

share|improve this answer
Please see my edit, thanks – Steve May 19 '11 at 9:32

There are several ways you can go about it. Like katriel said, the easist way would be to add what is usually called a DHCP reservation, where you link your MAC address to an IP address. If this is possible, then it would be the best solution.

You could also write a batch script that sets the IP address manually, but that would have to be launched manually every time you connect to the network.

Finally, you can use 3rd party software, such as the Mobile Net Switcher. I have never used it, but it sounds like it would do what you want.

share|improve this answer
Could you point me to an example script on setting the IP manually? – Steve May 19 '11 at 9:34

Create a reservation for the Laptop on the Wireless DHCP scope. This way your laptop will always be set to use DHCP but when connected to wireless it will receive a specifically defined IP.

share|improve this answer

Correct way: Update yours system with patch for WPA1/2 support.(or you might have it already) then doubleclick on yours wifi icon in tray. select wireless network -> change advanced parameters (configuration) Or Network Conenctions -> wifilink (right click) -> view avaliable networks ,then choose wifi point to configure and set there IP automatic or by DHCP. this will solve all of that.

share|improve this answer
Yes, but then his adapter would have the same static IP address on all other networks as well, not just the wireless network where his laptop acts as a server. – Lucky Luke May 18 '11 at 14:09
could you please add the content (or a summary) of the link to your answer. Simply linking to another site is not considered an answer here. – Chris S May 18 '11 at 14:18
Crap, ive missunderstan what was in subj. That link just shows step-by-step configuration to have both DHCP and Static ip on same interface. – MealstroM May 18 '11 at 14:26

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.