Hello Sir/Madam. Thank you very much for giving us an opportunity to help you. I am Jins here to assist you. Please remember these things when we deal with your issue. It may take more than one step/answer to solve a problem. So If my answers don’t work or if you are not satisfied, please don’t Rate my answer as Bad or Poor Service, but please Reply back to me by clicking the “Continue Conversation” or “Reply” button and I will gladly continue to help. Remember, only Rate answer after you are 100% Satisfied. Please do not rate an answer, if you are not satisfied.
The problem is with your iPhone right ? Is Google and other google services working on your Mac computer ? You said when you use data, google services working on iPhone and when you connect to WiFi, it is not working. If you connect your iPhone to WiFi, can you load other websites not related to Google ?
If you connect your devices to WiFi, can you load other websites not related to Google ? For example if you connect your Macbook to WiFi, can you access justanswer.com and yahoo.com?
Good, then can I remote onto your Machine and have a look at your problem? It’s fully secure and you can see what I am doing at all times. If you wish please accept my remote support offer and let me know your time zone and the time period you prefer for remote support. Then I can send you the details to connect.
Okay, first of all please check Time and date settings are correct on all of your devices.
Are you using any antivirus or firewall ?
Can you please let me know your Wifi router/modem manufacturer and model details?
Access your Router settings section and disable filtering, also set DNS to 188.8.131.52 and 184.108.40.206 and check the result.
You need to restart your wifi router after making the changes. Can you ping to www.google.com when you use wifi ?
not getting any sites?
change DNS to 220.127.116.11 and 18.104.22.168
restart and check again
Then please try to update the router to latest firmware and check after that.
Are you able to ping www.google.com while on WiFi?
What it shows ?
Okay open terminal, type the command ping www.google.com and press return
open terminal (click on Terminal located in Applications > Utilities), type the command ping www.google.com and press return
Plz check this tutorial http://www.macworld.co.uk/how-to/mac/how-test-ping-on-your-mac-3524076/
Can you please check with another WiFi router? I think the problem is with the router.