I use a 3G wireless internet adapter for my laptop, or just my iPhone. My collegue has his iPhone tethered to his laptop for web browsing on the train.
If you're contemplating the provision of wifi for train patrons, then you'd be looking at installing an access point in each carriage, connected to something like a computer with wireless internet access.