How do I get my NH real estate license if I'm not a NH resident?

You need to follow the same requirements as a New Hampshire resident. This includes steps like taking the 40-hour pre-license course, being hired by a NH licensed broker, and passing the state exam.