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
140,138
Modrinth ID
NJGSUuLp
Last Updated
Jul 26, 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
Similar Mods
Phosphor Crash Fix
Fixes crashes caused by Phosphor's Chunk mixins
FTB Jar Mod (Forge)
Adds early game item and fluid processing blocks that use custom recipes added by modpack
Engineered Compatibility
Engineered Compatibility is a datapack-mod that adds compatibility to Immersive Engineering for a host of other mods.
Vanilla Vistas
Overhauls terrain generation and biome placement without adding custom biomes
VanillaHUD
A mod that modifies various vanilla HUD elements, such as the bossbar, action bar, and sidebar.
Hotai
Patch mods with external files for modern version