Either http or pb port should be set.