Allow configuration of the publishing port for events.