The 2842111-4: Plan for the 0.110" (2.79 mm) post length below the board and the 0.157" (4.00 mm) mating pin length above.
Peer Comparison: 1-1871673-2
The closest functional alternative is 1-1871673-2 — also a 4-position, right-angle, through-hole header, but with a 2.50 mm pitch, dual-row layout, shrouded 4-wall housing, and a detent lock. That part carries tin mating finish and a higher voltage rating (250 VAC/DC). If your board layout allows the wider pitch and you need shrouding for mis-mate protection, it is a viable cross-shop.
