Cannot Connect via Localhost; 127.0.0.1 works fine
-
System Config – Win 10; Xampp ver7.2.5; WordPress 4.9.5; not-multisite
Sorry for the long post but my hope is that it will reduce your time by eliminating some obvious questions that would have to be asked.
About a year ago I was experimenting with WordPress using a local install. I made some decent progress – everything installed, website built, access both from the intranet and on the local system etc. Due to issues (computer and real life), I suspended the project.
I recently purchased a new computer and decided to continue my efforts. I installed XAMPP and WordPress without any problems. In a few minutes I was up and running with a sample site. I can access this site with localhost/website & 127.0.0.1/website with no problems. The same goes for …/wp-admin and access from the wordpress dashboard. With everything working I decided to migrate my original website to the new machine.
I exported the database from PhpMyAdmin and imported it on the new machine. The databases seem identical between machines. I copied my contents folder to a new folder under the htdocs folder. I changed the config file and made sure that siteurl and home in the options table of the database were correct (https://localhost/websitefolder). Then I tested it.
I can access the site via 127.0.0.1/websitefolder. I can access …/wp-admin. But if I want to access the site from the wordpress dashboard or localhost/websitefolder the browser tries to connect to the old computer’s IP address.
I have searched the database from the root level for instances of the IP address using PhpMyAdmin. Nothing. I have searched all content folder files for the same string. Nothing. I have refreshed permalinks. No change. Does anyone know what I am missing?
- The topic ‘Cannot Connect via Localhost; 127.0.0.1 works fine’ is closed to new replies.