Showing my server ip in source code for several links not for all links

If you have previously added an image to a post or page inside the content, then that is saved as HTML with the URL as it was at the time of being added. So if you want to retroactively change media URLs inside content you need to do a search replace in the database.