It is only 24 miles from Springfield , Massachusetts . Hartford has the third most people in the state behind Bridgeport and New Haven . It is located in Hartford County , and is the 2nd most populous city on the Connecticut River ( after Springfield , Massachusetts , the city center of which sits just 24 m north of Hartford 's city center . )