Parse port to int