I have a WordPress site that is working locally. In order to test the mobile design, I changed the URL from settings to my local IP. It worked fine, and then I changed it back to localhost. But the problem is accrued today, my local IP is changed and now WordPress still redirecting me to my old URL.
My local IP is 192.168.1.40 now
I changed the site URL from the database manually and still have the problem.