Fixed typo and increment _port once before while loop