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.

I don't know if my IP is static or assigned by DHCP. How can I find out which it is? I'm running Windows 7.

share|improve this question
    
Do you mean the IP on your computer or your internet-facing IP? –  Majenko Apr 13 '11 at 20:41
    
@Matt, local at first, but since you ask, I'd be interested in both answers. –  Pops Apr 13 '11 at 20:43

5 Answers 5

up vote 9 down vote accepted

Run ipconfig /all in a cmd window; one of the lines will be labeled "DHCP Enabled".

share|improve this answer

Go to the Network and Sharing Center (in control panel) and select "Change Adapter Settings" on the left.

From there double-click on your network adaptor and press the "Details" button.

You should see something like this:

enter image description here

You can then see if DHCP is enabled or not.

For your internet IP, the best way is to go to http://www.whatismyip.com and note down your IP. Then go and reboot your router, and visit that site again and see if the IP is the same.

If it has changed you have a dynamic address. If it's the same you may be static, or you may be dynamic. Check again in a week or so and see if the IP is still the same. If it is you may well be static.

Most ISPs charge extra for a static IP address though.

share|improve this answer
    
Or you could just log into your router setup page and see how it's configured. –  Joe Internet Apr 13 '11 at 21:43
    
That wouldn't tell you if it was static or not - even assigned by DHCP (or LCP or whatever) it can still be static. –  Majenko Apr 13 '11 at 22:36

Open a CMD window and type ipconfig/release then type ipconfig and see if you have an IP.

Or through the GUI you can go to Control Panel>Network and Sharing Center, on the left pane select: "change adapter settings", right click your adapter and click Properties, select: "Internet Protocol Version 4" and hit the properties button. If "Obtain IP Address Automatically" is checked then you are getting your IP via DHCP if it is static you will see it filled out in the boxes below.

enter image description here

share|improve this answer

If you set your IP address in any way via CMD or the network settings you have a static IP. Otherwise, you have an IP assigned by DHCP.

share|improve this answer
1  
The Network Settings is the GUI. Excuse me for my terminology. –  paradd0x Apr 13 '11 at 20:52

You might find the answer in the Registry under

HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\services\Tcpip\Parameters\Interfaces\{here-goes-the-GUID-of-the-NIC}
-> EnableDHCP

1 means ON, 0 means OFF

You need to know the GUID of your NIC, of course. Your machine might have more than just one NIC.

share|improve this answer
    
It's still possible that at the time of IP-assigning, it was static/dhcp & registry was changed later... So this is not exactly reliable. But yes, at boot time, it would take static/dhcp based on this registry... –  anishsane Jun 16 at 5:41

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.