888 wrong ports default

Fixes #888.