Wordpress site showing IP address in address bar, not domain

April 12, 2015 12k views
WordPress DNS

My wordpress install is showing my IP address in the browser address bar instead of my domain name. My domain name ( paulapplegate.com ) is hosted at Google and an A record points to my droplet's IP address (45.55.133.104) but in the address bar the URL looks like this http://45.55.133.104/wp-login.php?loggedout=true, instead of http://paulapplegate.com/wp-login.php?loggedout=true as you would expect.

What do I need to change to get what I expect, http://paulapplegate.com/wp-login.php ?
Do I need to change /etc/hosts ?
As an FYI I can't access my WP install Settings-> General Page. I get the following error. "Safari can't open the page"45.55.133.104/wp-admin/options-general.php" because the server unexpectedly dropped the connection. " I will try to replace the file with one from the install.

I am lost and know just enough to be dangerous to myself.
Thanks for any help you can provide.
Paul

3 Answers

I found a solution.
https://www.digitalocean.com/community/questions/segmentation-fault-on-certain-wordpress-pages-on-ubuntu-apache-php?answer=20660

I can now access the Settings-> General page and change my WP name to the Domain name.

A little late but found a simple fix to this...

After getting all your cname/aliases set up, you would go to General settings->change "Site Address (URL)" to whatever your domain is. By default, it will list your site's IP address.

Hi Paul!

Thanks for posting this. I am having the same issue.

I looked through your link, but unfortunately I am not familiar with any of this.

Would it be possible for you to point me to where I can gain some context about what all this stuff means?

I think I basically need to copy and paste some stuff into some directory (maybe by FTP filezilla) in my droplet, but that is where my understanding stops.

Thank you so much if you can help me out

Rob

Have another answer? Share your knowledge.