Revert "remove configuration port comparison"

This reverts commit 6d84b9dcf071a79338cf6522173f6c0f9a93b6dc.