Sounds to me like you may have a problem with your internet connection. Where that problem is, you'll have to figure out. Can you disable wifi and get to the web page (or other connection) you are trying to get to with 3g/4g? if so, your wifi connectivity is borked. Try resetting your router (power off for ten seconds and power back on).