Fix for League of Legends client/launcher not opening in Patch 4.21

Since yesterday, I’ve been having prob­lems trying to open League of Legends. Assuming it was just a problem with Riot’s servers (because we know there’s plenty of those, such as the ones that affected my stream two days ago and I taught everyone how to Attempt to Reconnect), I just ignored it.

When I tried again today, the problem was still there, so I started digging around.

I went to my League of Legends folder to look at some logs, and found the following lines inside one of my patcher logs:

ERROR| RemotingClient: Failed to resolve host:port 'localhost:2997' to an ipv4 address.
       getaddrinfo returned: 11001
ERROR| Riot::Client::BrowserProcess::Init: Unable to connect to app process.

To fix that, I updated my hosts file to allow it to associate an IPv4 address with localhost.

To do that, navigate to:

C:\Windows\system32\drivers\etc

Open the hosts file. I recommend doing so with something like Notepad.exe, but any plain-text editor will work.

Add the following line of text to your hosts file:

127.0.0.1 localhost

If there are any other lines that contain localhost after a space, remove it (for example, if your file contains “::1 localhost,” remove that line).

That fixed the problem for me, and my launcher started working again. Unfortunately, if that doesn’t work for you, I don’t have any other suggestions, because I stopped researching once I found a solution that worked for me.

 

—§—

 

 

—§—