Conventional current follows the copper winding. By the right-hand rule, the interior magnetic field points along the solenoid axis toward N.
For L ≫ R and n = N/L, the field is confined to the interior. The dashed arcs are qualitative fringing/return paths near the ends, not a finite exterior field in the ideal long-solenoid limit.