The Hosts file is used by the operating system to translate friendly names to IP addresses in a network. Along with your DNS, it helps your device communicate with servers online. If you're experiencing connection issues, resetting your Hosts file could help.
To reset your Hosts file, you can follow this article from Microsoft Support: How to reset the Hosts file back to the default
If you are following the series of articles in How to troubleshoot connection issues and this did not solve the issue try the next step in our troubleshooting: How do I adjust the Epic Games Launcher files to improve download speeds?