Exonym and endonym
An exonym or xenonym is an external name for a geographical place, group of people, or language/dialect: a common name used only outside the place, group or linguistic community in question, usually for historical reasons.
An endonym or autonym, on the other hand, from the Greek root words ἔνδον, éndon, "within" or αὐτο-, auto-, "self" and ὄνομα, ónoma, "name", is given by members of a particular ethnolinguistic group to the group itself, its language or dialect, or its homeland or a specific place within it.