Fixed bug with ip. Now defaults to localhost