

Fast IP Ping
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