close

[Solved] Chrome using an incorrect local IP Address in Laravel

Hello Guys, How are you all? Hope You all Are Fine. Today Chrome using an incorrect local IP Address in Laravel. So Here I am Explain to you all the possible solutions here.

Without Wasting your time, Lets start This Article to Solve This Error.

How is Chrome using an incorrect local IP Address in Laravel Error Occurs?

I am working in local environment in my windows PC. Just some time ago I am using a static local IP address of 192.168.0.200:4001. Then I am factory reset my router and now I have 192.168.1.99 and I can access my local site by localhost:4001 but my AJAX request still redirecting to my old static IP address 192.168.0.200:4001. Nothing is working.

How To Solve Chrome using an incorrect local IP Address in Laravel Error?

Question: How To Solve Chrome using an incorrect local IP Address in Laravel Error?
Answer: To Solve Chrome using an incorrect local IP Address in Laravel Error just change your APP_URL in your .env file and then don’t forget to run the below command php artisan route:clear, php artisan view:clear, php artisan view:cache, php artisan config:cache, php artisan optimize:clear.

Solution 1

Do you change your APP_URL in your .env file? Just define their APP_URL as localhost. and then don’t forget to run the below command.

php artisan route:clear
php artisan view:clear
php artisan view:cache
php artisan config:cache
php artisan optimize:clear

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?

Also Read

Please Rate Our Solution to Motivate Us For Give Our Best

Leave a Comment