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
149,474
Modrinth ID
NJGSUuLp
Last Updated
Aug 29, 2026
Description
Introduction
This mod is intended to fix a bug that was reported on November 26, 2021 and still has 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, the end, or in the middle, this mod will automatically remove them. This prevents the "Unknown Host" bug mentioned above.
Configuration file
- 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 located at .minecraft\config\ServerAddressSpaceFix.json5
This is just a regular JSON text file, except that JSON5 supports additional features such as comments. All properties include comments, covering things such as functionality, value ranges, types, default values, and more. You can edit it with a normal text editor. You can even edit the configuration file while the game is running; it will be applied automatically after saving.
Known issues
All known issues have been fixed. If you find any new ones, please let me know. If anyone is willing to help fix a bug, PRs are welcome ╰(°▽°)╯
License
I use the even more aggressive WTFPL than MIT.
Compatibility
Mod Loaders
Game Versions
Recommended Gear
AffiliateHardware and extras that pair well with this mod.
As an Amazon Associate I earn from qualifying purchases.
Similar Mods
Truly Treasures
Highly configurable mod that makes Wandering Traders sell treasure enchantments instead of Villagers
BCG Util
A utility mod for BigChadGuys modpacks
Better Spartan Archery
Addon for Spartan Weaponry that lets you adjust material damage for bows/crossbows
ClearSky
Unofficially ports ClearSkies, making horizon and fog colors match the sky
Wither Spawn Fix W.S.A. Compatible
A fix for the Wither spawn that works with Wither Spawn Animation
Construct's Casting
Add-on that integrates Tinkers' Construct and Iron's Spells 'n' Spellbooks.