{"id":4136,"date":"2022-01-27T14:43:12","date_gmt":"2022-01-27T14:43:12","guid":{"rendered":"https:\/\/www.hostinger.com\/tutorials\/?p=4136"},"modified":"2026-03-09T19:18:47","modified_gmt":"2026-03-09T19:18:47","slug":"how-to-setup-minecraft-server","status":"publish","type":"post","link":"\/ng\/tutorials\/how-to-setup-minecraft-server","title":{"rendered":"How to make a Minecraft server: setting up a server on Linux, Windows, and macOS"},"content":{"rendered":"<?xml encoding=\"utf-8\" ?><p>Running a private Minecraft server lets you create a custom world and play with your friends online. What&rsquo;s better than that? Although setting up a Minecraft server may seem daunting at first, it only takes minutes with the right tools.<\/p><p>Using a virtual private server (VPS) is the easiest way to set up a Minecraft server. This article will cover how to make a Minecraft server with Hostinger, specifically focusing on <strong>Minecraft: Java Edition<\/strong>.<\/p><p>Additionally, it will cover how to create a local Minecraft server on different operating systems and avoid common errors during the initial setup process.<\/p><h2 class=\"wp-block-heading\" id=\"h-video-tutorial-on-how-to-make-a-minecraft-server\">Video tutorial on how to make a Minecraft server<\/h2><p>Watch this video to learn how to create your own Minecraft server.<\/p><figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"How to Start a Minecraft Server in 2025\" width=\"640\" height=\"360\" src=\"https:\/\/www.youtube.com\/embed\/4uzpHQsufR8?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure><p>\n  <div class=\"youtube-shortcode\">\n    <div class=\"row\">\n      <div class=\"col-7 col-sm-8 d-flex align-items-center\">\n        <img decoding=\"async\" class=\"channel-logo\" src=\"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-content\/themes\/tutorialsthemeuplift\/public\/images\/youtube-channels\/hostinger-academy.jpg\" alt=\"youtube channel logo\">\n        <div class=\"d-flex flex-column justify-content-between\">\n          <span class=\"slogan d-none d-sm-block\">Subscribe For more educational videos!<\/span>\n          <span class=\"channel-name\">Hostinger Academy<\/span>\n                    <\/div>\n      <\/div>\n      <div class=\"col-5 col-sm-4 d-flex align-items-center justify-content-end\">\n          <a class=\"subscribe-button\" target=\"_blank\" rel=\"nofollow noopener noreferrer\" href=\"http:\/\/www.youtube.com\/channel\/UCbNIC-svDbtUOH2qsLnPQPg?sub_confirmation=1\">\n            <img decoding=\"async\" src=\"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-content\/themes\/tutorialsthemeuplift\/public\/images\/icons\/youtube.svg\" alt=\"subscribe\">\n            <span>Subscribe<\/span>\n          <\/a>\n      <\/div>\n    <\/div>\n  <\/div>\n\n    \n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-how-to-make-a-minecraft-server-on-hostinger-vps\">How to make a Minecraft server on Hostinger VPS<\/h2><p>In this section, we will show you how to make a Minecraft server on Hostinger&rsquo;s <a href=\"\/ng\/tutorials\/what-is-vps-hosting\">virtual private server<\/a> (VPS) using <strong>Game Panel<\/strong>. We recommend this method for beginners since it requires no commands.<\/p><h3 class=\"wp-block-heading\">1. Choose a Minecraft hosting plan<\/h3><p>Purchasing <a href=\"\/ng\/vps\/minecraft-hosting\">Minecraft server hosting<\/a> will save you money and time. The hosting provider will set up your server, manage its back end, and ensure optimal uptime, allowing you to focus on the in-game configuration.<\/p><p>When choosing a hosting provider, make sure it offers various features and suits your budget. Hostinger offers four Minecraft server hosting plans with these features starting at <strong>\u20a610900.00\/month<\/strong>:<\/p><ul class=\"wp-block-list\">\n<li><strong>Abundant server resources<\/strong>. Get up to <strong>32 GB of RAM<\/strong> and <strong>8 vCPU<\/strong>, enough to <a href=\"https:\/\/minecraft.fandom.com\/wiki\/Server\/Requirements\/Dedicated\">support over 20 players<\/a>.<\/li>\n\n\n\n<li><strong>Robust security features<\/strong>. Protect your Minecraft server from cyber attacks with robust security tools, like built-in Distributed denial of service (DDoS) protection and the Monarx automatic malware scanner.<\/li>\n\n\n\n<li><strong>Free weekly backups<\/strong>. Enjoy automatic Minecraft server backups to ensure data safety in case of cyber attacks or accidents.<\/li>\n\n\n\n<li><strong>Custom Game Panel<\/strong>. Use various tools and a graphical user interface (GUI) to help simplify Minecraft server management tasks, including installing mods.<\/li>\n\n\n\n<li><strong>Global data center<\/strong>. Choose from <a href=\"https:\/\/support.hostinger.com\/en\/articles\/1583267-where-are-hostinger-servers-located\">multiple server locations<\/a> across the globe. A server close to your location ensures minimal latency and responsive gameplay.<\/li>\n\n\n\n<li><strong>Kodee AI assistant<\/strong>. Ask for commands, code, or instructions for Minecraft server administration using simple prompts.<\/li>\n<\/ul><?xml encoding=\"utf-8\" ?><figure class=\"wp-block-image size-large\"><a class=\"hgr-tutorials-cta hgr-tutorials-cta-vps-hosting\" href=\"\/ng\/vps-hosting\" target=\"_blank\" rel=\"noreferrer noopener\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"300\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/02\/VPS-hosting-banner.png\/public\" alt=\"\" class=\"wp-image-77934\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/02\/VPS-hosting-banner.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/02\/VPS-hosting-banner.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/02\/VPS-hosting-banner.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2023\/02\/VPS-hosting-banner.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure><h3 class=\"wp-block-heading\">2. Set up your Minecraft hosting<\/h3><p>After purchasing a plan from Hostinger, set up your virtual private server by going to <strong>hPanel<\/strong> &rarr; <strong>VPS <\/strong>and selecting your new Minecraft server hosting plan.<\/p><p>Enter information including your server name, Game Panel password, and preferred server location. We recommend choosing the server location closest to your player base.<\/p><p>Then, access your server via the VPS <strong>Overview<\/strong> page. You can view information like server resource usage, operating system, panel access, IP address, and <a href=\"\/ng\/tutorials\/ssh-tutorial-how-does-ssh-work\">SSH<\/a> login credentials.<\/p><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"69e1f4dfaf888\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-large wp-lightbox-container\"><img decoding=\"async\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/hpanel-vps-overview-1024x835.png\" alt=\"The Overview page in hPanel's VPS\"><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><h3 class=\"wp-block-heading\">3. Configure your Minecraft Game Panel<\/h3><p>To configure the Minecraft server in Game Panel, open the same <strong>Overview <\/strong>page. Click the <strong>Manage panel<\/strong> button and enter your login credentials.<\/p><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"69e1f4dfafbd7\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-large wp-lightbox-container\"><img decoding=\"async\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/hpanel-vps-overview-manage-panel-highlighted-1024x235.png\" alt=\"The Manage panel button in hPanel's VPS Overview page\"><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><p>On the main menu, follow these steps:<\/p><ol class=\"wp-block-list\">\n<li>Click <strong>Create Instance<\/strong>.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"69e1f4dfb1e65\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1460\" height=\"725\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/09\/the-instance-creation-button-on-hostinger-game-panel.png\/public\" alt=\"The instance creation button on Hostinger Game Panel\" class=\"wp-image-116701\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/09\/the-instance-creation-button-on-hostinger-game-panel.png\/w=1460,fit=scale-down 1460w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/09\/the-instance-creation-button-on-hostinger-game-panel.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/09\/the-instance-creation-button-on-hostinger-game-panel.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/09\/the-instance-creation-button-on-hostinger-game-panel.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/09\/the-instance-creation-button-on-hostinger-game-panel.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1460px) 100vw, 1460px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><ol start=\"2\" class=\"wp-block-list\">\n<li>Select <strong>Minecraft Java Edition<\/strong> from the drop-down menu. Game Panel will set up the version for this game, which is <strong>1.21 Tricky Trials<\/strong>.<\/li>\n\n\n\n<li>Select the default instance behavior from the <strong>After Creation<\/strong> section.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"69e1f4dfb3817\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"2036\" height=\"1186\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/game-panel-create-new-instance.png\/public\" alt=\"The Minecraft instance creation screen on Game Panel\" class=\"wp-image-113030\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/game-panel-create-new-instance.png\/w=2036,fit=scale-down 2036w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/game-panel-create-new-instance.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/game-panel-create-new-instance.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/game-panel-create-new-instance.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/game-panel-create-new-instance.png\/w=768,fit=scale-down 768w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/game-panel-create-new-instance.png\/w=1536,fit=scale-down 1536w\" sizes=\"auto, (max-width: 2036px) 100vw, 2036px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><ol start=\"4\" class=\"wp-block-list\">\n<li>Click <strong>Create Instanc<\/strong>e and wait a few moments until the new instance shows up. It&rsquo;s normal for the server to show an &ldquo;Error Running&rdquo; message at first because we haven&rsquo;t accepted Minecraft&rsquo;s license agreement yet.<\/li>\n\n\n\n<li>Select <strong>Manage<\/strong>, then click <strong>Accept<\/strong> on the Minecraft Server EULA pop-up.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"69e1f4dfb557b\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1830\" height=\"718\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/game-panel-minecraft-server-eula-accept-highlighted.png\/public\" alt=\"Minecraft server EULA agreement window on hPanel with the Accept button highlighted\" class=\"wp-image-113031\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/game-panel-minecraft-server-eula-accept-highlighted.png\/w=1830,fit=scale-down 1830w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/game-panel-minecraft-server-eula-accept-highlighted.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/game-panel-minecraft-server-eula-accept-highlighted.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/game-panel-minecraft-server-eula-accept-highlighted.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/game-panel-minecraft-server-eula-accept-highlighted.png\/w=768,fit=scale-down 768w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/07\/game-panel-minecraft-server-eula-accept-highlighted.png\/w=1536,fit=scale-down 1536w\" sizes=\"auto, (max-width: 1830px) 100vw, 1830px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><ol start=\"6\" class=\"wp-block-list\">\n<li>The instance will start running. Copy the endpoint from the <strong>Connection Info<\/strong> section.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"69e1f4dfb6e89\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1460\" height=\"697\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/09\/minecraft-server-endpoint-location-on-hostinger-game-panel.png\/public\" alt=\"Minecraft server endpoint location on Hostinger Game Panel\" class=\"wp-image-116703\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/09\/minecraft-server-endpoint-location-on-hostinger-game-panel.png\/w=1460,fit=scale-down 1460w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/09\/minecraft-server-endpoint-location-on-hostinger-game-panel.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/09\/minecraft-server-endpoint-location-on-hostinger-game-panel.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/09\/minecraft-server-endpoint-location-on-hostinger-game-panel.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/09\/minecraft-server-endpoint-location-on-hostinger-game-panel.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1460px) 100vw, 1460px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><ol start=\"7\" class=\"wp-block-list\">\n<li>Start inviting your friends to join the server by using the above credentials.<\/li>\n<\/ol><p>Using the same steps, you can also host other <a href=\"\/ng\/tutorials\/games-with-dedicated-servers\">games with dedicated servers<\/a> on your Hostinger Game Panel. You can set up multiple titles on one VPS as long as you have enough computing resources.<\/p><h3 class=\"wp-block-heading\">4. Enhance your Minecraft server<\/h3><p>Before playing Minecraft, consider taking additional steps to enhance your server.<\/p><p>For example, <a href=\"\/ng\/tutorials\/how-to-port-forward-a-minecraft-server\">enable port forwarding<\/a> to allow users outside your network to join the game using the public IP address. However, we recommend deactivating it if you are playing on a local network since it exposes your server to security risks.<\/p><p>Another tip is <a href=\"\/ng\/tutorials\/how-to-install-minecraft-mods\">installing Minecraft mods<\/a> to improve the overall gameplay experience. <a href=\"\/ng\/tutorials\/best-minecraft-mods\">Many Minecraft mods<\/a> are available for all sorts of different upgrades and adventures, including boosting performance, adding new mobs, and modifying game mechanics.<\/p><h2 class=\"wp-block-heading\" id=\"h-how-to-make-a-minecraft-server-on-a-linux-vps\">How to make a Minecraft server on a Linux VPS<\/h2><p>This section will show you how to manually create a Minecraft multiplayer server on different Linux distributions. If you want to learn more about what each command does, we recommend downloading the following cheat sheet or asking our <a href=\"\/blog\/kodee\">Kodee AI assistant<\/a>.<\/p><div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/assets.hostinger.com\/content\/tutorials\/pdf\/Linux-Commands-Cheat-Sheet.pdf\"><img loading=\"lazy\" decoding=\"async\" width=\"2048\" height=\"566\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/11\/Linux-cheat-sheet.png\/public\" alt=\"\" class=\"wp-image-69262\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/11\/Linux-cheat-sheet.png\/w=2048,fit=scale-down 2048w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/11\/Linux-cheat-sheet.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/11\/Linux-cheat-sheet.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/11\/Linux-cheat-sheet.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/11\/Linux-cheat-sheet.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 2048px) 100vw, 2048px\" \/><\/a><\/figure><\/div><h3 class=\"wp-block-heading\">1. Install Java, Screen, and wget<\/h3><p>Java, Linux Screen, and wget are essential software for your Minecraft server installation. Here are their functions:<\/p><ul class=\"wp-block-list\">\n<li><strong>Java<\/strong> &ndash; runs Minecraft and the server <strong>JAR<\/strong> files.<\/li>\n\n\n\n<li><strong>Screen<\/strong> &ndash; maintains remote terminal sessions in case of connectivity issues to keep the Minecraft server running in the background.&amp;;<\/li>\n\n\n\n<li><strong>wget<\/strong> &ndash; retrieves files from a remote server via a terminal.<\/li>\n<\/ul><p>If you use Hostinger&rsquo;s VPS, obtain the server IP address and SSH login credentials via hPanel. Then, connect to your remote server via SSH <a href=\"\/ng\/tutorials\/how-to-use-putty-ssh\">using PuTTY<\/a> or Terminal and proceed with the installation.<\/p><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"69e1f4dfb7a5b\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-large wp-lightbox-container\"><img decoding=\"async\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"\/tutorials\/wp-content\/uploads\/sites\/2\/2022\/01\/hpanel-vps-overview-ssh-username-ipv4-highlighted-1024x323.png\" alt=\"The SSH username and IPv4 information in hPanel's VPS Overview page\"><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><p><strong>Debian and its derivatives<\/strong><\/p><p>If you use <strong>Debian<\/strong> or its derivatives like <strong>Ubuntu<\/strong>, download and install the latest version of Java, Screen, and wget using these commands. While you can use different Java runtime environments, we will use<strong> OpenJDK<\/strong> since it&rsquo;s the simplest to install:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">apt update<\/pre><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">apt install software-properties-common screen wget apt-transport-https gnupg<\/pre><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">wget https:\/\/download.oracle.com\/java\/21\/latest\/jdk-21_linux-x64_bin.deb<\/pre><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">deb -i install jdk-21_linux-x64_bin.deb<\/pre><p><strong>Red Hat Enterprise Linux (RHEL) and its derivatives<\/strong><\/p><p>Run the following commands to install all the required software packages in a <strong>RHEL<\/strong>-based operating system, like <strong>CentOS <\/strong>or <strong>AlmaLinux<\/strong>:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">dnf update<\/pre><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">dnf install epel-release<\/pre><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">dnf install screen wget<\/pre><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">wget https:\/\/download.oracle.com\/java\/21\/latest\/jdk-21_linux-x64_bin.rpm<\/pre><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">dpkg -i --nosignature jdk-21_linux-x64_bin.rpm<\/pre><h3 class=\"wp-block-heading\">2. Configure the Minecraft server<\/h3><p>After installing the packages, follow these steps to set up the game server:<\/p><ol class=\"wp-block-list\">\n<li>Run this command to create a new folder for your Minecraft server configuration files:<\/li>\n<\/ol><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">mkdir minecraft<\/pre><ol start=\"2\" class=\"wp-block-list\">\n<li>Enter this command to move to the Minecraft server folder:<\/li>\n<\/ol><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">cd minecraft<\/pre><ol start=\"3\" class=\"wp-block-list\">\n<li>Use <strong>wget<\/strong> to download the server setup file from the Minecraft website:<\/li>\n<\/ol><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">wget https:\/\/piston-data.mojang.com\/v1\/objects\/59353fb40c36d304f2035d51e7d6e6baa98dc05c\/server.jar<\/pre><ol start=\"4\" class=\"wp-block-list\">\n<li>Use this command to run the Minecraft server software setup file. Omit <strong>nogui<\/strong> if you want a GUI. If the command doesn&rsquo;t work, change the file name to <strong>server.jar<\/strong>:<\/li>\n<\/ol><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">java -Xmx1024M -Xms1024M -jar server.jar nogui<\/pre><ol start=\"5\" class=\"wp-block-list\">\n<li>The server will create an EULA file. To accept it, run this command to open the <strong>eula.txt <\/strong>file with the <strong>Nano<\/strong> text editor:<\/li>\n<\/ol><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">nano eula.txt<\/pre><ol start=\"6\" class=\"wp-block-list\">\n<li>Modify the <strong>eula<\/strong> value from <strong>false<\/strong> to<strong> true<\/strong> and save the changes.<\/li>\n\n\n\n<li>Activate Screen to allow the server to run in the background.<\/li>\n<\/ol><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">screen -S \"Minecraft server 1\"<\/pre><p><div><p class=\"important\"><strong>Important!<\/strong> Make sure your Minecraft installation matches the server version. In our case, it is <strong>1.21.x<\/strong>.<\/p><\/div>\n\n\n\n<\/p><h3 class=\"wp-block-heading\">3. Run your Minecraft server<\/h3><p>Enter this command to run the Minecraft: Java Edition server. Remember to change the Minecraft version number accordingly.<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">java -Xmx1024M -Xms1024M -jar minecraft_server.1.21.jar nogui<\/pre><p>We entered <strong>1024M<\/strong> since the server requires at least 1024 MB or 1 GB of RAM. Feel free to change the number according to your server resource.<\/p><p>The server window will remain open in the background. Press<strong> CTRL + A<\/strong>, then <strong>D<\/strong> to leave Screen. Enter the following in the server command line to reopen it:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">screen -r<\/pre><p>We recommend using the default server configuration to avoid issues. If you want to modify it, run the following to open the server properties file with <strong>Nano<\/strong>:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">nano ~\/minecraft\/server.properties<\/pre><p>Minecraft players can join the server via <strong>Multiplayer<\/strong> &rarr; <strong>Add server<\/strong>. Then, enter the server name and public IP address.<\/p><h2 class=\"wp-block-heading\" id=\"h-how-to-make-a-minecraft-server-on-a-personal-computer\">How to make a Minecraft server on a personal computer<\/h2><p>If you don&rsquo;t want to manage another system, you can set up a Minecraft server on your personal computer as long it meets the <a href=\"https:\/\/www.minecraft.net\/en-us\/get-minecraft#features2\" target=\"_blank\" rel=\"noreferrer noopener\">minimum hardware requirements<\/a>. In this section, we will explain how to do so on Windows and MacOS.<\/p><h3 class=\"wp-block-heading\">How to set up a Minecraft server on Windows<\/h3><p>Here&rsquo;s how to set up a basic server on Windows:<\/p><ol class=\"wp-block-list\">\n<li>Press <strong>Win + R<\/strong> and enter <strong>cmd<\/strong> to open Windows Command Prompt. Then, run this command to check the currently installed Java version:<\/li>\n<\/ol><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">java -version<\/pre><ol start=\"2\" class=\"wp-block-list\">\n<li>Minecraft and its servers require <a href=\"https:\/\/minecraft.fandom.com\/wiki\/Java_Edition_hardware_requirements\" target=\"_blank\" rel=\"noreferrer noopener\">Java SE Development Kit 21<\/a> or higher. If you have an older release, download the latest version from the <a href=\"https:\/\/www.oracle.com\/java\/technologies\/javase\/jdk17-archive-downloads.html\" target=\"_blank\" rel=\"noreferrer noopener\">official Java website<\/a>.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.minecraft.net\/en-us\/download\/server\" target=\"_blank\" rel=\"noreferrer noopener\">Download the Minecraft: Java Edition<\/a> <strong>JAR<\/strong> server software.<\/li>\n\n\n\n<li>Create a new Minecraft server folder and move the <strong>JAR<\/strong> file there.<\/li>\n\n\n\n<li>Double-click the file to generate an EULA in the server folder.<\/li>\n\n\n\n<li>Open<strong> eula.txt<\/strong> using a text editor like <strong>Notepa<\/strong>d and change the <strong>eula<\/strong> value from <strong>false<\/strong> to <strong>true<\/strong>. You must accept the <a href=\"https:\/\/account.mojang.com\/documents\/minecraft_eula\" target=\"_blank\" rel=\"noreferrer noopener\">Minecraft EULA<\/a> to start the game.<\/li>\n\n\n\n<li>In the same folder, create a new text document.<\/li>\n\n\n\n<li>Open the new text file and paste this script to run Minecraft.<strong> -Xms256M<\/strong> and <strong>-Xmx1G<\/strong> are the server&rsquo;s minimum and maximum RAM for the game.<\/li>\n<\/ol><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">@echo off<\/pre><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">start \"My Server\" \/min java -Xms256M -Xmx1G -jar server.jar nogui<\/pre><ol start=\"9\" class=\"wp-block-list\">\n<li>Choose <strong>Save As<\/strong>. Rename the file to<strong> run.bat<\/strong> and select <strong>All types<\/strong>.<\/li>\n\n\n\n<li>Double-click the <strong>batch <\/strong>file to start the server. If the firewall permission window pops up, click <strong>Allow<\/strong>.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"69e1f4dfb9b44\"}' data-wp-interactive=\"core\/image\" class=\"aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1279\" height=\"755\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-on-async--load=\"callbacks.setButtonStyles\" data-wp-on-async-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/minecraft-server-gui-in-windows.png\/public\" alt=\"Minecraft server GUI in Windows\" class=\"wp-image-111325\" srcset=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/minecraft-server-gui-in-windows.png\/w=1279,fit=scale-down 1279w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/minecraft-server-gui-in-windows.png\/w=300,fit=scale-down 300w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/minecraft-server-gui-in-windows.png\/w=1024,fit=scale-down 1024w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/minecraft-server-gui-in-windows.png\/w=150,fit=scale-down 150w, https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/06\/minecraft-server-gui-in-windows.png\/w=768,fit=scale-down 768w\" sizes=\"auto, (max-width: 1279px) 100vw, 1279px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on-async--click=\"actions.showLightbox\" data-wp-style--right=\"state.imageButtonRight\" data-wp-style--top=\"state.imageButtonTop\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"12\" height=\"12\" fill=\"none\" viewbox=\"0 0 12 12\">\n\t\t\t\t<path fill=\"#fff\" d=\"M2 0a2 2 0 0 0-2 2v2h1.5V2a.5.5 0 0 1 .5-.5h2V0H2Zm2 10.5H2a.5.5 0 0 1-.5-.5V8H0v2a2 2 0 0 0 2 2h2v-1.5ZM8 12v-1.5h2a.5.5 0 0 0 .5-.5V8H12v2a2 2 0 0 1-2 2H8Zm2-12a2 2 0 0 1 2 2v2h-1.5V2a.5.5 0 0 0-.5-.5H8V0h2Z\"><\/path>\n\t\t\t<\/svg>\n\t\t<\/button><\/figure><\/div><p>You can run the server manually instead of using the <strong>BAT<\/strong> file. To do so, open Command Prompt and navigate to the Minecraft folder. For example:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">cd Documents\/Minecraft<\/pre><p>Then, run the command manually to execute the server <strong>JAR<\/strong> file:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">java -Xmx256M -Xms1024M -jar server.jar nogui<\/pre><p>If you want to change the server settings, like the default Minecraft port, game mode, and maximum player slots, edit the <strong>server.properties<\/strong> file in the same folder.<\/p><p>To connect to the server, open Minecraft and click <strong>Multiplayer<\/strong> &rarr; <strong>Direct Connection<\/strong>. Enter <strong>localhost<\/strong> or your <strong>server&rsquo;s local IP address<\/strong> in the <strong>Server Address<\/strong> field and click <strong>Join Server<\/strong>.<\/p><p>If you are joining the server from another device, enter your Windows server IP address. To find out the value, enter <strong>ipconfig \/all<\/strong> in Command Prompt and check the <strong>IPv4<\/strong> address.<\/p><h3 class=\"wp-block-heading\">How to make a Minecraft server on macOS<\/h3><p>Setting up a Minecraft server in macOS involves steps similar to those in Windows. Here&rsquo;s how to do it:<\/p><ol class=\"wp-block-list\">\n<li>The newer macOS version should have Java installed by default. To check if it&rsquo;s already installed, run this command in Terminal:<\/li>\n<\/ol><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">java -version<\/pre><ol start=\"2\" class=\"wp-block-list\">\n<li>Skip this step if the command outputs the version number. Otherwise, download and install a <a href=\"https:\/\/support.apple.com\/kb\/dl1572?locale=en_US\" target=\"_blank\" rel=\"noreferrer noopener\">legacy version of Java<\/a>.<\/li>\n\n\n\n<li>Create a folder for your Minecraft server files.<\/li>\n\n\n\n<li>Download and move the Minecraft server setup file to that directory.<\/li>\n\n\n\n<li>Open <strong>TextEdit <\/strong>and click <strong>Format<\/strong> &rarr; <strong>Make Plain Text<\/strong>. Copy and paste the following lines:<\/li>\n<\/ol><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">!\/bin\/bash\ncd \"$(dirname \"$0\")\"\nexec java -Xms1024M -Xmx1024M -jar server.jar nogui<\/pre><ol start=\"6\" class=\"wp-block-list\">\n<li>Save this file as <strong>startmc.command<\/strong> in the same directory as the server file.<\/li>\n\n\n\n<li>Open Terminal and navigate to your Minecraft folder. For example:<\/li>\n<\/ol><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">cd Documents\/MinecraftServer<\/pre><ol start=\"8\" class=\"wp-block-list\">\n<li><a href=\"\/ng\/tutorials\/vps\/change-linux-permissions-and-owners\">Change the file permissions<\/a> using the <strong>chmod<\/strong> command to make <strong>startmc.command<\/strong> executable:<\/li>\n<\/ol><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">chmod a+x startmc.command<\/pre><ol start=\"9\" class=\"wp-block-list\">\n<li>Double-click the<strong> COMMAND<\/strong> file to start the server in a new terminal window.<\/li>\n<\/ol><p>A missing file or directory warning might appear when you run a Minecraft server for the first time. You can ignore them since the launch command should automatically download them.<\/p><p>If the script <a href=\"https:\/\/bugs.mojang.com\/browse\/MCL-23025\" target=\"_blank\" rel=\"noreferrer noopener\">fails to download the missing files or folders<\/a>, try fetching them manually. Alternatively, reinstall the Minecraft server component.<\/p><h2 class=\"wp-block-heading\" id=\"h-minecraft-server-troubleshooting\">Minecraft server troubleshooting<\/h2><p>Configuration and internet connection issues may cause Minecraft server errors. Here are some of the most common problems and their solutions.<\/p><h3 class=\"wp-block-heading\">How to fix &ldquo;This server responded with an invalid server key&rdquo; error<\/h3><p><strong>This Server Responded With An Invalid Server Key <\/strong>indicates that the server or the Minecraft launcher might be outdated. If it&rsquo;s your server, try accessing the <strong>localhost<\/strong> address and restarting the client.<\/p><p>Since this error commonly occurs when starting the server using the <strong>EXE<\/strong> file, try the<strong> JAR<\/strong> file instead.<\/p><h3 class=\"wp-block-heading\">How to fix &ldquo;you are not whitelisted on this server&rdquo; error<\/h3><p>A whitelist includes the list of players with access to the server. The <strong>You Are Not Whitelisted On This Server<\/strong> error means that the server operator hasn&rsquo;t included the player in the whitelist.<\/p><p>To solve it, run the following command to enable the Minecraft server whitelist management.<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">whitelist on<\/pre><p>Then, add the player to the whitelist. Replace <strong>playername<\/strong> with their username.<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">whitelist add playername<\/pre><p>Here&rsquo;s the command to see the list of players on the whitelist:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">whitelist list<\/pre><p>If you want to use these <a href=\"\/ng\/tutorials\/minecraft-server-commands\">server commands<\/a> in-game, add a slash symbol at the beginning. Here&rsquo;s an example:<\/p><pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">\/whitelist add playername<\/pre><h3 class=\"wp-block-heading\">How to fix &ldquo;Connection refused connect&rdquo; error<\/h3><p>The <strong>Connection Refused: Connect<\/strong> error message appears when Minecraft servers drop or cancel users&rsquo; connection requests. Here are several solutions for this error:<\/p><ol class=\"wp-block-list\">\n<li><strong>Join the server via a different internet connection<\/strong>. Your internet issue may prevent you from connecting. If the problem persists after reconnecting, it&rsquo;s likely a server error.<\/li>\n\n\n\n<li><strong>Add Minecraft and the game launcher to the firewall exception list<\/strong>. The system firewall may block your connection. <a href=\"\/ng\/tutorials\/how-to-configure-firewall-on-ubuntu-using-ufw\/\">Configure your Linux firewall<\/a> to allow the Java binary or <strong>javaw.exe<\/strong>.<\/li>\n\n\n\n<li><strong>Reinstall your client and restart the server<\/strong>. Check if you can connect to other Minecraft servers. If there are no issues, your own client and server may be misconfigured and must be reinstalled.<\/li>\n<\/ol><h2 class=\"wp-block-heading\" id=\"h-conclusion\">Conclusion<\/h2><p>Hosting your own server lets you design a unique Minecraft world and enjoy online adventures with friends. The easiest way to do this is by getting a VPS from a hosting service like Hostinger. Here&rsquo;s a quick guide on setting up a server using the Hostinger Game Panel.<\/p><ol class=\"wp-block-list\">\n<li>Choose a <a href=\"https:\/\/bloggerspassion.com\/best-minecraft-server-hosting\/\" target=\"_blank\" rel=\"noreferrer noopener\">Minecraft server hosting<\/a> plan.<\/li>\n\n\n\n<li>Enter your server name, set a password, and select the closest server location.<\/li>\n\n\n\n<li>Open the Game Panel and create a new instance.<\/li>\n\n\n\n<li>Configure the instance and copy the endpoint to connect to the server.<\/li>\n<\/ol><p>Alternatively, create the server on the Linux VPS manually via SSH. However, this option takes longer and requires slightly more technical knowledge.<\/p><p>You can also make your own server on your own Windows or macOS personal computer. To do so, install Java and the Minecraft server file using the terminal emulator of your choice. Then, create an executable file to start the server.<\/p><p>Enabling your Minecraft server port forwarding and installing mods will improve the overall gameplay experience. You can also need to reconfigure the server to troubleshoot issues like invalid keys, whitelisting errors, and refused connections.<\/p><h2 class=\"wp-block-heading\" id=\"h-how-to-make-a-minecraft-server-faq\">How to make a Minecraft server FAQ<\/h2><div class=\"schema-faq wp-block-yoast-faq-block\"><div class=\"schema-faq-section\" id=\"faq-question-1718614619752\"><h3 class=\"schema-faq-question\">How can I limit access to my server to only my friends?<\/h3> <p class=\"schema-faq-answer\">You can set up a whitelist that includes only your friends. Alternatively, disable port forwarding and keep the server&rsquo;s IP address private among your friends.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1718614627932\"><h3 class=\"schema-faq-question\">How do I protect my Minecraft server against DDoS attacks?<\/h3> <p class=\"schema-faq-answer\">Choose a web host with built-in DDoS protection in their server, such as Hostinger. Alternatively, get a DDoS protection service from a third-party company like <a href=\"https:\/\/www.cloudflare.com\/products\/cloudflare-spectrum\/minecraft\/\" target=\"_blank\" rel=\"noreferrer noopener\">Cloudflare<\/a>.<\/p> <\/div> <div class=\"schema-faq-section\" id=\"faq-question-1718614633715\"><h3 class=\"schema-faq-question\">Can I run a Minecraft server for free?<\/h3> <p class=\"schema-faq-answer\">Yes. However, free Minecraft hosting plans tend to have limited server hardware resources and features, resulting in a poor gameplay experience. Self-hosting your own Minecraft server costs less than using a third-party service, but it requires some technical knowledge.<\/p> <\/div> <\/div>\n","protected":false},"excerpt":{"rendered":"<p>Running a private Minecraft server lets you create a custom world and play with your friends online. What&rsquo;s better than that? Although setting up a Minecraft server may seem daunting at first, it only takes minutes with the right tools. Using a virtual private server (VPS) is the easiest way to set up a Minecraft [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"\/ng\/tutorials\/how-to-setup-minecraft-server\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":337,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"How to Make a Minecraft Server in %currentyear%","rank_math_description":"Learn how to make a Minecraft server: 1. Choose a Minecraft hosting plan 2. Setup the Minecraft hosting 3. Configure the Game Panel + more.","rank_math_focus_keyword":"how to make a minecraft server","footnotes":""},"categories":[22644],"tags":[],"class_list":["post-4136","post","type-post","status-publish","format-standard","hentry","category-vps"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/tutorials\/how-to-setup-minecraft-server","default":0},{"locale":"pt-BR","link":"https:\/\/www.hostinger.com\/br\/tutoriais\/criar-servidor-minecraft","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/tutoriels\/creer-serveur-minecraft","default":0},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/tutoriales\/como-crear-servidor-minecraft","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/tutorial\/membuat-server-minecraft","default":0},{"locale":"de-DE","link":"https:\/\/www.hostinger.com\/de\/tutorials\/minecraft-server-erstellen","default":0},{"locale":"it-IT","link":"https:\/\/www.hostinger.com\/it\/tutorial\/come-creare-un-server-minecraft","default":0},{"locale":"nl-NL","link":"https:\/\/www.hostinger.com\/nl\/tutorials\/hoe-maak-je-een-minecraft-server","default":0},{"locale":"en-UK","link":"https:\/\/www.hostinger.com\/uk\/tutorials\/how-to-setup-minecraft-server","default":0},{"locale":"en-MY","link":"https:\/\/www.hostinger.com\/my\/tutorials\/how-to-setup-minecraft-server","default":0},{"locale":"en-PH","link":"https:\/\/www.hostinger.com\/ph\/tutorials\/how-to-setup-minecraft-server","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/pt\/tutoriais\/criar-servidor-minecraft","default":0},{"locale":"en-IN","link":"https:\/\/www.hostinger.com\/in\/tutorials\/how-to-setup-minecraft-server","default":0},{"locale":"en-CA","link":"https:\/\/www.hostinger.com\/ca\/tutorials\/how-to-setup-minecraft-server","default":0},{"locale":"es-AR","link":"https:\/\/www.hostinger.com\/ar\/tutoriales\/como-crear-servidor-minecraft","default":0},{"locale":"es-MX","link":"https:\/\/www.hostinger.com\/mx\/tutoriales\/joomla-vs-wordpress-cms-utilizar-11","default":0},{"locale":"es-CO","link":"https:\/\/www.hostinger.com\/co\/tutoriales\/joomla-vs-wordpress-cms-utilizar-11","default":0},{"locale":"en-AU","link":"https:\/\/www.hostinger.com\/au\/tutorials\/how-to-setup-minecraft-server","default":0},{"locale":"en-NG","link":"https:\/\/www.hostinger.com\/ng\/tutorials\/how-to-setup-minecraft-server","default":0}],"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/posts\/4136","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/users\/337"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/comments?post=4136"}],"version-history":[{"count":122,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/posts\/4136\/revisions"}],"predecessor-version":[{"id":144552,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/posts\/4136\/revisions\/144552"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/media?parent=4136"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/categories?post=4136"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/ng\/tutorials\/wp-json\/wp\/v2\/tags?post=4136"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}