assigning port num