Configure TCP/IP to use DHCP and a Static IP Address at the Same Time
Thanks to reader pnatan from Tapuz we can do that with just a simple registry tweak.
To configure your computer (tested on Windows 2000, Windows XP and Windows Server 2003) to use both a DHCP obtained IP address and a statically configured IP address follow these steps:
Configure your computer to use DHCP
- Right-click My Network Places and choose Properties.
- On the NIC that is (usually) labeled as Local Area Connection – right-click and choose Properties.
- Select TCP/IP (make sure you don’t remove the check mark accidentally) and press the Properties button.
- Make sure you have “Obtain Automatically” selected.
- You can verify your settings by using a simple ipconfig command. Type ipconfig /all at a Command Prompt:
- Ok all the way out.
Add a second (or third and so on), static, IP address
- Click Start and choose Run. Enter Regedit and press Enter.
Note: On Windows 2000 and NT you need to run Regedt32 instead.
- Navigate to
(actual GUID of the NIC may vary, select the one that represents your own NIC (from step 2 above)
- Select the IPAddress key and double click it.
- In the Edit Multi String dialog box enter a second (and third and so on) IP address. Make sure you enter each IP on a separate line. Click Ok.
- Select the SubnetMask key and double click it.
- In the Edit Multi String dialog box enter a second (and third and so on) Subnet Mask. Make sure you enter each Subnet Mask on a separate line. Click Ok.
- Close the registry editor.
- Go back to your network properties, right-click your NIC and select Disable.
- Right-click your NIC and select Enable.
- Verify your settings by running ipconfig /all at a Command Prompt:
Windows 98 users: This trick can also be accomplished with Windows 98, only there you need to modify the following registry path (instead of the one in step 2 above):
In Windows 98 you’ll also need to reboot your computer for the trick to work.
More in Networking
How to Migrate an Azure ExpressRoute Connection￼
Nov 18, 2022 | Flo Fox
How to Enable AWS Direct Connect Redundancy Using Azure ExpressRoute
Oct 28, 2022 | Flo Fox
Choosing between 2.4 GHz and 5 GHz Wi-Fi
Oct 17, 2022 | Sukesh Mudrakola
Understanding Network Basics: What is TCP, Subnetting, and More
Sep 2, 2022 | Siji Roy
Static vs Dynamic IP Address - What's the Difference?
Mar 29, 2022 | Jason Wynn
What is DNS?
Mar 11, 2022 | Siji Roy
Most popular on petri