If you installed WordPress using http://YOUR.IP.ADDRESS rather than http://YOUR.DOMAIN, WordPress may have incorrect settings for what it believes to be your site's true domain.
As a result, it keeps redirecting you to the IP address.
You can correct this through WordPress's General Settings, as shown below.
If you prefer or if the above doesn't work, you can also change these settings by adding the following lines to your app's wp-config.php file (change example.com to your domain):
define('WP_SITEURL', 'http://example.com'); define('WP_HOME', 'http://example.com');