respect publicPort setting