Fix (part of) issue #158 by using the appropriate port serialization parameters instead of always using the parameters of the default port