Download Fast IP Ping — Minecraft Mods — MetaMods
Fast IP Ping

Fast IP Ping

Active

Downloads

0

Last update

4 months ago

Versions

1.14.4 — 1.21.9
Client
Fabric
Forge
Neoforge
Game optimization
Utils

Fast IP Ping

pinging

Eliminate the slow reverse DNS lookup for servers with literal IP addresses.

This mod is a standalone version of the yeetServerIpReversedDnsLookup option from the TweakerMore mod.

How It Works and Why It's Needed

When connecting to servers whose addresses are represented as pure IP addresses (for example, 192.168.2.10:25565), Minecraft by default attempts to perform a reverse DNS lookup to determine the domain name. Most IP addresses don't have associated domain names, making this process lengthy and pointless.

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

The mod bypasses this check by setting the domain of such servers directly to their IP address.

Benefits

  • Reduces response time by 1-5 seconds for servers with IP addresses
  • Works in two scenarios:
    • Pinging servers in the server list
    • Connecting to servers

Compatibility

  • Client-side only
  • Supports Fabric, Forge, and NeoForge
  • No additional dependencies required
Project members
fallen-breath

fallen-breath

Developer

Fallen_Breath

Fallen_Breath

Created: 22 Aug 2023

ID: 448