Make the rest adapter respect port configuration