In Windows, you can turn off the autoconfiguration function on a network interface for troubleshooting. It’s a registry that you need to add.
First of all, open your regedit.exe program. Then go to the following key
Expand the key and find your network adapter. Your network adapter is hashed, so look at the values on the right to find out which one is your network interface. After locating your network interface, create a DWORD (32-bit) value with the name IPAutoConfigurationEnabled and set its hexadecimal data to 0
That’s it. Your network interface will no longer automatically set your IP address to 169.254.xxx.xxx.