Porter moved to
Philadelphia as a young man, where he became a schoolmaster and amateur
astronomer. In 1776, he joined the American forces in the Revolutionary War as a captain of
marines. He later moved to the
artillery, in which branch he served at the battles of
Trenton,
Princeton,
Brandywine,
Germantown, and Tioga Point. He was later directed by General
George Washington to supervise the preparation of artillery ammunition for the
Siege of Yorktown. By the end of the war, he had been promoted to the rank of colonel.
Post Revolutionary War After the end of the war, Porter continued to serve in a military role with the Pennsylvania militia, rising to the rank of major general. He also served as the state's surveyor-general, and was one of the commissioners tasked with determining the boundaries between Pennsylvania,
Virginia, and
Ohio. He was offered the position of
Brigadier general in the U.S. Army, at the end of the War, and
United States Secretary of War by
President Madison, but he declined both due to his advanced age. ==Personal life==