Learn about this topic in these articles:

millipede reproduction

… have secondary genital appendages called gonopods, by which they transfer the spermatophore directly to the genital opening of the female. One millipede actually uses a “tool” in sperm transfer; the male rounds a fecal pellet, places a drop of sperm on it, and, using its legs, passes the pellet back…