You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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)StringgetHostName(booleancheck) {
if (holder().getHostName() == null) { // It will be null if InetAddress.getByName() received a literal IPholder().hostName = InetAddress.getHostFromNameService(this, check); // <-- takes forever
}
returnholder().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
Why should it be in the modpack
It reduces the time it takes to check the status of LAN servers in the multiplayer menu.
Why shouldn't it be in the modpack
No response
Additional details
No response
The text was updated successfully, but these errors were encountered:
I don't personally think it's worth it... Minimal to no change to real word ux
It's only 10KB and it shaves off several seconds. Considering that the average JPEG weighs about 50KB, there's little to no cost to adding this mod.
Even if this only affects LAN servers, for only 10KB I think it's worth adding. There are a lot of people who wait until the server status loads before clicking join.
CurseForge link
https://www.curseforge.com/minecraft/mc-mods/fast-ip-ping
CurseForge Mod Distribution
Allowed
Modrinth link
https://modrinth.com/mod/fast-ip-ping
Source/other link
https://github.com/Fallen-Breath/fast-ip-ping
Mod file size
10.3KB
License
(any other license)
What it does
Yeet the laggy reversed DNS lookup for literal IP server addresses
Extracted from the
yeetServerIpReversedDnsLookup
option in TweakerMore ModWhat & 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 correspondingInetAddress
objectMany non-loopback IPs lack associated domain names, which makes reverse lookups time-consuming
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:
Environment
Why should it be in the modpack
It reduces the time it takes to check the status of LAN servers in the multiplayer menu.
Why shouldn't it be in the modpack
No response
Additional details
No response
The text was updated successfully, but these errors were encountered: