Removed hardcoded port

Is there a reason why the port needs to be hardcoded here when it can be specified in the sys.config file? This make doing things like secure websockets a little more clunky.