Error 57
I restarted the Riot game several times and restarted the computer, but it still didn't work

reboot the router
wait for it to get connected to internet
then reboot the pc
netsh int ip resetipconfig /releaseipconfig /renewipconfig /flushdnsnetsh winsock resetnetsh advfirewall reset