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.
Cotton seedling freezes to death as Chang'e-4 shuts down for the Moon's 14-day lunar night
Fortnite easily out-earns PUBG, Assassin's Creed Odyssey and Red Dead Redemption 2 in 2018
Meteor showers as a service will be visible for about 100 kilometres in all directions
Saturn's rings only formed in the past 100 million years, suggests analysis of Cassini space probe data
New findings contradict conventional belief that Saturn's rings were formed along with the planet about 4.5 billion years ago