Fast IP Ping

Fast IP Ping

vv1.0.11-mc1.21.10-neoforge
Modrinth 1 367 підписники Завантажень: 22 226 661
від fallen-breath
Увійти

Yeet the laggy reversed DNS lookup for literal IP server addresses

Товар

Про товар

pinging

Yeet the laggy reversed DNS lookup for literal IP server addresses

Extracted from the yeetServerIpReversedDnsLookup option in TweakerMore Mod

What & Why & How

For servers whose addresses are represented solely by a literal IP, e.g. 192.168.2.10:25565, disable reverse DNS lookups in the corresponding InetAddress object

Many non-loopback IPs lack associated domain names, which makes reverse lookups time-consuming

// java.net.InetAddress#getHostName(boolean)
String getHostName(boolean check) {
    if (holder().getHostName() == null) {  // It will be null if InetAddress.getByName() received a literal IP
        holder().hostName = InetAddress.getHostFromNameService(this, check);  // <-- takes forever
    }
    return holder().getHostName();
}

This option sets the domain of those servers directly to their IP, bypassing the reverse DNS check

This results in a 1s ~ 5s reduction in time for servers with literal IP address. Affects the following environments:

  • Pinging the server in the server list screen
  • Connecting to the server

Environment

  • Client-side only
  • Fabric / Forge / NeoForge mod loader. No extra requirement is needed
Прев’ю

Зображення товару

Середовище

Вимоги та сумісність

Сумісність і вимоги

FabricForgeNeoforge1.14.41.15.2 – 1.21.1126.126.1.126.1.226.2

Локальний хост

Required

Хостинг на сервісах

Unsupported

Умови

Ліцензія

Умови використання, зміни та поширення цього товару.

GNU Lesser General Public License v3.0 onlyModrinth
Реліз

Останній реліз

vv1.0.11-mc1.21.10-neoforge

16.04.2026 · Modrinth

  • mc26.1 forge-like: fix init log

Build Information