Accomodate environment port setting in addition to explicit setting