Exo planets don't shine and are masked by their stars presence . We detect them indirectly (eg by dimming of starlight I think not sure) etc etc
There's a lot of ways to detect exoplanets:
- actually view them, after occulting the star (coronography), but it's basically only doable for giants, and far from the star, that's inefficient
- observe a dimming of the light coming from a star when the planet travel in front of the star, but you need big planets and be just in the planetary plane of the star, which require a lot of luck
- observe a dimming when the planet travel *behind* the star, because we don't receive light of the star reflected by the planet, with the previous limitations, and also the need of a high albedo for the planet
- seeing the star going back and forth, attracted by the planet like the planet is attracted by the star, either by direct mesurement of the position in the sky over time, or by measuring red shift over time ; you still need quite an heavy planet, and not be on the pole of the orbital plane (and a bright star) if you want to use redshift instead of direct movement observation
- observing specific deviation of the light of a star (gravitational lensing), when a closer star with a planet is travelling exactly between the first star and Earth, a method that require a perfect alignment, but also the only method that can detect earth-like planets, as far as I know
...
But, if I'm not wrong,
observing a planet like Earth (1e7 m) at 50 lightyears (5e17 m) is like observing a fine grain of sand (1e-4m) on Los Angeles beach from New York (5e6 m) (or an ant on the Moon). It's tricky...