If DHCP service is enabled and DHCP server is temporarily or permanently unavailable, TCP/IP assigns a class B IP address from 169.254.0.0 to 169.254.255.255 to the machine. This function in Windows is called “Automatic Private IP Addressing”.
If you want to use static IP addresses in the machine, you need to disable IP autoconfiguration. To disable;
1- Check in which interface autoconfiguration is on.
2- Check for index number of the interface with the command;
netsh interface ipv4 show inter
Our index is ‘2’ in this example.
3- Run the command below with changing the ‘2’ with your index number;
netsh interface ipv4 set interface 2 dadtransmits=0 store=persistent
4- Disable DHCP Client service