{"id":137516,"date":"2026-06-08T06:06:50","date_gmt":"2026-06-08T03:06:50","guid":{"rendered":"https:\/\/vpesports.com\/minecraft\/mods\/serveraddressspacefix\/"},"modified":"2026-06-08T06:06:50","modified_gmt":"2026-06-08T03:06:50","slug":"serveraddressspacefix","status":"publish","type":"mod","link":"https:\/\/vpesports.com\/minecraft\/mods\/serveraddressspacefix\/","title":{"rendered":"ServerAddressSpaceFix"},"content":{"rendered":"<p>**Tip: This description has been translated from the Chinese source text using DeepL, if necessary, it is recommended to view the source text.**<br \/>\n**\u5982\u679c\u4f60\u80fd\u770b\u61c2\u8fd9\u6bb5\u6587\u5b57\uff0c\u90a3\u4e48\u6211\u5efa\u8bae\u4f60\u70b9\u4e0b\u9762\u8fd9\u4e2a\u94fe\u63a5\uff0c\u53bbGithub\u770b\u7528\u4e2d\u6587\u5199\u7684\u6a21\u7ec4\u4ecb\u7ecd\u3002**<br \/>\nChinese source text hosted on Github<br \/>\n**\u5982\u679c\u4f60\u7684\u7f51\u7edc\u73af\u5883\u65e0\u6cd5\u7a33\u5b9a\u8bbf\u95eeGithub\uff0c\u90a3\u4f60\u53ef\u4ee5\u8bd5\u8bd5\u4e0b\u9762\u8fd9\u4e2a\u94fe\u63a5\uff0c\u8fd9\u662f\u6211\u81ea\u5df1\u90e8\u7f72\u7684Gitea\u670d\u52a1\u5668\u4e0a\u521b\u5efa\u7684\u955c\u50cf\u4ed3\u5e93**<br \/>\nGitea mirror<\/p>\n<p># Introduction<br \/>\nThis mod is intended to fix a bug that was reported on 26 November 2021 but has never been fixed<br \/>\nBug tracker link<\/p>\n<p># Features<br \/>\nIf the server address you enter in the &#8220;Add Server&#8221; or &#8220;Direct Connect&#8221; screen contains spaces at the beginning and end of the address or in the middle of the address, this mod will automatically remove them for you.<br \/>\nThis is to prevent the &#8220;unknown host&#8221; bug mentioned above.  <\/p>\n<details>\n<summary>Why this mod exists<\/summary>\n<pre>\n        A few months ago, I wanted to play on a server. I copied the address from the server's website, pasted it into \"Server Address\" and saved it, but it came up with \"Unknown Host\".  \n        Don't panic, it's obvious that the DNS didn't find the corresponding address, so I pinged it first.  \n        Ping can find the corresponding address of the domain name, and then I suspect that the Great Fire Wall and what to do, with the ChinaZ's tools measured, all the results and my are the same ah.  \n        This is rather strange.  \n        Then after tossing around for a while, I found the problem.  \n        <strong>There was a space at the end of the server address I copied to.<\/strong>\n        This is somewhat outrageous, so after a while of tossing it around to make sure I could reproduce the problem consistently, I went to the vulnerability tracker and filed a bug.  \n        And guess what?  \n        <img decoding=\"async\" src=\"https:\/\/github.com\/TheWhiteDog9487\/ServerAddressSpaceFix\/blob\/%E4%B8%BB%E8%A6%81\/%E5%9B%BE%E7%89%87\/Snipaste_2023-10-18_15-22-39.png?raw=true\" alt=\"IssuesRaisedOnTheVulnerabilityTracker\" srcset=\"\">\n        <img decoding=\"async\" src=\"https:\/\/github.com\/TheWhiteDog9487\/ServerAddressSpaceFix\/blob\/%E4%B8%BB%E8%A6%81\/%E5%9B%BE%E7%89%87\/Snipaste_2023-10-18_15-22-47.png?raw=true\" alt=\"CommentBelow\" srcset=\"\">\n        <img decoding=\"async\" src=\"https:\/\/github.com\/TheWhiteDog9487\/ServerAddressSpaceFix\/blob\/%E4%B8%BB%E8%A6%81\/%E5%9B%BE%E7%89%87\/Snipaste_2023-10-18_15-22-57.png?raw=true\" alt=\"AnRarlierProblemReport\" srcset=\"\">\n        I'm not able to speak English at all, so I didn't continue, the problem description is written in translation.  \n        But yeah, I feel in my heart that this is more or less outrageous.  \n        Since your address is a String class, is it hard to call the trim method later?  \n        Also, I, as a player, can't take it when you tell me, \"It's all your own carelessness, this can't even be considered a bug\".  \n        <strong>So, there's this mod.<\/strong>\n    <\/pre>\n<\/details>\n<p># Known Issues<br \/>\nAll known issues have been fixed, feel free to let me know if there are any new ones.<br \/>\nIf anyone wants to help me fix the bugs, feel free to submit a PR \u2570(\u00b0\u25bd\u00b0)\u256f<\/p>\n<p># Open source licence<br \/>\nI&#8217;m using WTFPL which is more radical than MIT.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Fix the &#8220;unknown host&#8221; bug when adding a server or connecting directly to a server with a space at the end of the server address<\/p>\n","protected":false},"featured_media":0,"template":"","meta":{"_minecraft_slug":"serveraddressspacefix","_minecraft_project_id":"NJGSUuLp","_minecraft_author":"TheWhiteDog9487","_minecraft_license":"WTFPL","_minecraft_downloads":122422,"_minecraft_follows":24,"_minecraft_client_side":"required","_minecraft_server_side":"unsupported","_minecraft_storage_type":"zip","_minecraft_archive_name":"serveraddressspacefix.zip","_minecraft_size_bytes":80984,"_minecraft_version_count":10,"_minecraft_updated_at":"2026-05-16T23:16:45.308237Z","_minecraft_date_created":"2023-10-23T17:09:22.947850Z","_minecraft_date_modified":"2026-03-26T01:20:55.318129Z","_minecraft_project_url":"https:\/\/modrinth.com\/mod\/serveraddressspacefix","_minecraft_icon_attachment_id":0,"_minecraft_imported_at":"2026-06-08T03:06:51+00:00","_minecraft_import_hash":"633d99b2e427944c3b879a78a373e10b","_minecraft_versions":"","_minecraft_links":"","_minecraft_gallery":"","_minecraft_api_metadata":""},"mod_category":[97,90],"mod_loader":[99],"minecraft_version":[59,36,60,93,94,101,102,62,37,40,41,73,74,38,78,79,80,81,82,83,167,163],"class_list":["post-137516","mod","type-mod","status-publish","hentry","mod_category-fabric","mod_category-optimization","mod_loader-fabric","minecraft_version-1-20","minecraft_version-1-20-1","minecraft_version-1-20-2","minecraft_version-1-20-3","minecraft_version-1-20-4","minecraft_version-1-20-5","minecraft_version-1-20-6","minecraft_version-1-21","minecraft_version-1-21-1","minecraft_version-1-21-10","minecraft_version-1-21-11","minecraft_version-1-21-2","minecraft_version-1-21-3","minecraft_version-1-21-4","minecraft_version-1-21-5","minecraft_version-1-21-6","minecraft_version-1-21-7","minecraft_version-1-21-8","minecraft_version-1-21-9","minecraft_version-26-1","minecraft_version-26-1-1","minecraft_version-26-1-2"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>ServerAddressSpaceFix - Minecraft<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/vpesports.com\/minecraft\/mods\/serveraddressspacefix\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"ServerAddressSpaceFix - Minecraft\" \/>\n<meta property=\"og:description\" content=\"Fix the &quot;unknown host&quot; bug when adding a server or connecting directly to a server with a space at the end of the server address\" \/>\n<meta property=\"og:url\" content=\"https:\/\/vpesports.com\/minecraft\/mods\/serveraddressspacefix\/\" \/>\n<meta property=\"og:site_name\" content=\"Minecraft\" \/>\n<meta property=\"og:image\" content=\"https:\/\/github.com\/TheWhiteDog9487\/ServerAddressSpaceFix\/blob\/%E4%B8%BB%E8%A6%81\/%E5%9B%BE%E7%89%87\/Snipaste_2023-10-18_15-22-39.png?raw=true\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/serveraddressspacefix\\\/\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/serveraddressspacefix\\\/\",\"name\":\"ServerAddressSpaceFix - Minecraft\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/serveraddressspacefix\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/serveraddressspacefix\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/github.com\\\/TheWhiteDog9487\\\/ServerAddressSpaceFix\\\/blob\\\/%E4%B8%BB%E8%A6%81\\\/%E5%9B%BE%E7%89%87\\\/Snipaste_2023-10-18_15-22-39.png?raw=true\",\"datePublished\":\"2026-06-08T03:06:50+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/serveraddressspacefix\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/serveraddressspacefix\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/serveraddressspacefix\\\/#primaryimage\",\"url\":\"https:\\\/\\\/github.com\\\/TheWhiteDog9487\\\/ServerAddressSpaceFix\\\/blob\\\/%E4%B8%BB%E8%A6%81\\\/%E5%9B%BE%E7%89%87\\\/Snipaste_2023-10-18_15-22-39.png?raw=true\",\"contentUrl\":\"https:\\\/\\\/github.com\\\/TheWhiteDog9487\\\/ServerAddressSpaceFix\\\/blob\\\/%E4%B8%BB%E8%A6%81\\\/%E5%9B%BE%E7%89%87\\\/Snipaste_2023-10-18_15-22-39.png?raw=true\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/serveraddressspacefix\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Mods\",\"item\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"ServerAddressSpaceFix\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/#website\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/\",\"name\":\"Minecraft\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"ServerAddressSpaceFix - Minecraft","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/vpesports.com\/minecraft\/mods\/serveraddressspacefix\/","og_locale":"en_US","og_type":"article","og_title":"ServerAddressSpaceFix - Minecraft","og_description":"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","og_url":"https:\/\/vpesports.com\/minecraft\/mods\/serveraddressspacefix\/","og_site_name":"Minecraft","og_image":[{"url":"https:\/\/github.com\/TheWhiteDog9487\/ServerAddressSpaceFix\/blob\/%E4%B8%BB%E8%A6%81\/%E5%9B%BE%E7%89%87\/Snipaste_2023-10-18_15-22-39.png?raw=true","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/vpesports.com\/minecraft\/mods\/serveraddressspacefix\/","url":"https:\/\/vpesports.com\/minecraft\/mods\/serveraddressspacefix\/","name":"ServerAddressSpaceFix - Minecraft","isPartOf":{"@id":"https:\/\/vpesports.com\/minecraft\/#website"},"primaryImageOfPage":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/serveraddressspacefix\/#primaryimage"},"image":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/serveraddressspacefix\/#primaryimage"},"thumbnailUrl":"https:\/\/github.com\/TheWhiteDog9487\/ServerAddressSpaceFix\/blob\/%E4%B8%BB%E8%A6%81\/%E5%9B%BE%E7%89%87\/Snipaste_2023-10-18_15-22-39.png?raw=true","datePublished":"2026-06-08T03:06:50+00:00","breadcrumb":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/serveraddressspacefix\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/vpesports.com\/minecraft\/mods\/serveraddressspacefix\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/vpesports.com\/minecraft\/mods\/serveraddressspacefix\/#primaryimage","url":"https:\/\/github.com\/TheWhiteDog9487\/ServerAddressSpaceFix\/blob\/%E4%B8%BB%E8%A6%81\/%E5%9B%BE%E7%89%87\/Snipaste_2023-10-18_15-22-39.png?raw=true","contentUrl":"https:\/\/github.com\/TheWhiteDog9487\/ServerAddressSpaceFix\/blob\/%E4%B8%BB%E8%A6%81\/%E5%9B%BE%E7%89%87\/Snipaste_2023-10-18_15-22-39.png?raw=true"},{"@type":"BreadcrumbList","@id":"https:\/\/vpesports.com\/minecraft\/mods\/serveraddressspacefix\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/vpesports.com\/minecraft\/"},{"@type":"ListItem","position":2,"name":"Mods","item":"https:\/\/vpesports.com\/minecraft\/mods\/"},{"@type":"ListItem","position":3,"name":"ServerAddressSpaceFix"}]},{"@type":"WebSite","@id":"https:\/\/vpesports.com\/minecraft\/#website","url":"https:\/\/vpesports.com\/minecraft\/","name":"Minecraft","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/vpesports.com\/minecraft\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod\/137516","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod"}],"about":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/types\/mod"}],"wp:attachment":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/media?parent=137516"}],"wp:term":[{"taxonomy":"mod_category","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_category?post=137516"},{"taxonomy":"mod_loader","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_loader?post=137516"},{"taxonomy":"minecraft_version","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/minecraft_version?post=137516"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}