{"id":128655,"date":"2019-02-25T19:24:17","date_gmt":"2019-02-25T19:24:17","guid":{"rendered":"http:\/\/sftarticles.wpenginepowered.com\/en\/?p=128655"},"modified":"2025-07-01T22:18:40","modified_gmt":"2025-07-02T05:18:40","slug":"create-connect-local-minecraft-server","status":"publish","type":"post","link":"https:\/\/cms-articles.softonic.io\/en\/create-connect-local-minecraft-server\/","title":{"rendered":"How to create and connect to a local Minecraft server"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-131039\" src=\"https:\/\/articles-img.sftcdn.net\/sft\/articles\/auto-mapping-folder\/sites\/3\/2021\/06\/minecraft_700.jpg\" alt=\"minecraft\" width=\"700\" height=\"465\"><\/p>\n<p><span style=\"font-weight: 400\">Considering how popular Minecraft is, one can expect it to have some of the best co-op features of any mainstream game. And while it does definitely hold up in this department, it can be a bit tricky&nbsp;getting your own private server up and running. <strong>Realms<\/strong> are Minecraft\u2019s easy solution to co-op play, where you can pay to have Minecraft take care of hosting and creating your server for you. However, some players prefer to have a <strong>free local server<\/strong> that they host themselves. Here is how to make that server and how to have your friends connect to it once it\u2019s up:<\/span><\/p>\n<h2>How to create and connect to a local Minecraft server<\/h2>\n<p><span style=\"font-weight: 400\"><strong>Step 1<\/strong>: Make sure you have the <a href=\"https:\/\/www.java.com\/en\/\" target=\"_blank\" rel=\"noopener noreferrer\">newest version of Java<\/a> installed.<\/span><\/p>\n<p><span style=\"font-weight: 400\"><strong>Step 2<\/strong>: Download the <a href=\"https:\/\/minecraft.net\/en-us\/download\/server\/\" target=\"_blank\" rel=\"noopener noreferrer\">Mojang Minecraft server software<\/a> (you\u2019ll need to keep track of whatever folder you download this to, as there will be multiple programs from the software you\u2019ll need to access. You should create your own folder to keep all of these in).<\/span><\/p>\n<p><span style=\"font-weight: 400\"><strong>Step 3:<\/strong> Run the .jar file from the software you downloaded <\/span><\/p>\n<p><span style=\"font-weight: 400\">From here the instructions branch off depending on whether you have a PC or a Mac.<\/span><\/p>\n<p><strong>For PC:<\/strong><\/p>\n<p><span style=\"font-weight: 400\"><strong>Step 4:<\/strong> There will be a text document created called \u201ceula.txt\u201d. Open this in a text editor like Notepad, and change \u201c<strong>eula=false<\/strong>\u201d to \u201c<strong>eula=true<\/strong>\u201d.<\/span><\/p>\n<p><span style=\"font-weight: 400\">This is you accepting the terms and conditions of Minecraft.<\/span><\/p>\n<p><span style=\"font-weight: 400\"><strong>Step 5:<\/strong> Go to your computer\u2019s command prompt and type the following <\/span><\/p>\n<p><strong>java -Xmx1024M -Xms1024M -jar {server file name}<\/strong><\/p>\n<p><span style=\"font-weight: 400\">Replace server file name, with the name of your server\u2019s file (this can be found by copying the file location of the .jar program). If you want to disable the graphical user interface (GUI), you can add \u201cnogui\u201d to the end of this command line. Players have reported this lowers CPU and memory usage.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-130343 aligncenter\" src=\"https:\/\/articles-img.sftcdn.net\/sft\/articles\/auto-mapping-folder\/sites\/3\/2021\/06\/minecraft_server_pc_pkvuck.jpg\" alt=\"Minecraft\" width=\"639\" height=\"416\"><\/p>\n<p><span style=\"font-weight: 400\"><strong>Step 6:<\/strong> While this is optional, you may want to create a .bat file with the same command used above, in order to quickly access the server, instead of needing to open the command prompt each time. For the .bat file you can use the command:<\/span><\/p>\n<p><strong>@Echo Off<\/strong><\/p>\n<p><strong>java -Xmx1024M -Xms1024M -jar {server file name}<\/strong><\/p>\n<p><span style=\"font-weight: 400\">If you\u2019ve completed step 5, then your server should be fully functional. Other players connected to your home network will be able to connect directly to the server. <\/span><\/p>\n<div class=\"sc-card-program\">\r\n  <div class=\"sc-card-program__body\">\r\n    <div class=\"sc-card-program__row clearfix\">\r\n      <div class=\"sc-card-program__col-logo\">\r\n        <img decoding=\"async\" class=\"sc-card-program__img\" alt=\"Notepad++\" src=\"https:\/\/images.sftcdn.net\/images\/t_app-logo-l,f_auto,dpr_auto\/p\/311d9b92-96d2-11e6-b5e8-00163ed833e7\/4028213639\/notepad-plus-logo.png\" width=\"100px\" height=\"100px\">\r\n      <\/div>\r\n      <div class=\"sc-card-program__col-title\">\r\n        <span class=\"sc-card-program__title\">Notepad++<\/span>\r\n        <a class=\"sc-card-program__button sc-card-program-internal\" href=\"https:\/\/notepad-plus.en.softonic.com\/\" target=\"_self\" rel=\"noopener noreferrer\">Free Download<\/a>\r\n      <\/div>\r\n      <div class=\"sc-card-program__col-rating\">\r\n        <svg class=\"rating-score__content\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" version=\"1.1\" x=\"0\" y=\"0\" viewbox=\"0 0 50 50\" enable-background=\"new 0 0 50 50\" xml:space=\"preserve\"><path class=\"rating-score__background rating-score--good\" fill=\"none\" stroke-width=\"6\" stroke-miterlimit=\"10\" d=\"M40 40c8.3-8.3 8.3-21.7 0-30s-21.7-8.3-30 0 -8.3 21.7 0 30\"><\/path><path class=\"rating-score__value rating-score__value--80\" fill=\"none\" stroke-width=\"6\" stroke-dashoffset=\"80\" stroke-miterlimit=\"10\" d=\"M40 40c8.3-8.3 8.3-21.7 0-30s-21.7-8.3-30 0 -8.3 21.7 0 30\"><\/path><text class=\"rating-score__number\" content=\"8\" text-anchor=\"middle\" transform=\"matrix(1 0 0 1 25 31.0837)\" data-auto=\"app-user-score\">8<\/text><\/svg>\r\n      <\/div>\r\n    <\/div>\r\n    <div class=\"sc-card-program__row\">\r\n      <span class=\"sc-card-program__description\"><\/span>\r\n    <\/div>\r\n    <div class=\"sc-card-program__row\">\r\n      <img decoding=\"async\" class=\"sc-card-program__bigpic\" src=\"\" onerror=\"this.style.display='none'\">\r\n    <\/div>\r\n    <a class=\"sc-card-program__link track-link sc-card-program-internal\" href=\"https:\/\/notepad-plus.en.softonic.com\/\" target=\"_self\" rel=\"noopener noreferrer\"><\/a>\r\n  <\/div>\r\n<\/div>\n<p><strong>For Macs:<\/strong><\/p>\n<p><span style=\"font-weight: 400\"><strong>Step 4:<\/strong> Open a text editing program like TextEdit and input the following: <\/span><\/p>\n<p><strong>#!\/bin\/bash<br \/>\ncd &#8220;$(dirname &#8220;$0&#8243;)&#8221;<br \/>\nexec java -Xms1G -Xmx1G -jar {server name}<\/strong><\/p>\n<p><span style=\"font-weight: 400\">Server name should be replaced with the file location of the .jar file. You can choose to add nogui at the end if you\u2019d like to remove the graphical user interface (GUI). Players have reported doing this used less memory and CPU.<\/span><\/p>\n<p><span style=\"font-weight: 400\"><strong>Step 5:<\/strong> Save this document as \u201cstart.command\u201d in the same folder as the .jar file.<\/span><\/p>\n<p><span style=\"font-weight: 400\"><strong>Step 6:<\/strong> Open the Terminal program, and type:<\/span><\/p>\n<p><strong>chmod a+x&nbsp;<\/strong><\/p>\n<p><span style=\"font-weight: 400\">And make sure there is a space after the x. Then drag the start.command file into the Terminal window. This will give executive permissions to the start.command program. Once done, you can simply<strong> click start.command to open your Minecraft server.<\/strong><\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-130344 aligncenter\" src=\"https:\/\/articles-img.sftcdn.net\/sft\/articles\/auto-mapping-folder\/sites\/3\/2019\/02\/minecraft-server-mac.jpg\" alt=\"Minecraft\" width=\"674\" height=\"522\" srcset=\"https:\/\/articles-img.sftcdn.net\/auto-mapping-folder\/sites\/3\/2019\/02\/minecraft-server-mac.jpg 674w, https:\/\/articles-img.sftcdn.net\/auto-mapping-folder\/sites\/3\/2019\/02\/minecraft-server-mac-300x232.jpg 300w\" sizes=\"auto, (max-width: 674px) 100vw, 674px\" \/><\/p>\n<p><span style=\"font-weight: 400\">Hosting a Minecraft server can take a bit of a toll on your computer. We recommend you avoid trying this on a laptop, unless it\u2019s a high-end gaming laptop, and even then you may prefer hosting on a desktop instead. <\/span><\/p>\n<p><span style=\"font-weight: 400\">These instructions work for hosting a Minecraft server on your local network with other devices connected to that network. If you wish to host a server online, you\u2019ll have to <a href=\"https:\/\/portforward.com\/minecraft\/\" target=\"_blank\" rel=\"noopener noreferrer\">PortForward your router.<\/a>&nbsp;It will take a bit of programming knowledge and your router information to PortForward your Minecraft server. <\/span><\/p>\n<div class=\"sc-card-program\">\r\n  <div class=\"sc-card-program__body\">\r\n    <div class=\"sc-card-program__row clearfix\">\r\n      <div class=\"sc-card-program__col-logo\">\r\n        <img decoding=\"async\" class=\"sc-card-program__img\" alt=\"Simple Port Forwarding\" src=\"https:\/\/images.sftcdn.net\/images\/t_app-logo-l,f_auto,dpr_auto\/p\/6a8c41e6-96d5-11e6-937c-00163ec9f5fa\/1492451338\/simple-port-forwarding-logo.png\" width=\"100px\" height=\"100px\">\r\n      <\/div>\r\n      <div class=\"sc-card-program__col-title\">\r\n        <span class=\"sc-card-program__title\">Simple Port Forwarding<\/span>\r\n        <a class=\"sc-card-program__button sc-card-program-internal\" href=\"https:\/\/simple-port-forwarding.en.softonic.com\/\" target=\"_self\" rel=\"noopener noreferrer\">Free Download<\/a>\r\n      <\/div>\r\n      <div class=\"sc-card-program__col-rating\">\r\n        <svg class=\"rating-score__content\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" version=\"1.1\" x=\"0\" y=\"0\" viewbox=\"0 0 50 50\" enable-background=\"new 0 0 50 50\" xml:space=\"preserve\"><path class=\"rating-score__background rating-score--good\" fill=\"none\" stroke-width=\"6\" stroke-miterlimit=\"10\" d=\"M40 40c8.3-8.3 8.3-21.7 0-30s-21.7-8.3-30 0 -8.3 21.7 0 30\"><\/path><path class=\"rating-score__value rating-score__value--60\" fill=\"none\" stroke-width=\"6\" stroke-dashoffset=\"60\" stroke-miterlimit=\"10\" d=\"M40 40c8.3-8.3 8.3-21.7 0-30s-21.7-8.3-30 0 -8.3 21.7 0 30\"><\/path><text class=\"rating-score__number\" content=\"6\" text-anchor=\"middle\" transform=\"matrix(1 0 0 1 25 31.0837)\" data-auto=\"app-user-score\">6<\/text><\/svg>\r\n      <\/div>\r\n    <\/div>\r\n    <div class=\"sc-card-program__row\">\r\n      <span class=\"sc-card-program__description\"><\/span>\r\n    <\/div>\r\n    <div class=\"sc-card-program__row\">\r\n      <img decoding=\"async\" class=\"sc-card-program__bigpic\" src=\"\" onerror=\"this.style.display='none'\">\r\n    <\/div>\r\n    <a class=\"sc-card-program__link track-link sc-card-program-internal\" href=\"https:\/\/simple-port-forwarding.en.softonic.com\/\" target=\"_self\" rel=\"noopener noreferrer\"><\/a>\r\n  <\/div>\r\n<\/div>\n<p><span style=\"font-weight: 400\">Note: <strong>PortForwarding a server will also make your home network more vulnerable for strangers to access<\/strong>. If that\u2019s something you\u2019re worried about, you could pay a third-party hosting service to host your server instead, or you could create a Minecraft Realm. Realms are similar to local servers, but require a monthly payment and are hosted by Minecraft itself.<\/span><\/p>\n<div class=\"sc-related-articles-white\">\r\n<p class=\"sc-related-articles-white__title\">More on Minecraft<\/p>\r\n  <div class=\"sc-related-articles-white__row\">\r\n    <a title=\"How to start your very own Minecraft server \u25ba\" href=\"https:\/\/en.softonic.com\/articles\/how-to-start-your-very-own-minecraft-server\">\r\n    <div class=\"sc-related-articles-white__article\">\r\n      <div class=\"sc-related-articles-white__image\">\r\n        <div style=\"background-image:url(https:\/\/articles-img.sftcdn.net\/sft\/articles\/auto-mapping-folder\/sites\/3\/2016\/08\/minecraft-3395057-1024x575.jpg)\"><\/div>\r\n      <\/div>\r\n      <div class=\"sc-related-articles-white__text\">\r\n        <p>How to start your very own Minecraft server \u25ba<\/p>\r\n      <\/div>\r\n    <\/div>\r\n    <\/a>\r\n    <a title=\"8 cool things you didn\u2019t know you could do in Minecraft \u25ba\" href=\"https:\/\/en.softonic.com\/articles\/8-cool-things-you-probably-did-not-know-you-could-do-on-minecraft\">\r\n    <div class=\"sc-related-articles-white__article\">\r\n      <div class=\"sc-related-articles-white__image\">\r\n        <div style=\"background-image:url(https:\/\/articles-img.sftcdn.net\/sft\/articles\/auto-mapping-folder\/sites\/3\/2018\/03\/8things_minecraft_image6-1024x576.png)\"><\/div>\r\n      <\/div>\r\n      <div class=\"sc-related-articles-white__text\">\r\n        <p>8 cool things you didn\u2019t know you could do in Minecraft \u25ba<\/p>\r\n      <\/div>\r\n    <\/div>\r\n    <\/a>\r\n  <\/div>\r\n  <div class=\"sc-related-articles-white__row\">\r\n    <a title=\"Beginner\u2019s guide to Minecraft \u25ba\" href=\"https:\/\/en.softonic.com\/articles\/the-2018-beginners-guide-to-minecraft\">\r\n    <div class=\"sc-related-articles-white__article\">\r\n      <div class=\"sc-related-articles-white__image\">\r\n        <div style=\"background-image:url(https:\/\/articles-img.sftcdn.net\/sft\/articles\/auto-mapping-folder\/sites\/3\/2017\/09\/minecraft-192.jpg)\"><\/div>\r\n      <\/div>\r\n      <div class=\"sc-related-articles-white__text\">\r\n        <p>Beginner\u2019s guide to Minecraft \u25ba<\/p>\r\n      <\/div>\r\n    <\/div>\r\n    <\/a>\r\n    <a title=\"The easiest way to install Minecraft mods \u25ba\" href=\"https:\/\/en.softonic.com\/articles\/the-easiest-way-to-install-minecraft-mods\">\r\n    <div class=\"sc-related-articles-white__article\">\r\n      <div class=\"sc-related-articles-white__image\">\r\n        <div style=\"background-image:url(https:\/\/articles-img.sftcdn.net\/sft\/articles\/auto-mapping-folder\/sites\/3\/2016\/08\/Minecraft-videojuego-cualquier-construccion-tradicional_EDIIMA20150209_0589_4.jpg)\"><\/div>\r\n      <\/div>\r\n      <div class=\"sc-related-articles-white__text\">\r\n        <p>The easiest way to install Minecraft mods \u25ba<\/p>\r\n      <\/div>\r\n    <\/div>\r\n    <\/a>\r\n  <\/div>\r\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Looking to set up your own Minecraft server? Here&#8217;s how to do it.<\/p>\n","protected":false},"author":9154,"featured_media":181651,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","wpcf-pageviews":2},"categories":[2441,3150],"tags":[2328,1116],"usertag":[784,788,787],"vertical":[],"content-category":[],"class_list":["post-128655","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-how-to","category-uncategorized","tag-app-subdomain-redirectionminecraft","tag-minecraft","usertag-gamer","usertag-gamer-casual","usertag-gamer-desktop"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/cms-articles.softonic.io\/en\/wp-json\/wp\/v2\/posts\/128655","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cms-articles.softonic.io\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cms-articles.softonic.io\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cms-articles.softonic.io\/en\/wp-json\/wp\/v2\/users\/9154"}],"replies":[{"embeddable":true,"href":"https:\/\/cms-articles.softonic.io\/en\/wp-json\/wp\/v2\/comments?post=128655"}],"version-history":[{"count":1,"href":"https:\/\/cms-articles.softonic.io\/en\/wp-json\/wp\/v2\/posts\/128655\/revisions"}],"predecessor-version":[{"id":326516,"href":"https:\/\/cms-articles.softonic.io\/en\/wp-json\/wp\/v2\/posts\/128655\/revisions\/326516"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cms-articles.softonic.io\/en\/wp-json\/wp\/v2\/media\/181651"}],"wp:attachment":[{"href":"https:\/\/cms-articles.softonic.io\/en\/wp-json\/wp\/v2\/media?parent=128655"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cms-articles.softonic.io\/en\/wp-json\/wp\/v2\/categories?post=128655"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cms-articles.softonic.io\/en\/wp-json\/wp\/v2\/tags?post=128655"},{"taxonomy":"usertag","embeddable":true,"href":"https:\/\/cms-articles.softonic.io\/en\/wp-json\/wp\/v2\/usertag?post=128655"},{"taxonomy":"vertical","embeddable":true,"href":"https:\/\/cms-articles.softonic.io\/en\/wp-json\/wp\/v2\/vertical?post=128655"},{"taxonomy":"content-category","embeddable":true,"href":"https:\/\/cms-articles.softonic.io\/en\/wp-json\/wp\/v2\/content-category?post=128655"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}