Adding dynamic default for port settings
Fixing issue with createHref