Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Chrome using incorrect local IP Address

Doing local development on my IIS machine, I was previously using a static local ip of 192.168.0.100:542. I recently had to factory reset my router and now I have 192.168.1.x. I can access the local site using localhost:542, but some AJAX requests and redirects are still being made to the old IP address.

I've tried clearing cache, clearing Chrome's DNS cache, doing ipconfig /flushdns, and using an incognito window but it's still happening.

like image 304
Healyhatman Avatar asked Jun 07 '21 01:06

Healyhatman


People also ask

Why does Google get my IP address wrong?

This happens because Google determines its users' location by cross-checking the location of where the IP address is with the geolocation data it has of devices that use that IP address.

Why does Google thinks my IP is in a different country?

This can be just a browser error, and to check that, we advise trying out a different web browser. In some instances, the issue can be related to cache, and you just need to clean it to fix the problem. If a certain website thinks you're in a different country, adjusting your location settings should fix the problem.

Why does Google Chrome show my location wrong?

More ways to improve location accuracyReload your browser (such as Chrome, Firefox, or Safari). Check to make sure you have a strong internet connection. Double-check your browser's permission settings using the instructions above. Restart your computer.


1 Answers

This is because I had the old IP Address still set as my APP_URL in .env (Laravel).

like image 106
Healyhatman Avatar answered Sep 27 '22 22:09

Healyhatman