Method one:
1. Press Win + R to start running, enter CMD and click Enter;
2. In the command prompt window, enter ipconfig /release.
3. After reconnecting to WiFi, enter ipconfig /renew in the command prompt window and run the ipconfig /renew command.