My S4 too has suddenly stopped connecting to the internet both through wifi and mobile network even though it says it is connected to both my home wifi as well as the mobile network. I have rebooted multiple times and have even reset my home wifi but nothing has seemed to work.