After receiving his commission, Hodges was assigned to the
25th Infantry Regiment.
Fort Randall,
Dakota Territory, and
Fort Shaw,
Montana, and was promoted to
first lieutenant in 1880. At the start of the
Spanish–American War in 1898, Hodges was commander of Company M, 25th Infantry, which he led from its duty station in
Colorado to its port of embarkation in
Tampa, Florida. As commander of 2nd Battalion, 25th Infantry, Hodges served in
Cuba and participated in the July 1, 1898
Battle of El Caney. After the war, he returned to command of Company M at
Fort Logan, Colorado. During 1899, Hodges performed temporary duty as commander of the army recruiting offices in
Seattle and
Portland, then commanded the post at
Fort Sam Houston,
Texas. In July 1900, he was promoted to major. In August 1901, he transferred from the 17th Infantry to the
23rd Infantry. Hodges continued to serve with the 23rd Infantry after returning to the United States, and he was promoted to
lieutenant colonel in August 1903. In 1906, Hodges was assigned to command the post at
Fort Ontario,
New York. In January 1907, he received promotion to
colonel. ==Later career==