Server Fetcher 图标

Server Fetcher

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.1.1
本资源为搬运资源,原资源地址: https://modrinth.com/mod/server-fetcher
资源信息

Minecraft 版本: 1.20.1

平台: fabric

标签: management technology utility

资源介绍

ServerFetcher is a lightweight client-side Fabric mod for Minecraft 1.21.1 that automatically fetches a server IP address from a predefined HTTP endpoint when the game starts and adds it to your multiplayer server list.

This is especially useful for dynamic or frequently changing server addresses, such as those hosted on ngrok or other tunneling services.

# ? How It Works

When you launch Minecraft with this mod installed:

It sends a GET request to a static URL (e.g., https://example.com/ip).

The response should be a single line containing a valid Minecraft server IP or domain.

The mod then automatically adds (or updates) this IP in your servers.dat as a multiplayer server entry named "New Server" - can be changed in the config with ModMenu.

# ? server.py (Required for Hosting the IP)

To provide the dynamic IP to clients, you’ll need a simple HTTP server that serves the current Minecraft server IP.

Use the included server.py script from the GitHub repository:

python server.py
This script:

  • Hosts a small web server on 0.0.0.0:5000
  • Returns the IP address stored when /ip is accessed

# Example ip.txt content:

7.tcp.eu.ngrok.io:12345

When a player with the mod starts Minecraft, it reads this IP and adds it to their multiplayer list automatically.

⚙️ Requirements

  • Minecraft 1.21.1

  • Fabric Loader

  • Cloth Config API
    Client only (does not need to be installed on the server)

For any questions and more complex tutorial visit the Github repository.

下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Anime Sky

价格:0 墨喵币
下载量:0

查看详情
Fishcraft

价格:0 墨喵币
下载量:0

查看详情
/tpr Teleport Random Command

价格:0 墨喵币
下载量:0

查看详情
Skippy

价格:0 墨喵币
下载量:0

查看详情