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

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

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 +12 more

Similar Mods

Included in Modpacks

External Resources