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 12.8M Downloads · favorite 1,002 Followers · Updated 1 month 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 · 1 month 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 · 1 month 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 · 1 month 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 · 1 month 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 · 1 month 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 118.2M
favorite 32,788
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 90.5M
favorite 23,773
Optimization Utility
FerriteCore
FerriteCore

by malte0811

Memory usage optimizations

download 84.3M
favorite 12,712
Optimization
Entity Culling
Entity Culling

by tr7zw

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

download 84.0M
favorite 13,759
lock Cookie consent

SkinMC uses cookies to provide functionality and features.