Removing hard-coded port number

closes #1391