Modscraper Modscraper Minecraft

ServerAddressSpaceFix

Mod

Fix 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

Fabric

Game Versions

1.20 1.20.1 1.20.2 1.20.3 1.20.4 1.20.5 1.20.6 1.21 1.21.1 1.21.2 +13 more

Similar Mods

Included in Modpacks

External Resources