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.
RAND claims AI could enhance strategic stability by improving accuracy in intelligence collection and analysis
How NoSQL database technology and IoT sensors are being put to work saving endangered elephants and tigers
MarkLogic's David Northmore reveals how Dutch social enterprise Sensing Clues is using the latest technology to track poachers and protect endangered species
TSB IT fiasco has "all the hallmarks of an IT meltdown", claims Treasury Committee chair Nicky Morgan MP
The first appeals over Apple's Irish taxes will take place in the autumn, confirms Ireland's finance minister