ModsFinder

Hostname Catcher

by shawnfox

Hostname Catcher lets a server owner check which hostname or domain a player used to join, and restricts entry to a list of whitelisted hostnames.

FabricServer-side onlyGNU General Public License v3.0 onlyOpen source26.1 – 26.2

What it does

Players can reach a server by its domain name, by a hostname, or by a raw IP address such as 192.168.5.64. Hostname Catcher records the address each joining player used, so the owner can see which hostnames are in use. Joins through a hostname on the whitelist go through, while a join through another address is disconnected. This helps when a server should only be reached by its proper domain and not by scanners hitting the IP.

The mod runs on the server alone, and Fabric API is required beside it. A config file is generated the first time the server starts, and its list of whitelisted hostnames and domains is edited there, followed by a server restart to apply the change. An empty whitelist still logs the hostname or IP each player used, so the owner can gather that data before restricting anything.

Hostname Catcher is open source under the GNU General Public License v3.0 only. Files are published for Fabric, covering 26.1 – 26.2, with 0.2 for 26.2 as the latest build.

Key features

  1. Hostname logging

    Each joining player's address is recorded, showing which hostname or IP was used to connect.

  2. Hostname whitelist

    Only whitelisted hostnames and domains are allowed through, and other joins are disconnected.

  3. Generated config file

    A default config file is created on first start and holds the whitelist, which is edited by hand.

  4. Logging without a whitelist

    With the whitelist left empty, the server still logs the hostnames and IP addresses players connect with.

Compatibility

Latest build for each game version and loader.

26.20.2
26.1.20.2
26.1.10.2
26.10.2
ReleaseBetaAlphaNot available

Only full game releases are shown. This mod publishes no snapshot builds.

Requirements

Dependencies declared by the latest file for each loader.

Required 1

Fabric APILightweight and modular API providing common hooks and intercompatibility measures utilized by mods using the Fabric toolchain.
Required

Use cases

Who it’s for: Server owners who want players to reach the server only through its correct hostname, and who want a record of the addresses used to join.

How it compares

Full comparison

Packet Catcher is client-side only and open source under the MIT License, published for 26.2, so it runs on the player's side rather than the server. Server Restart Command is server-side only and open source under the MIT License, covering 26.1 – 26.2, and it manages server restarts rather than join addresses.

ModLoadersGame versionsEnvironmentUpdated
Hostname CatcherFabric26.1 – 26.2Server-side only2026-06-11
Packet CatcherFabric26.2Client-side only2026-07-16
Server Restart CommandFabric26.1 – 26.2Server-side only2026-07-08

Questions

Does Hostname Catcher need Fabric API?

Yes. Fabric API is required and must be installed next to Hostname Catcher on the server.

Does every player need the mod installed?

No. Players join without it, since only the server has to run the mod.

Where is the whitelist set?

The whitelist is kept in the config file that is generated when the server first starts. The server must be restarted after the file is edited.

Which versions does Hostname Catcher support?

Files are published for Fabric on 26.1, 26.1.1, 26.1.2 and 26.2, with 0.2 for 26.2 as the latest file.

In the catalog

Hostname Catcher is one of 8,016 Management mods on ModsFinder, and one of 5,930 Management mods for Fabric. 13,894 mods support Minecraft 26.2.

Similar mods

What the author says

This mod is perfect for any server owner that wants to ensure players joins using the right hostname to their server and avoid random people joining via server scanners. When such whitelist is empty, your server will still log what kind of hostnames or even your server IP address is used by your player base to join.
shawnfox, on the Modrinth page

Official listing

Owner
shawnfox
Published
2026-06-06
Updated on Modrinth
2026-06-11
Facts verified
2026-10-15

Tags