resolve the port to connect to via bonjour
forgot to copy the correct type def from pub_example