> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zonely.gen.tr/llms.txt
> Use this file to discover all available pages before exploring further.

# Hytale 网络服务器和查询

> 通过WebServer使Hytale服务器信息可查询.

WebServer在Hytale 中打开了网络服务;查询提供了服务器名称,版本和此服务中的玩家信息,还应安装两个查询插件.

## 安装加载

[尼特拉多网络服务器](https://github.com/nitrado/hytale-plugin-webserver/releases) 财务报告和已审计财务报表 [尼特拉多查询](https://github.com/nitrado/hytale-plugin-query/releases) 文件 **mods/** 把它放入文件夹。 请检查启动记录上安装了两个插件 。

## 准备网页端口

默认的网页端口是游戏端口的再三个。例如游戏端口 **5520** 网络端口 **5523** 自定义设置 **mods/Nitrado\_WebServer/config.json** 已载入文件。

```json title="实例仅限于同一机器上的倒置代理" theme={"theme":"css-variables"}
{
  "BindHost": "127.0.0.1",
  "BindPort": 5523
}
```

此示例使用本地的监听地址来在同一机器中进行反向代理。 准备外部访问布局和 TCP 根据您自己的主机端口。 WebServer 使用 TLS;客户的信任将经过验证或倒置 [管理员指南](https://github.com/nitrado/hytale-plugin-webserver/blob/main/docs/admin/admin-guide.md) 配置根据。

## 准备查询请求

```http title="API 请求格式" theme={"theme":"css-variables"}
GET /Nitrado/Query HTTP/1.1
Accept: application/x.hytale.nitrado.query+json;version=1
```

ưμ㼯A **/Nitrado/Query** 形状。使用 JSON 接受在 \$2 上发布的头 API 客户端。浏览器可以显示 HTML 查看同一地址。

## 选择要查看的信息

**permissions.json** 内 **组.ANONYMOUS** 基本外观 **nitrado.query.web.read.basic** 权限可以添加。 玩家有单独的插件权限和其他细节; 单独打开您将提供的信息 。

请检查access-date=中的日期值 (帮助) 401/403 回复中的权限, 406 的接受信头 。 TLS 财务报告和已审计财务报表 TCP 连接失败。

[查询 API](https://github.com/nitrado/hytale-plugin-query#api-endpoints) · [命令连接](https://docs.zonely.gen.tr/zh-CN/integrations/hytale.md) · [连接和工具](https://docs.zonely.gen.tr/zh-CN/integrations/overview.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.