Developers who landed jobs in other countries (remote or onsite) how did you do it?

Like how did u know the company was genuine How much talent / work needed Where did you search for it

Also Which countries are better to settle in? (Personally I wanna see Germany and EU as a whole) I'm ready to invest the whole next couple of years for this, plan to leave for good.