The stranger's egg in Pokémon Diamond is a Manaphy egg.
It's a special event-only egg, not obtainable in a normal playthrough. If you're playing a standard copy, you cannot get it.
To obtain one, you'd need to have participated in past events or use methods (like connecting to another game) that are no longer possible.