Added cli handling of host and port flags