Authserver "could not connect" "Host xxxxx not authorized" after changing IP for LAN installation

huangapple go评论45阅读模式
英文:

Authserver "could not connect" "Host xxxxx not authorized" after changing IP for LAN installation

问题

在一个干净的Windows 10安装上使用默认的Windows安装指南。我成功地使服务器运行起来了。再次强调:到目前为止,我只使用了默认值;没有进行任何更改。我能够使用现有的3.3.5客户端从另一台计算机登录,但无法进入领域。我能看到它,但如果我点击领域,它会像在连接,然后再次弹出领域列表。无休止地重复。

然后我记得我可能需要在数据库和/或配置文件中更改服务器的IP地址。我在authserver.conf中更改了登录服务器的IP地址,以及在worldserver.conf中更改了登录、世界和角色数据库的IP地址;所有设置都使用192.168.1.112。在使用Heidi的领域列表表中,我将两个IP设置都更改为服务器计算机使用的相同局域网IP,即192.168.1.112。然后我更新了数据选项卡,用相同的IP地址发布了更改。然后我断开连接并退出了Heidi。

现在当我尝试启动authserver时,我收到了标题中的错误:

Authserver.exe 无法连接到 MySQL,主机“servername”未被授权连接。

我在一个Docker安装问题中找到了此问题的提及,但原因是Heidi中的实时数据表未更新。我已经做了那个操作,但仍然收到相同的错误。我找到了其他线索,表明我需要编辑MySQL配置以允许除了本地主机之外的其他连接,但到目前为止,它们都提供的解决方案要么假定我拥有比我更多的知识,要么是针对我没有安装并且不熟悉的特定工具。

有人能否提供一些关于这个问题的指导?目标是在局域网上设置一个魔兽世界服务器,所有局域网上的其他计算机都可以访问。我以前用trinitycore服务器做过一次,但那是多年前了,我完全不记得我当时要做什么。

英文:

Using default Windows install instructions on a bare Windows 10 installation. I got the server running. Re-stating: this is thus far using ONLY default values; no changes. I was able to log in from another computer using an existing 3.3.5 client, but not enter the realm. I could SEE it, but if I clicked on the realm it would act like it was connecting and then just pop up the realm list again. Repeat endlessly.

Then I remembered I probably needed to change the IP number of the server in the database and/or conf files. I changed the login server ip in authserver.conf, and the login,world,and character database ip in worldserver.conf; all settings using 192.168.1.112. In the realm list table, using Heidi, I changed both ip settings to the same LAN ip that the server computer used, 192.168.1.112. Then I updated the data tab with the same ip, and posted the change. I disconnected and exited Heidi.

Now when I try to start authserver, I get the error in the title:
> Authserver.exe could not connect to mysql, host "nameofservercomputer" is not authorized to connect.

I found this issue brought up in a docker installation question, but it was caused by the live data table not being updated in Heidi. I have done that and still get the same error. I have found other leads that indicate I need to edit the MySQL configuration to allow other connections beyond localhost, but so far they all provide solutions that either assume greater knowledge than I have, or are for using specific tools that I do not have installed and are not familiar with.

Can anyone point to some guidance on this issue? The goal is to set up 1 wow server on a LAN, that all other computers on the lan have access to. I did this once before with a trinitycore server, but that was years ago and I do not remember what I had to do at all.

答案1

得分: 1

找到问题后,经过在互联网上搜索和仔细阅读。

第一注意:此配置专门用于局域网使用。如果它是解决Internet访问或其他任何问题的一部分,我不清楚。

运行Azerothcore的WoW服务器上的authserver.conf和worldserver.conf文件需要保持配置为默认的本地主机地址127.0.0.1,在设置似乎建议将地址更改为服务器的LAN IP的地方。我认为这可能仅需要为Internet访问进行更改。而我并没有在处理。唯一需要在服务器配置上更改IP号码为LAN号码而不是127.0.0.1的地方是在auth数据库的reallist表中,使用您安装并选择使用的任何mysql编辑方法进行。我正在使用Heidi。本地地址将保持为127.0.0.1;仅更改“address”字段为您的WoW服务器的LAN IP。

然后,当然,您需要在所有局域网计算机上更改每台计算机的realmlist文件,以指向局域网计算机的IP。该realmlist文件位于DATA文件夹中的enGB文件夹中,而该文件夹位于客户端文件夹中...在我的情况下,那将是World of Warcraft 3.3.5a/DATA/enGB/。

希望这对将来的某人有所帮助。它适用于TrinityCore、AzerothCore,我相信也适用于其他构建。

哦,为了解释我上面遇到的错误,那是因为我已经更改了authserver和worldserver conf文件中的IP号码,因此基本上服务器试图与数据库建立外部连接,而不是内部连接,这与安全设置默认设置相反。

英文:

Found the problem after scouring the internet and careful reading.

FIRST NOTE: THIS CONFIGURATION IS SPECIFICALLY FOR LAN USE. If it's part of the solution for internet access or anything else, I don't know.

The authserver.conf and worldserver.conf files on the WoW server running Azerothcore need to be left configured for the default localhost address of 127.0.0.1, in the places the setup SEEMS to recommend changing the address to the server's LAN IP. I think that may need to be done ONLY for Internet access. Which I'm not working on. The ONLY place ON THE SERVER CONFIG you need to change the IP number to the LAN number instead of 127.0.0.1 is in the reallist table in the auth database, using whatever mysql editing method you have installed and chosen to use. I'm using Heidi. the LOCAL address will remain 127.0.0.1; change ONLY the "address" field to your LAN IP for your WoW server.

And then, of course, on all lan computers, you will need to change each computer's realmlist file to point to the lan computer's ip. That realmlist file is in the enGB folder that is in the DATA folder that is in the client folder...in my case that would be World of Warcraft 3.3.5a/DATA/enGB/

I hope this helps someone in the future. It applies to TrinityCore, AzerothCore, and I'm sure other builds, too.

Oh, and to explain the error I experienced above, that was because I had changed the ip numbers in the authserver and worldserver conf files, so basically the server was trying to make an EXTERNAL connection to the database instead of an internal, which by default is opposed by security settings.

答案2

得分: 1

前往您的认证数据库,将您的领域的realmlist IP更改为领域的真实IP。

英文:

Go to your auth database, change the realmlist ip from your realm to real ip of the realm

huangapple
  • 本文由 发表于 2023年7月13日 23:56:46
  • 转载请务必保留本文链接:https://go.coder-hub.com/76681316.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定