only set the port when it's not falsy