To enable automatic detection of LAN settings, open Internet Options > Connections > LAN Settings. Here, make sure the Automatically detect settings option is enabled.