What are you searching for?

Fast IP Ping
Fast IP Ping

Fast IP Ping

Yeet the laggy reversed DNS lookup for literal IP server addresses

download 13.3M Downloads · favorite 1,030 Followers · Updated 2 months ago
Fabric Forge Neoforge Optimization 1.14.4 1.15.2 1.16 1.16.1 1.16.2 +32 more

Versions

inventory_2
[neoforge] Fast IP Ping v1.0.8 for mc1.21.4

v1.0.8-mc1.21.4-neoforge · 2 months ago · 10.09 KB

Release download
Neoforge 1.21.4
inventory_2
[forge] Fast IP Ping v1.0.8 for mc1.18.2

v1.0.8-mc1.18.2-forge · 2 months ago · 10.09 KB

Release download
Forge 1.18.2
inventory_2
[forge] Fast IP Ping v1.0.8 for mc1.21.3

v1.0.8-mc1.21.3-forge · 2 months ago · 10.09 KB

Release download
Forge 1.21.2 1.21.3
inventory_2
[forge] Fast IP Ping v1.0.8 for mc1.17.1

v1.0.8-mc1.17.1-forge · 2 months ago · 10.09 KB

Release download
Forge 1.17.1
inventory_2
[fabric] Fast IP Ping v1.0.8 for mc1.18.2

v1.0.8-mc1.18.2-fabric · 2 months ago · 10.13 KB

Release download
Fabric 1.18 1.18.1 1.18.2

About

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
open_in_new View on Modrinth
Categories
Compatibility
Client: Required Server: Unsupported
gavel LGPL-3.0-only

Conversation

What are your thoughts?

Related projects

Optimization
Sodium
Sodium

by jellysquid3

The fastest and most compatible rendering optimization mod for Minecraft. Now available for both NeoForge and Fabric!

download 123.5M
favorite 33,219
Decoration Optimization
Iris Shaders
Iris Shaders

by coderbot

A modern shader pack loader for Minecraft intended to be compatible with existing OptiFine shader packs

download 94.9M
favorite 24,087
Optimization Utility
FerriteCore
FerriteCore

by malte0811

Memory usage optimizations

download 88.6M
favorite 12,930
Optimization
Entity Culling
Entity Culling

by tr7zw

Using async path-tracing to hide Block-/Entities that are not visible

download 88.1M
favorite 13,964
lock Cookie consent

SkinMC uses cookies to provide functionality and features.