Im running wordpress locally (via docker), and everything is working fine. At some point, I changed some router configurations, and my IP changed, from to (just an example, but you get it).

I updated the new IP in Wordpress Settings>General, Wordpress Address and Site Address. I checked, and these changes have reflected in the database as well in wp_options, siteurl and home.

Most images on the site were showing fine, but a few were not loading. Going into Wordpress again, Media, I saw a message saying if I wanted to run an update database process. Clicked yes, and after that, some more images started loading, but still not all. In my media library, going into the images, shows that they are pointing to the new IP,, but the site is still not loading them. And if, on the site, I right click the broken image link, and copy image address, it is still pointing to the old IP (

Is there any other update process I can run to correctly point the images to the new IP? It's weird that the media library seems to be displaying them correctly, with the correct IP, but Chrome (and other browsers) are still trying to look on the old one. Already tried incognito window and clearing caches.

Any suggestions?

Thanks in advance!


1 Answer 1


Try running the WP CLI command search-replace to update all uses in the database.

If you cannot access the WP CLI, there are plugins that will do database search and replaces as well.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.