Dedicated Server package always sets port to 7777

I’m using the Dedicated Server package version 1.3.0. Setting the port in the Build Profiles and from code by calling Arguments.Port has no effect - in the build the port is still set to 7777.