Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bin8083/fast-ip-ping-1.12.2
Fast-IP-Ping-1.12.2
https://github.com/bin8083/fast-ip-ping-1.12.2
client forge hypixel minecraft minecraft-mod mod
Last synced: 3 days ago
JSON representation
Fast-IP-Ping-1.12.2
- Host: GitHub
- URL: https://github.com/bin8083/fast-ip-ping-1.12.2
- Owner: bin8083
- License: other
- Created: 2025-01-11T12:25:24.000Z (5 days ago)
- Default Branch: main
- Last Pushed: 2025-01-11T12:36:32.000Z (5 days ago)
- Last Synced: 2025-01-11T13:23:20.120Z (5 days ago)
- Topics: client, forge, hypixel, minecraft, minecraft-mod, mod
- Language: Java
- Homepage:
- Size: 0 Bytes
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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