Consider a common situation.
A patent troll owning US patents finds a fresh target, decides to threaten it, his lawyer looks up the company address and surprise! it's not in the US. Let's say it is EU-based, say in the Netherlands, or perhaps in Hong Kong. His next step?
The company does not sell a product to US customers, but is purely online service free of charge for end-users, earning through advertisement.
Would the patent troll go to a US court and attempt to sue an overseas company? Knowing the company would most likely ignore any ruling since it is only subject to their local laws? The nature of the company does not imply anything illegal or immoral.
Btw, does being hosted in US change anything or it is the incorporation location that only matters?
P.S. It is not an attempt for a US-resident to hide from US courts. I'm not based in the US in the first place and incorporating in US is certainly not the first choice when it comes to it.
It doesn't matter where your company is. What matters is where you do business.
Generally, you can only be sued for infringing a U.S. patent if the infringement occurs in the United States. The relevant law is 35 USC 271(a).
then it will be difficult to sue you for infringing a U.S. patent.
More importantly, it is rare for a startup to get sued for patent infringement unless that startup is very successful. If you don't make that much money, then it is not worth the attorneys' fees to sue you.
You definitely can be sued in EU, although technically it will be hard and expensive.
You should look into something else. You may want to set up an offshore legal entity and licence this technology to your company in EU for a fee, but make sure you personally are not listed as this offshore company's founder, and that the offshore company does not have assets that can be taken away if it comes to the lawsuit.