{"id":52825,"date":"2026-06-03T01:09:19","date_gmt":"2026-06-02T22:09:19","guid":{"rendered":"https:\/\/vpesports.com\/minecraft\/mods\/custom-lan\/"},"modified":"2026-06-03T01:09:19","modified_gmt":"2026-06-02T22:09:19","slug":"custom-lan","status":"publish","type":"mod","link":"https:\/\/vpesports.com\/minecraft\/mods\/custom-lan\/","title":{"rendered":"Custom LAN"},"content":{"rendered":"<p>![Screenshot of Custom LAN](https:\/\/github.com\/DimiDimit\/Custom-LAN\/raw\/1.20.2\/docs\/open_to_lan_screen.png)<br \/>\nA **Fabric** mod that allows you to:<br \/>\n* Customize more of your integrated server (Online Mode, PvP, Max Players, MOTD)<br \/>\n* Use ampersands (`&#038;`) for formatting codes instead of section signs (`\u00a7`) and variables (e.g. `${username}`, `${world}`) in the MOTD<br \/>\n* Change the settings mid-game (including the port) and stop the server without quitting the world<br \/>\n* Save the settings globally or per-world (they are loaded automatically with per-world settings taking priority over the global ones, which take priority over the system defaults)<br \/>\n* Change who can use cheats individually using the `\/op` and `\/deop` commands and cheat in singleplayer without opening to LAN (replaces the Allow Cheats button)<br \/>\n* Manage bans with `\/ban`, `\/ban-ip`, `\/banlist`, `\/pardon` and `\/pardon-ip`, and whitelist players with `\/whitelist` (use `\/whitelist on`\/`off` to enable\/disable)<br \/>\n* Expose your server outside of your LAN without port forwarding using tunnels (currently only ngrok is supported)<\/p>\n<p>It also allows you to start the LAN world by pressing Enter, doesn&#8217;t force the gamemode (e.g. anyone who left in Creative mode will still be in Creative when they join even if the world is set to Survival), and extends the `\/publish` command, which can now change settings mid-game as well (use a port of `-1` to randomize it):<br \/>\n&#8220;`<br \/>\n\/publish [<port>] [<onlineMode>] [<pvpEnabled>] [<maxPlayers>] [<defaultGameMode>] [<tunnel>] [<motd>]<br \/>\n\/publish [perworld|global|system] [<port>] [<onlineMode>] [<pvpEnabled>] [<maxPlayers>] [<defaultGameMode>] [<tunnel>] [<motd>]<br \/>\n\/publish stop<br \/>\n&#8220;`<\/p>\n<p>It requires Fabric Loader and Cloth Config API, but Fabric API is not required.<\/p>\n<p>It has been backported to all Minecraft versions supported by Fabric (except the snapshots)!<br \/>\nI&#8217;m **not** planning on porting it to **Forge** myself *for now,* but you&#8217;re more than welcome to send me a pull request.<\/p>\n<p>## Explanation of MOTD formatting codes and variables<br \/>\nIn the MOTD, ampersands (`&#038;`) are replaced with section signs (`\u00a7`) to allow you to enter formatting codes (e.g. `&#038;9Hello, &#038;a&#038;lworld!` makes `Hello,` blue and `world!` green and bold).<br \/>\nYou can use two ampersands in a row (`&#038;&#038;`) to get an actual ampersand (`&#038;`).<\/p>\n<p>The following variables will be expanded using Apache Commons Text&#8217;s `StringSubstitutor`:<br \/>\n* `${username}` \u2013 the host&#8217;s username (e.g. \u201cDimiDimit\u201d)<br \/>\n* `${world}` \u2013 the world&#8217;s name (e.g. \u201cNew World\u201d)<\/p>\n<p>## Explanation of saved settings<br \/>\nThe settings can be saved per-world or globally. When the Open to LAN screen is opened, the settings are loaded automatically in that order, and they can also be loaded manually using the Load buttons.<\/p>\n<p>Using the `\/publish` command without specifying which saved settings to use (`perworld`, `global` or `system`) uses the same order if the world hasn&#8217;t been opened to LAN, or the current values instead of any saved settings if it has.<br \/>\nSpecifying the saved settings uses those particular settings or the system defaults if they haven&#8217;t been saved, without checking any others, even if the world has been opened to LAN (e.g. if `perworld` is specified and no per-world settings are saved, the system defaults will be used even if there are saved global settings).<br \/>\nThe settings specified as arguments will override the saved settings or current values (e.g. `\/publish perworld 12345 false` will use the per-world settings, except that the port will be `12345` and online mode will be disabled).<\/p>\n<p>The global settings are stored in `.minecraft\/config\/customlan.toml`, while the per-world ones are stored in `data\/customlan.dat` in the respective world&#8217;s directory.<\/p>\n<p>## Explanation of `\/op` and `\/deop`<br \/>\n`\/op` and `\/deop` work like in dedicated servers.<br \/>\nYou can also use them on yourself, the host. Doing this will add\/remove the \u201cCheats\u201d label on the world (as if you&#8217;ve NBT edited the `allowCommands` field), and you can use these commands without opening to LAN as well, replacing the Vanilla method of opening to LAN, cheating, quitting the world and entering it again.<\/p>\n<p>Operators are persisted per-world in an `ops.json` file inside that world&#8217;s directory. To allow operators to assign and remove other operators, as well as ban and whitelist players, change their `level` in the `ops.json` file to `3` or higher (the default is `2`, while level `4` allows them to use `\/publish`). You, as the host, can always assign and remove operators, even if you&#8217;re not an operator yourself.<\/p>\n<p>## Explanation of bans and whitelists<br \/>\nThese commands also work like in dedicated servers, though you cannot ban or whitelist the host.<br \/>\nEnabling the whitelist does **not** kick all non-whitelisted players (i.e. `enforce-whitelist` is always `false`).<\/p>\n<p>The files used are also per-world and the same as on dedicated servers\u2014`banned-players.json`, `banned-ips.json`, `whitelist.json`\u2014though whether the whitelist is enabled is stored in `data\/customlan.dat`.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Gives you more control over your integrated server through the Open to LAN menu.<\/p>\n","protected":false},"featured_media":52826,"template":"","meta":{"_minecraft_slug":"custom-lan","_minecraft_project_id":"OCvCFPNR","_minecraft_author":"DimiDimit","_minecraft_license":"MIT","_minecraft_downloads":271557,"_minecraft_follows":157,"_minecraft_client_side":"required","_minecraft_server_side":"required","_minecraft_storage_type":"zip","_minecraft_archive_name":"custom-lan.zip","_minecraft_size_bytes":49621014,"_minecraft_version_count":62,"_minecraft_updated_at":"2026-05-16T19:25:55.354400Z","_minecraft_date_created":"2021-07-24T10:02:11.093883Z","_minecraft_date_modified":"2025-07-26T01:40:47.158752Z","_minecraft_project_url":"https:\/\/modrinth.com\/mod\/custom-lan","_minecraft_icon_attachment_id":52826,"_minecraft_imported_at":"2026-06-02T22:09:20+00:00","_minecraft_import_hash":"12c3fbcaa952665f84afd3439bd21d58","_minecraft_versions":"","_minecraft_links":"","_minecraft_gallery":"","_minecraft_api_metadata":""},"mod_category":[97,98,92],"mod_loader":[99,100],"minecraft_version":[110,111,112,113,114,115,116,117,118,119,120,46,47,48,49,50,51,52,53,54,55,56,57,58,59,36,60,93,94,101,102,62,37,73,74,38,78,79,80,81],"class_list":["post-52825","mod","type-mod","status-publish","has-post-thumbnail","hentry","mod_category-fabric","mod_category-quilt","mod_category-utility","mod_loader-fabric","mod_loader-quilt","minecraft_version-1-14","minecraft_version-1-14-1","minecraft_version-1-14-2","minecraft_version-1-14-3","minecraft_version-1-14-4","minecraft_version-1-15","minecraft_version-1-15-1","minecraft_version-1-15-2","minecraft_version-1-16","minecraft_version-1-16-1","minecraft_version-1-16-2","minecraft_version-1-16-3","minecraft_version-1-16-4","minecraft_version-1-16-5","minecraft_version-1-17","minecraft_version-1-17-1","minecraft_version-1-18","minecraft_version-1-18-1","minecraft_version-1-18-2","minecraft_version-1-19","minecraft_version-1-19-1","minecraft_version-1-19-2","minecraft_version-1-19-3","minecraft_version-1-19-4","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-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"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Custom LAN - 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\/custom-lan\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Custom LAN - Minecraft\" \/>\n<meta property=\"og:description\" content=\"Gives you more control over your integrated server through the Open to LAN menu.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/vpesports.com\/minecraft\/mods\/custom-lan\/\" \/>\n<meta property=\"og:site_name\" content=\"Minecraft\" \/>\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=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/custom-lan\\\/\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/custom-lan\\\/\",\"name\":\"Custom LAN - Minecraft\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/custom-lan\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/custom-lan\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/custom-lan-icon-7128828e20839f8a17b8d8455c4fffc94eadc951_96.webp\",\"datePublished\":\"2026-06-02T22:09:19+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/custom-lan\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/custom-lan\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/custom-lan\\\/#primaryimage\",\"url\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/custom-lan-icon-7128828e20839f8a17b8d8455c4fffc94eadc951_96.webp\",\"contentUrl\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/wp-content\\\/uploads\\\/2026\\\/06\\\/custom-lan-icon-7128828e20839f8a17b8d8455c4fffc94eadc951_96.webp\",\"width\":96,\"height\":96},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/vpesports.com\\\/minecraft\\\/mods\\\/custom-lan\\\/#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\":\"Custom LAN\"}]},{\"@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":"Custom LAN - 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\/custom-lan\/","og_locale":"en_US","og_type":"article","og_title":"Custom LAN - Minecraft","og_description":"Gives you more control over your integrated server through the Open to LAN menu.","og_url":"https:\/\/vpesports.com\/minecraft\/mods\/custom-lan\/","og_site_name":"Minecraft","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/vpesports.com\/minecraft\/mods\/custom-lan\/","url":"https:\/\/vpesports.com\/minecraft\/mods\/custom-lan\/","name":"Custom LAN - Minecraft","isPartOf":{"@id":"https:\/\/vpesports.com\/minecraft\/#website"},"primaryImageOfPage":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/custom-lan\/#primaryimage"},"image":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/custom-lan\/#primaryimage"},"thumbnailUrl":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/custom-lan-icon-7128828e20839f8a17b8d8455c4fffc94eadc951_96.webp","datePublished":"2026-06-02T22:09:19+00:00","breadcrumb":{"@id":"https:\/\/vpesports.com\/minecraft\/mods\/custom-lan\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/vpesports.com\/minecraft\/mods\/custom-lan\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/vpesports.com\/minecraft\/mods\/custom-lan\/#primaryimage","url":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/custom-lan-icon-7128828e20839f8a17b8d8455c4fffc94eadc951_96.webp","contentUrl":"https:\/\/vpesports.com\/minecraft\/wp-content\/uploads\/2026\/06\/custom-lan-icon-7128828e20839f8a17b8d8455c4fffc94eadc951_96.webp","width":96,"height":96},{"@type":"BreadcrumbList","@id":"https:\/\/vpesports.com\/minecraft\/mods\/custom-lan\/#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":"Custom LAN"}]},{"@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\/52825","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:featuredmedia":[{"embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/media\/52826"}],"wp:attachment":[{"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/media?parent=52825"}],"wp:term":[{"taxonomy":"mod_category","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_category?post=52825"},{"taxonomy":"mod_loader","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/mod_loader?post=52825"},{"taxonomy":"minecraft_version","embeddable":true,"href":"https:\/\/vpesports.com\/minecraft\/wp-json\/wp\/v2\/minecraft_version?post=52825"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}