modify port  in add_addr func