Guys !!! Found solution...
Just change your time and date settings to current date . This problem genrally occurs due to wrong date and time settings..
In my case I did a factory reset of my Galaxy Tab S, It starts the initial setup, it can connect to the Wifi, contenius it's initial setup but there is no option during this period for me to change the date. It keeps saying that It has no internet connection.
Here's a video showing what I'm taking talking about:
Last edited: