Revert "don't override empty opts.port"

This reverts commit 1bf90f5aaa049bd60f79823c2f3580d8c0332d03.