ServerAddressSpaceFix
ModFix the "unknown host" bug when adding a server or connecting directly to a server with a space at the end of the server address
Type
Mod
Modrinth Downloads
128,298
Modrinth ID
NJGSUuLp
Last Updated
Jun 10, 2026
Description
Introduction
This mod aims to fix a bug that was reported on 26 November 2021 but has still not been fixed. Bug tracker link
Features
If the server address you enter on the “Add Server” or “Direct Connect” screen contains spaces at the beginning, end, or in the middle, this mod will automatically remove them.
This prevents the “Unknown host” bug mentioned above.
Configuration
- If you have version isolation enabled, it should be located at .minecraft\versions\<version name>\config\serveraddressspacefix.json5
- If you do not have version isolation enabled, it should be at .minecraft\config\serveraddressspacefix.json5
This is just a regular JSON text file, except that JSON5 supports extra features such as comments.
All properties are annotated, including their purpose, range of values, type, default value, and so on.
You can open it in a plain text editor and modify it.
You can edit the config file while the game is running; once saved, the changes will be applied in-game automatically.
Known issues
All known issues have been fixed; if you find any new ones, please let me know.
If anyone is willing to help me fix the bug, please submit a PR ╰(°▽°)╯
Licence
I use the more radical WTFPL rather than MIT.
Compatibility
Mod Loaders
Game Versions
Similar Mods
Fright's Delight
Fright’s Delight is an add-on mod for Farmer’s Delight that adds food made from mob drops. Dishes are created with a “Ho...
WatchDog Anti Cheat
This is a mod for modpack creators/server owners to use to protect their servers against mods that use hacks
Cinematic Zoom
Not just a boring zoom a full kit for your cinematics in Minecraft
Can't Sleep Clowns Will Eat Me
A forge mod that causes nearby mobs to be temporarily highlighted when they prevent players from attempting to sleep
Rainbow Oak Trees
A standalone implementation of the Rainbow Tree from Twilight Forest
LC²H [Lost Cities: Multithreaded]
LC²H V3 turbocharges The Lost Cities to massive cities, lightning-fast, silky smooth gameplay. Fully C²ME compatible. I’...