Monday, May 16, 2011

DHCP and Static IP Address settings in registry

If you ever want to find you IP Address settings from registry, then follow the above procedure:

1. Go to Start > Run and type regedit
2. In Windows registry editor, navigate to the following path:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces




There as you can see, every network interface on your workstation has a unique Interface name,  ex: {0DEA7AE1-39EF-4483-8C56-F6AE17961A14}
If you select one of the interfaces you can view these keys :
DhcpIPAddress : This key holds the automatically provided IP Address from a DHCP server to your workstation. ex: 192.168.0.10
DhcpSubnetMask: This key holds the Subnet mask for the IP Address, automatically provided by the DHCP server. ex: 255.255.255.0
DhcpDefaultGateway: This key holds the Gateway address automatically provided by the DHCP server. ex: 192.168.0.1
DhcpServer: This key holds the IP Address of your network DHCP Server ex: 192.168.0.1
DhcpNameServer: This key holds the IP Address of you network name server (DNS), automatically provided by the DHCP server. ex: 192.168.0.100


IPAddress: This key holds the Static IP Address defined by you or by a network administrator in the workstation.  ex. 192.168.0.20
 SubnetMask: This key holds the Subnet mask  for the IP Address, defined by you or by a network administrator in the workstation. ex: 255.255.255.0
DefaultGateway: This holds the IP Address of the Default Gateway for the network. ex. 192.168.0.1
NameServer: (DNS): This key holds the IP Address of you network name server