set port as integer