parse as int the port variable