Fixed in server where port was always undefined

Was mapping a variable twice so it always
ended up undefined