How do I go about getting car insurance in another state?

I live in new york, i want to get car insurance in another state like maryland or delaware, i have friends in each state. What do i need to get car insurance there? Please help me…lots of details please…thank you