Fix for #210 (Unable to connect to localhost)