| Windows 7: Keep static IP for each network? |
25 Nov 2010
|
#1 | | Windows 7 Home Premium x64, Mac OS X 10.6.2 x64 Boston, MA |
Keep static IP for each network? 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. | My System Specs |
| System Manufacturer/Model Number Toshiba Satellite L505D-S9565 OS Windows 7 Home Premium x64, Mac OS X 10.6.2 x64 CPU AMD Athlon X2 Dual-Core 2.1 GHz Motherboard Toshiba Built-In with Insyde H20 BIOS 1.40 Memory 4 GB DDR2 800 MHz Graphics Card ATI Radeon HD Mobility 3100 Graphics 256MB to 1468 MB Shared Sound Card Realtek Mobile ALC272 HD Audio Monitor(s) Displays 15.6" TFT LCD with TruBrite, Samsung 1080p HDTV Screen Resolution 1366x768, 1920x1080 Keyboard Built-in Mouse Build-in Symantics SmartTouch Pad PSU N/A Case N/A Cooling Built-in/Open window in winter :P Hard Drives ❶:Main: Toshiba 250 GB SATA 5400 RPM Internet Speed 55 MB/sec Down, 9 MB/sec Up Other Info ❷:Backup: Seagate FreeAgent Desk USB 2.0 5400 RPM
❸:Media: Toshiba 640 GB USB 2.0 5400 RPM Portable Edition |
25 Nov 2010
|
#2 | | Windows 7 x64 Ultimate A Finnish immigrant in Leipzig, Germany |
Yes, and it's quite easy to do. Routers and modems we normal users use to connect to Internet normally use IP addresses in series 10.0.X.X, 172.16.X.X or 192.168.X.X. So, for instance your router's IP i.e. your DHCP server address is most probably 192.168.1.1. If you now let's say visited me, you could not join my network keeping your old IP because my DHCP server address is 192.168. 2.1
If you didn't have a static IP to connect to my router, it (DHCP server) would then assign you an IP address from my address pool, which I have limited to 99 addresses as this image shows:
If you visited me often, we could for instance agree that you can always use 192.168.2.15 when here. You can set a static IP for every network you normally use as for instance I have set this laptop to have these two addresses (WiFi & LAN) when home here in Leipzig:
When in our other home, other side of Germany, I have two other static IP's. I also have a static IP to use in my favourite pub; the owner is a friend and let's me use his fast gigabit office network so I don't have to use the slow public WLAN when sitting there with my laptop.
To create a connection for every network you regularly visit, open the Network and Sharing Center, click Connect to a network, and follow the instructions.
Go then to each connection's properties and set DHCP, DNS and IP info manually. Result is this:
Kari
Last edited by Kari; 25 Nov 2010 at 07:38 PM..
Reason: Explained in my next post ;)
| My System Specs | | Computer type Laptop System Manufacturer/Model Number HP ENVY 17-1150eg OS Windows 7 x64 Ultimate CPU 1.6 GHz Intel Core i7-720QM Processor Memory 6 GB Graphics Card ATI Mobility Radeon HD 5850 Graphics Sound Card Beats sound system with integrated subwoofer Monitor(s) Displays 17" laptop display, 22" LCD and 32" Full HD TV through HDMI Screen Resolution 1600*900, 1680*1050 and 1920*1080 Keyboard Logitech diNovo Media Desktop Laser (bluetooth) Mouse Logitech MX1000 Laser (Bluetooth) Hard Drives Internal: 2 x 500 GB SATA Hard Disk Drive 7200 rpm
External: 2TB for backups, 3TB USB3 network drive for media Internet Speed 50/10 Mbps VDSL Antivirus MSE, Windows Defender Browser Maxthon 3.5.2. Other Info Windows 7 Ultimate Retail Full in English, additional Guest-user accounts in Finnish, German and Swedish (Working languages English & Swedish, Family language German, my own language, mother tongue, Finnish. I really need Ultimate to get to use Language Packs!) |
25 Nov 2010
|
#3 | | Windows 7 Ultimate 64 bit Steve Ballmer Signature Edition So Cal (I.E.) |
As Kari said, as long as the router you are connecting to is in the same subnet...
In a private use Class C IP address like the ones you describe are at home and your friends house. 192.168.1.0 is the subnet ID, and most home based routers use either 192.168.1.1 or 192.168.1.254 as their default IP's, and 192.168.1.255 is the broadcast ID for all of the IPs in that subnet. You should be fine setting your static IP on the lappy to say something in the range of 192.168.1.110-120. And connect to most networks fine as that is the most common out there!
If however one of the networks you wish to connect to with that NIC (network adapter) is anthing other than a 192.168.1.??? network you wont connect until you change the card back to a dynamic IP served up by the router or a static IP in that address range... 10.0.0.0 (class A private space)or a 172.16.x.x (class b private space) are typical other ranges used.
Hope that helps explain! | My System Specs | | System Manufacturer/Model Number Homebrew PC - "Alpha_Dawg" OS Windows 7 Ultimate 64 bit Steve Ballmer Signature Edition CPU Intel Core 2 Quad - Q9550 - 2.83GHz stock - OC'd to 3.6GHz Motherboard Gigabyte EP45-UD3P Memory 4GB DDR2 800MHz (PC6400) OCZ Reaper Graphics Card Nvidia GE Force 8800 GTS Sound Card Asus Xonar DX Monitor(s) Displays Samsung SyncMaster 2333HD Screen Resolution 1920 x 1080 Keyboard MS Natural Wireless KB Mouse MS Wireless Mouse PSU PC Power & Cooling Silencer 750 Case Gigabyte 3D Aurora Cooling Case is Air - 5ea. 120mm fans (mix of Arctic and Xigmatec) Hard Drives WD Caviar Black 750GB - 7200RPM - 32MB cache
WD Caviar Green 1.5TB - 5400RPM - 64MB cache
WD Caviar Green 2.0TB - 5400RPM - 64MB cache Internet Speed 50 mbps down/5 mbps up Other Info AVerMedia - AVerTVHD G2 Dual Tuner Card |
25 Nov 2010
|
#4 | | Windows 7 x64 Ultimate A Finnish immigrant in Leipzig, Germany |
Just finished editing my previous post. This time I really noticed what can happen, how wrong info you can give, when reading the question wrong.
OK, my excuse is whisky  Anyway, I first read the question to be if it would be possible always, everywhere use the same static IP. Posted a reply, and then noticed that I had the question completely wrong.
This rant is meant to be a public apology; if someone read my first reply, he / she could have got completely wrong idea.
Sorry. No more whisky tonight. Maybe one or two but no more... | My System Specs | | Computer type Laptop System Manufacturer/Model Number HP ENVY 17-1150eg OS Windows 7 x64 Ultimate CPU 1.6 GHz Intel Core i7-720QM Processor Memory 6 GB Graphics Card ATI Mobility Radeon HD 5850 Graphics Sound Card Beats sound system with integrated subwoofer Monitor(s) Displays 17" laptop display, 22" LCD and 32" Full HD TV through HDMI Screen Resolution 1600*900, 1680*1050 and 1920*1080 Keyboard Logitech diNovo Media Desktop Laser (bluetooth) Mouse Logitech MX1000 Laser (Bluetooth) Hard Drives Internal: 2 x 500 GB SATA Hard Disk Drive 7200 rpm
External: 2TB for backups, 3TB USB3 network drive for media Internet Speed 50/10 Mbps VDSL Antivirus MSE, Windows Defender Browser Maxthon 3.5.2. Other Info Windows 7 Ultimate Retail Full in English, additional Guest-user accounts in Finnish, German and Swedish (Working languages English & Swedish, Family language German, my own language, mother tongue, Finnish. I really need Ultimate to get to use Language Packs!) |
25 Nov 2010
|
#5 | | Windows 7 Ultimate 64bit (Build 7600) Wales |
Not trying to steal the op's thread but it's relevant but is it possible to do something similar by creating a .bat file eg. "friends connection" which contains netsh interface ip set address name="Wireless Connection" source=static addr=192.168.0.10 mask=255.255.255.0
netsh interface ip set address name="Wireless Connection" gateway=192.168.0.1 gwmetric=0
netsh interface ip set dns name="Wireless Connection" source=static addr=192.168.0.1
And another .bat file eg. "Home connection" which contains netsh interface ip set address name="Wireless Connection" source=static addr=192.168.1.10 mask=255.255.255.0
netsh interface ip set address name="Wireless Connection" gateway=192.168.1.1 gwmetric=0
netsh interface ip set dns name="Wireless Connection" source=static addr=192.168.1.1
I haven't played with this but in theory it should work ? | My System Specs | | System Manufacturer/Model Number Self Built OS Windows 7 Ultimate 64bit (Build 7600) CPU AMD Phenom Quad core 9950 black edition Motherboard Gigabyte Memory 8Gb Graphics Card 2x XFX Radeon 5850 Sound Card PCI Express X-Fi Titanium / Logitech G35 Monitor(s) Displays 2x HP 2410i Screen Resolution 1920x1080 Keyboard Logitech G15 Mouse Logitech G9 PSU Jean Tech Storm 700W Case Cooler Master COSMOS S Cooling Akasa Evo Blue Pro Hard Drives 1x 500Gb Seagate
1x 1Tb Seagate
2x 1Tb Hitatchi Internet Speed 12mb |
25 Nov 2010
|
#6 | | Windows 7 Ultimate 64 bit Steve Ballmer Signature Edition So Cal (I.E.) |

Quote: Originally Posted by cclloyd9785 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. His and his friends are on the same subnet... 192.168.1.x... a static IP in that space will work for both networks! Just set it to anything in between .2 and .253 and it should never need to be changed for most private routers. | My System Specs | | System Manufacturer/Model Number Homebrew PC - "Alpha_Dawg" OS Windows 7 Ultimate 64 bit Steve Ballmer Signature Edition CPU Intel Core 2 Quad - Q9550 - 2.83GHz stock - OC'd to 3.6GHz Motherboard Gigabyte EP45-UD3P Memory 4GB DDR2 800MHz (PC6400) OCZ Reaper Graphics Card Nvidia GE Force 8800 GTS Sound Card Asus Xonar DX Monitor(s) Displays Samsung SyncMaster 2333HD Screen Resolution 1920 x 1080 Keyboard MS Natural Wireless KB Mouse MS Wireless Mouse PSU PC Power & Cooling Silencer 750 Case Gigabyte 3D Aurora Cooling Case is Air - 5ea. 120mm fans (mix of Arctic and Xigmatec) Hard Drives WD Caviar Black 750GB - 7200RPM - 32MB cache
WD Caviar Green 1.5TB - 5400RPM - 64MB cache
WD Caviar Green 2.0TB - 5400RPM - 64MB cache Internet Speed 50 mbps down/5 mbps up Other Info AVerMedia - AVerTVHD G2 Dual Tuner Card |
25 Nov 2010
|
#7 | | Windows 7 Ultimate 64bit (Build 7600) Wales |
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 | My System Specs | | System Manufacturer/Model Number Self Built OS Windows 7 Ultimate 64bit (Build 7600) CPU AMD Phenom Quad core 9950 black edition Motherboard Gigabyte Memory 8Gb Graphics Card 2x XFX Radeon 5850 Sound Card PCI Express X-Fi Titanium / Logitech G35 Monitor(s) Displays 2x HP 2410i Screen Resolution 1920x1080 Keyboard Logitech G15 Mouse Logitech G9 PSU Jean Tech Storm 700W Case Cooler Master COSMOS S Cooling Akasa Evo Blue Pro Hard Drives 1x 500Gb Seagate
1x 1Tb Seagate
2x 1Tb Hitatchi Internet Speed 12mb |
25 Nov 2010
|
#8 | | Windows 7 x64 Ultimate A Finnish immigrant in Leipzig, Germany |
Me too, I am sorry.
I tried to cover every possible DHCP and subnet, thus telling how to do it for every network which he visits separately. Of course if if it's only question of home and one other place and the subnet is the same, then it's enough to have just one static address.
I repeat my excuse: CEO of our household gave permission to leave the pills for one night and have some whisky... | My System Specs | | Computer type Laptop System Manufacturer/Model Number HP ENVY 17-1150eg OS Windows 7 x64 Ultimate CPU 1.6 GHz Intel Core i7-720QM Processor Memory 6 GB Graphics Card ATI Mobility Radeon HD 5850 Graphics Sound Card Beats sound system with integrated subwoofer Monitor(s) Displays 17" laptop display, 22" LCD and 32" Full HD TV through HDMI Screen Resolution 1600*900, 1680*1050 and 1920*1080 Keyboard Logitech diNovo Media Desktop Laser (bluetooth) Mouse Logitech MX1000 Laser (Bluetooth) Hard Drives Internal: 2 x 500 GB SATA Hard Disk Drive 7200 rpm
External: 2TB for backups, 3TB USB3 network drive for media Internet Speed 50/10 Mbps VDSL Antivirus MSE, Windows Defender Browser Maxthon 3.5.2. Other Info Windows 7 Ultimate Retail Full in English, additional Guest-user accounts in Finnish, German and Swedish (Working languages English & Swedish, Family language German, my own language, mother tongue, Finnish. I really need Ultimate to get to use Language Packs!) |
25 Nov 2010
|
#9 | | Windows 7 Ultimate 64 bit Steve Ballmer Signature Edition So Cal (I.E.) |

Quote: Originally Posted by Kari Me too, I am sorry.
I tried to cover every possible DHCP and subnet, thus telling how to do it for every network which he visits separately. Of course if if it's only question of home and one other place and the subnet is the same, then it's enough to have just one static address.
I repeat my excuse: CEO of our household gave permission to leave the pills for one night and have some whisky...  TUI??? Typing Under the Influence??? LOL! | My System Specs | | System Manufacturer/Model Number Homebrew PC - "Alpha_Dawg" OS Windows 7 Ultimate 64 bit Steve Ballmer Signature Edition CPU Intel Core 2 Quad - Q9550 - 2.83GHz stock - OC'd to 3.6GHz Motherboard Gigabyte EP45-UD3P Memory 4GB DDR2 800MHz (PC6400) OCZ Reaper Graphics Card Nvidia GE Force 8800 GTS Sound Card Asus Xonar DX Monitor(s) Displays Samsung SyncMaster 2333HD Screen Resolution 1920 x 1080 Keyboard MS Natural Wireless KB Mouse MS Wireless Mouse PSU PC Power & Cooling Silencer 750 Case Gigabyte 3D Aurora Cooling Case is Air - 5ea. 120mm fans (mix of Arctic and Xigmatec) Hard Drives WD Caviar Black 750GB - 7200RPM - 32MB cache
WD Caviar Green 1.5TB - 5400RPM - 64MB cache
WD Caviar Green 2.0TB - 5400RPM - 64MB cache Internet Speed 50 mbps down/5 mbps up Other Info AVerMedia - AVerTVHD G2 Dual Tuner Card |
25 Nov 2010
|
#10 | | Windows 7 x64 Ultimate A Finnish immigrant in Leipzig, Germany |
Darryl, don't tell other geeks here but it's not the first time...
Seriously, once or twice I have waked up with a really bad case of hangover, read what I'd posted the night before and then deleted almost everything from past 24 hours. Happens... | My System Specs | | Computer type Laptop System Manufacturer/Model Number HP ENVY 17-1150eg OS Windows 7 x64 Ultimate CPU 1.6 GHz Intel Core i7-720QM Processor Memory 6 GB Graphics Card ATI Mobility Radeon HD 5850 Graphics Sound Card Beats sound system with integrated subwoofer Monitor(s) Displays 17" laptop display, 22" LCD and 32" Full HD TV through HDMI Screen Resolution 1600*900, 1680*1050 and 1920*1080 Keyboard Logitech diNovo Media Desktop Laser (bluetooth) Mouse Logitech MX1000 Laser (Bluetooth) Hard Drives Internal: 2 x 500 GB SATA Hard Disk Drive 7200 rpm
External: 2TB for backups, 3TB USB3 network drive for media Internet Speed 50/10 Mbps VDSL Antivirus MSE, Windows Defender Browser Maxthon 3.5.2. Other Info Windows 7 Ultimate Retail Full in English, additional Guest-user accounts in Finnish, German and Swedish (Working languages English & Swedish, Family language German, my own language, mother tongue, Finnish. I really need Ultimate to get to use Language Packs!) Keep static IP for each network? problems? All times are GMT -5. The time now is 11:29 AM. | |