Make sure host and port are always set to something.