You pay resident prices for Massachusetts hunting, trapping and fishing licenses if you are stationed here but are not a Massachusetts resident.
Buy your licence through the Massachusetts Division of Fisheries and Wildlife and show your orders assigning you to Massachusetts.
Your military ID and orders assigning you to a duty station in Massachusetts.