Wordpress site showing IP address in address bar, not domain
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 (18.104.22.168) but in the address bar the URL looks like this http://22.214.171.124/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"126.96.36.199/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.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.