Use constants.CONFIG_NAME value instead of hardcoded name.
Use localhost as a default hostname for the server.