You should be able to do it without modifying the settings. In the wp-config.php file add the following two lines.
define(‘WP_SITEURL’, ‘http://your-server-IP/~username’);
define(‘WP_HOME’, ‘http://your-server-IP/~username’);
Just remember to remove them once the site propagates.