Read port number from announcement

This should make port mapping and tunnelling work, as well as
supporting Photon.