Work around port blocking

Fixes #188.