Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

My OS is Windows 7 64-bit.

I'm travelling many times, and many places I know the wireless settings. Every of the wireless networks are using DHCP.

Only one place where I need a static IP is home. I need 192.168.1.200. IP in this place.

Can I set the network settings (IPV4) to it is use DHCP commonly, but in this network use 192.168.1.200 (static)?
Or can I write some script that automatically set IPV4 to dhcp, and run this on Windows start, but on home I click on other script what set the IP to this static, and DNC to *.1?

Now I set this by hand, but many times I forget it. The router "application port forwards" are binded to this IP...

share|improve this question
    
Why do you have a static address in your home network? If your router has a dhcp, you can configure it to give you this ip every time. –  Michael K Aug 23 '12 at 7:17
add comment

1 Answer 1

up vote 0 down vote accepted

If you open Network Connections in Control Panel and enter the wireless card properties you will be able to configure IPv4 settings (Internet Protocol Properties).

You have a tab in there named 'Alternate configuration'. On 'General' tab leave option Obtain automatically. On 'Alternate configuration' setup your prefered IP address. This will be used in have your host will connect to the network without DHCP - your home network.

If you want a static IP address in your home while using DHCP at the same time - you need to setup IP reservation on your wifi router to give you the same IP address based on your MAC address [Network card (NIC) identificator].

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.