set port correctly