Keep static IP for each network?

Page 2 of 3 FirstFirst 123 LastLast

  1. Posts : 1,939
    Windows 7 Ultimate 64 bit Steve Ballmer Signature Edition
       #11

    PooMan UK said:
    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 Computer


  2. Posts : 8,870
    Windows 7 Ult, Windows 8.1 Pro,
       #12

    cclloyd9785 said:
    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 Attached Thumbnails Keep static IP for each network?-advanced-tcp-ip-settings.png  
      My Computer


  3. Posts : 17,545
    Windows 10 Pro x64 EN-GB
       #13

    chev65 said:
    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 Computer


  4. Posts : 2,737
    Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)
       #14

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

    NetSetMan - Network Settings Manager | LAN & WLAN | Freeware & Pro
      My Computer


  5. Posts : 662
    Windows 7 Home Premium x64, Mac OS X 10.6.2 x64
    Thread Starter
       #15

    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 Computer


  6. Posts : 8,870
    Windows 7 Ult, Windows 8.1 Pro,
       #16

    cclloyd9785 said:
    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 Computer


  7. Posts : 662
    Windows 7 Home Premium x64, Mac OS X 10.6.2 x64
    Thread Starter
       #17

    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 Computer


  8. Posts : 2,737
    Windows 7 Enterprise (x64); Windows Server 2008 R2 (x64)
       #18

    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 Computer


  9. Posts : 8,870
    Windows 7 Ult, Windows 8.1 Pro,
       #19

    cclloyd9785 said:
    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 Attached Thumbnails Keep static IP for each network?-advanced-tcp-ip-two-addresses.png  
      My Computer


  10. Posts : 2,726
    Windows 7 Ultimate 64bit
       #20

    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 Computer


 
Page 2 of 3 FirstFirst 123 LastLast

  Related Discussions
Our Sites
Site Links
About 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 12:04.
Find Us