Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Keep static IP for each network?

25 Nov 2010   #11
Darryl Licht

Windows 7 Ultimate 64 bit Steve Ballmer Signature Edition
 
 

Quote   Quote: Originally Posted by PooMan UK View Post
Hiya Darryl

Thanks for the reply, but like I said I didn't want to steal the op's thread, I was just wanting to know that if the 2 locations were on a different subnet would a bat file like I showed work.

soz for the confussion
Yes, it should work!

And to the OP... a static will work as long as both your and friends routers use the same IP address because you will have to put that IP (routers) in as the Gateway and DNS server if you go static. And any other private networks that use the same IP for their router!

Personally, I love Win7 and it's location aware network settings.
Control panel-->Network and Internet-->Manage Wireless Networks--> Add.

I simply add a network into my laptop utilizing that networks SSID, encryption type, passphrase, etc. Then anytime Im in range of that network I connect and have access to its Internet, printers, shares, etc. All the WEP, WPA, and WPA2 encryption is remembered and I dont have to do anything but fire up the laptop and Im connected! Makes life a breeze when moving from network to network!


My System SpecsSystem Spec
.
26 Nov 2010   #12
chev65

Windows 7 Ult, Windows 8.1 Pro,
 
 

Quote   Quote: Originally Posted by cclloyd9785 View Post
Is there a way I can keep a different static IP for each network I connect to?

Like on my house, I wanted 192.168.1.200 (Which worked till I connected to a different internet)
And at my friends house, when it connects, it connects with 192.168.1.150.

and as I reconnect to whichever internet, it switches to that IP.
The best and easiest way to do this is to list the different connections "Ip's, DNS, subnet, gateways" in your advanced TCP/ip properties window. You can even list more than one subnet there. Using this window keeps you from having to designate new settings for each connection. You can just list them one after the other.


Attached Thumbnails
Keep static IP for each network?-advanced-tcp-ip-settings.png  
My System SpecsSystem Spec
26 Nov 2010   #13
Kari

 

Quote   Quote: Originally Posted by chev65 View Post
The best and easiest way to do this is to list the different connections "Ip's, DNS, subnet, gateways" in your advanced TCP/ip properties window. You can even list more than one subnet there. Using this window keeps you from having to designate new settings for each connection. You can just list them one after the other.
Simple, elegant and easy. A good tip.
My System SpecsSystem Spec
.

26 Nov 2010   #14
WindowsStar

Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)
 
 

Or you can use this software (quick and fast):

NetSetMan - Network Settings Manager | LAN & WLAN | Freeware & Pro
My System SpecsSystem Spec
26 Nov 2010   #15
cclloyd9785

Windows 7 Home Premium x64, Mac OS X 10.6.2 x64
 
 

TLDL all posts. (Also dont want to use any other software)

I sorta see what you guys are saying, but the main reason I want this is even though we both had 192.168.1.1 as the subnet mask, 192.168.1.200 didnt work on my friends internet (it said DCHP or something wasnt enabled) and 192.168.1.150 doesnt work on my internet (Because its already in use by my xbox.)

It connects to the router, but I dont get internet.


And another thing, I cant find that page that chev65 posted. Is it possible because I use wireless or something?
My System SpecsSystem Spec
26 Nov 2010   #16
chev65

Windows 7 Ult, Windows 8.1 Pro,
 
 

Quote   Quote: Originally Posted by cclloyd9785 View Post
TLDL all posts. (Also dont want to use any other software)

I sorta see what you guys are saying, but the main reason I want this is even though we both had 192.168.1.1 as the subnet mask, 192.168.1.200 didnt work on my friends internet (it said DCHP or something wasnt enabled) and 192.168.1.150 doesnt work on my internet (Because its already in use by my xbox.)

It connects to the router, but I dont get internet.


And another thing, I cant find that page that chev65 posted. Is it possible because I use wireless or something?
The page is there but I didn't post the exact pathway, wireless or wired it works for both.

In the first window right click the IPv4 line and choose properties, then click the setting to "use the following IP address" this will allow you to choose a static IP in the advanced TCP/IP properties. You can do the same for the DNS server although it usually works best to let the router do that part for you.

After that choose the "Advanced" setting which gets you to the TCP/ip settings window. You then choose the "Add" button to add info from the network you need to set up.

Click add again to set up the next network, you can list the networks one after the other.

It works really well and will retain your static IP's and other settings from each network.
My System SpecsSystem Spec
26 Nov 2010   #17
cclloyd9785

Windows 7 Home Premium x64, Mac OS X 10.6.2 x64
 
 

Yea but it doesnt let me do that for individule networks. It only lets me do it for my wireless adapter for all networks at once.
My System SpecsSystem Spec
26 Nov 2010   #18
WindowsStar

Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)
 
 

Do you not want to use a Command Script?

If you do you can us poolman's post: Keep static IP for each network?

If not you could most likely use a VBS script to flip it back and forth or set it to something you want.
My System SpecsSystem Spec
26 Nov 2010   #19
chev65

Windows 7 Ult, Windows 8.1 Pro,
 
 

Quote   Quote: Originally Posted by cclloyd9785 View Post
Yea but it doesnt let me do that for individule networks. It only lets me do it for my wireless adapter for all networks at once.
I can assure you that it works absolutely perfectly.

If you clicked on the wireless adaptor first then thats the one you will be adding static IP's for. If you need to add extra static IP's for your wired eithernet adaptor then click on the IPv4 properties of your wired connection adaptor. You can add more than one static IP for each adaptor as required.

You need to use the "Add" button after entering the info for each network. The Add button allows you to enter next static IP.

To make this perfectly clear I have set up two different default gateways and IP's as an example. You would only need to enter the second default gateway if the default gateway on the other router is differerent than the first one.

I can't think of any other way to explain this better. Hope this helps you out cclloyd.


Attached Thumbnails
Keep static IP for each network?-advanced-tcp-ip-two-addresses.png  
My System SpecsSystem Spec
26 Nov 2010   #20
PooMan UK

Windows 7 Ultimate 64bit
 
 

Sorry but I forgot to add another file that goes along with my last post. If you want to resort back to a "dhcp" setting then you need to create a .bat file eg. (my dhcp) which contains the lines

netsh interface ip set address name="wireless Connection" dhcp
netsh interface ip set dns name="Wireless Connection" dhcp


* please note

"wireless connection" is only used for the wlan if you want to create .bat files for the wired connection then substitute the "wireless connection" (or what ever yours is called) with "Local Area Connection" (or what ever yours is called)
My System SpecsSystem Spec
Reply

 Keep static IP for each network?




Thread Tools




Similar help and support threads
Thread Forum
Static IP Settings for just one network connection?
According to my understanding, when i go to the network settings and tell it to use specified IP and DNS settings instead of using Automatically Assigned IPs, it sets that standard for ALL the wireless connections stored on my computer, and all the networks start using those IP settings. Is it...
Network & Sharing
Win 7 Pro 32 won't see network, won't honor static IPv4
I'm posting this at a couple of Windows networking forums. We set up three new terminals this week at the office; they're all running Win 7 Pro 32-bit. I set them all up simultaneously (literally sat at a desk and entered the same keystrokes at each of them), so I don't see any obvious reason...
Network & Sharing
Static IP Changes To Public Network
WIN7 SP1, Comcast Cable (internet only), Motorola gateway, Ethernet Cable, Onboard Realtek LAN, IPv6 disabled. My IP address of 192.xxx keeps changing to 169.254.52.105 and to public network. I tried manually setting IP in v4 properties but that doesn't work nor does modem refresh or ipconfig...
Network & Sharing
Can't connect to any network without Static IP
Hello All, I have problem with my windows: I can't connect to any network without Static IP can anyone help me? Thank you
Network & Sharing
Static IP blocks network sharing
I have been searching to find a solution to this problem and I have found a lot people with similar problems but no solution. Dynamic IP everything works. Three different routers D-Link, Zyxel and Planet tested. Four PC's on the network including Mac-Leopard Static IP everything works...
Network & Sharing
How can you create both a static and dynamic network?
I am trying to create both a static and dynamic network for my computer to choose from when I connect my notebook to one of two locations. I want to create a LAN 1 which picks up the static info specific and an LAN 2 for my dynamic connection. This is possible to do with operating systems such as...
Network & Sharing


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 06:34.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App