test nil of port & host