wip: set external port for handshake