Check for host and port on init