Driving is most convenient, but you can take the commuter rail from North Station to Manchester and take the shuttle to Rockport from there.