I'm not talking about Ancient Aliens or anything like that. I'm curious when the modern concept of aliens first appeared.
Well, to "start at the beginning" as far as speculative cosmology goes, I believe there are some notions implied by the term "extra terrestrial" which problematise its application to ancient conceptions of a universe containing a multiplicity of worlds. The conceptualisation of other worlds as physical bodies separated from earth by a common traversible medium which, however it might differ in construction, shares a plane of existence with and obeys physical laws in common with the earth itself simply isn't a construction of the cosmos the ancient world saw. So from the point of view of, say, Anaximander, while there might be many worlds, existing over immense time scales, the notion of beings existing on one world, in one time (and one might even say in one plane of existence) implicitly signifies nothing whatsoever for any other such world. The modern notion of "extra-terrestrials" implies the existence of beings from elsewhere than the earth which nonetheless share our universe, and might interact with us simply by travelling sufficiently far. It seems to me questionable whether something can be deemed an "extra-terrestrial" in the sense we usually mean, which in a very real sense exists outside our sphere of reality and causality.
It seems to me there are a couple key ingredients required, to allow for the modern idea of extra-terrestrials:
What would you define as "the modern concept"? Ideas of lifeforms on other planets are pretty darn old, and are actually less common nowadays than they were in the past.
So, perhaps if you are more specific about what you mean with "modern concept of aliens" I can look up in the literature when people started talking about aliens in that specific way :)