Please go to Tools > Internet Options > Connections > LAN Setting. Make sure that no proxy is set up in this field.
You can check the same for Firefox just in case you are using a proxy but it's not configured properly. Use this path to reach proxy settings: Tools > Options > Advanced > Network.