This will occur when your router cannot give you a local IP, so Your Operating System like Windows, iOS, Android or whatever, will give you an IP Address in range 169.254.0.0 - 169.254.255.255.
So, whenever you see this IP Address, just check your router and make sure DHCP Server is enabled.