在英雄联盟游戏登录的时候,玩家总是会遇到很多问题,导致无法进入游戏。比如弹出提示:登入时遇到了一个预期之外的错误,如下图所示。来看看相关解决办法吧!

登入时遇到了一个预期之外的错误解决办法:

1、我们要先找到本机内的hosts文件,如果hosts在指向的时候出现了问题,是会有这样预期外的错误提示的。

2、一般hosts文件的路径是C:\Windows\System32\drivers\etc,找到这个文件清空文件内容,之后复制以下内容粘贴进去:

# Copyright (c) 1993-2009 Microsoft Corp.

#

# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.

#

# This file contains the mappings of IP addresses to host names. Each

# entry should be kept on an individual line. The IP address should

# be placed in the first column followed by the corresponding host name.

# The IP address and the host name should be separated by at least one

# space.

#

# Additionally, comments (such as these) may be inserted on individual

# lines or following the machine name denoted by a '#' symbol.

#

# For example:

#

# 102.54.94.97 rhino.acme.com # source server

# 38.25.63.10 x.acme.com # x client host

# localhost name resolution is handled within DNS itself.

# 127.0.0.1 localhost

# ::1 localhost

3、更改完hosts文件后,可以找到控制面板找到网络连接,然后找到本地连接,右键选择属性,然后找到下图所标记的协议:

4、把DNS更改为公网DNS,大家可以参考下今年评估的DNS排名,选择你所需要的DNS作为固定DNS;详情参考下图:

5、最后我们只需要重置下网络协议就可以了,这里我们可以使用本机自带的DOS命令进行重置也可以使用第三方软件进行重置我们可以参考该链接方案的第五步来进行操作;详情参考下图:

6、最后我们应该就能成功登入游戏了,这种情况一般出现在高峰期、更新后或者是自己的游戏账号被封了。