updating listening port number for the controller socket