Free WiFi access will be made available on trains throughout England and Wales from 2017, the prime minister has announced.
David Cameron (pictured) told MPs during Prime Minister's Questions on 11 February that the government will invest £50m to provide passengers with better connections when travelling by rail.
He said it is "vital for businesses and individuals to be able to access WiFi and do their work while they are on trains".
The Department for Transport will work on the initiative with train operators Thameslink, Southern & Great Northern, Southeastern, Chiltern and Arriva Trains Wales.
The operators will develop detailed proposals to establish the rail routes and services that will benefit most from free WiFi.
The government said that some operators have, or plan to install, equipment to improve mobile coverage on trains. But it is targeting the investment at operators with no existing plans to provide WiFi access.
Over £47m of the investment will come from the money Network Rail has been required to reimburse the government for missing the Office of Rail Regulation's punctuality targets.
The government claims that this is the first time such money has been reinvested into delivering benefits for passengers.
Rail operators bidding for franchise and direct deal agreements will also be required to include WiFi access in their proposals.
Rail minister Claire Perry said that free WiFi access on trains is part of the government's long-term economic plan, and is needed to create a railway "fit for the 21st century".
"I am determined to improve journeys for rail passengers. Free WiFi is a priority for many as being able to keep up with work, connect with friends or even check the latest journey information online helps make rail travel more productive," she said.
The move highlights how technology and widespread connectivity is playing a larger role in politics.
The government recently mapped out 13,000 miles of public digital infrastructure to be used to boost connectivity across the country.
Technology is also a battleground for the three major parties as the General Election looms. MPs clashed recently over privacy, internet access and start-ups.
Geoengineering on the sea floor near glaciers would form a new ice shelf to prevent melting
Alterations in capillary blood flow can be caused by body position change
Curiosity rover is in 'normal mode' but not transmitting scientific data back to base
NatWest outage comes a day after Barclays' IT systems shut out customers and staff