accessing wifi networks
Many public wifi networks will use their DNS server to indicate which login page you should use. If a Google DNS has been added to your device, this may prevent the wifi network from finding its server.
To avoid this on an iPhone go to Settings . . . Wifi, and press the circled i next to the wifi name. Set ‘Configure DNS’ to automatic.