As stated im looking for the name of a anime serie i watched long long time ago.

The anime is fantasy mecha i guess. The anime is about humanity fighting vs "aliens" and they lost so now they are living inn ignorance on servers where their minds are (not bodies).

and when one realise that they live inn a fake world they get recruited to a program where they send the mind out into some robots that fights the aliens. The main char is in school, and he realises its a fake world cause of the train never goes.

if anyone remember the name of this anime i would be wery grateful

sor about typos and hope someone can remember this one