{"id":54012,"date":"2022-05-06T12:44:03","date_gmt":"2022-05-06T12:44:03","guid":{"rendered":"\/tutorials\/?p=54012"},"modified":"2026-03-10T09:29:03","modified_gmt":"2026-03-10T09:29:03","slug":"how-to-port-forward-a-minecraft-server","status":"publish","type":"post","link":"\/ca\/tutorials\/how-to-port-forward-a-minecraft-server\/","title":{"rendered":"How to port forward a Minecraft server"},"content":{"rendered":"<p>Port forwarding a Minecraft server requires mapping your local machine&rsquo;s IP address and the game&rsquo;s port number within your router settings. This enables other players to connect to the locally hosted game server and play in multiplayer mode.&nbsp;<\/p><p>To successfully set up a multiplayer server, follow these five steps:<\/p><ol class=\"wp-block-list\">\n<li><strong>Identify network details.<\/strong> Locate your device&rsquo;s unique local address and the router&rsquo;s gateway.<\/li>\n\n\n\n<li><strong>Adjust server settings.<\/strong> Define which port the Minecraft application will use.<\/li>\n\n\n\n<li><strong>Update firewall rules. <\/strong>Permit incoming connections through your computer&rsquo;s security system.<\/li>\n\n\n\n<li><strong>Create router rules. <\/strong>Map the game port to your internal IP address.<\/li>\n\n\n\n<li><strong>Launch and connect.<\/strong> Restart the application and share your public IP with other players to connect to the server.<\/li>\n<\/ol><p>\n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-find-your-ip-address-and-default-gateway\"><strong>Find your IP address and default gateway<\/strong><\/h2><p>Finding your computer&rsquo;s IP address and default gateway is the first step in forwarding your Minecraft port. This is because your router requires a precise destination to direct external game traffic to the machine where the Minecraft server is running.&nbsp;<\/p><p>An <strong>IP address, <\/strong>or specifically an <strong>IPv4 <\/strong>Address,<strong> <\/strong>is a unique numerical label assigned to your computer that enables other devices to identify it within the local network.&nbsp;<\/p><p>Without the IP address, the router cannot forward the traffic to the correct system because it can&rsquo;t distinguish your Minecraft server from smartphones or laptops that are also connected to the local network.&nbsp;<\/p><p>Meanwhile, the <strong>default gateway<\/strong> is the IP address of your router, which serves as the access point into your local network. When a user connects to your Minecraft server, it uses this address to identify the router, which then forwards the request to the corresponding IP address within its local network.&nbsp;<\/p><p>Here is how to find the IP address and default gateway on Windows. After obtaining them, we&rsquo;ll continue to set up a static IP address to ensure players can connect to your Minecraft server using the same address:<\/p><ol class=\"wp-block-list\">\n<li>Press <strong>Windows + R<\/strong> and type <strong>cmd<\/strong>. Hit <strong>Enter<\/strong>.<\/li>\n\n\n\n<li>Type this command and press <strong>Enter<\/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=\"\">ipconfig<\/pre><ol start=\"3\" class=\"wp-block-list\">\n<li> Find the addresses next to <strong>IPv4 Address<\/strong> and <strong>Default Gateway<\/strong>.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"6a5948e5d14ed\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a5948e5d14ed\" class=\"aligncenter size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1483\" height=\"762\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/03\/default-gateway.png\/public\" alt=\"Command prompt prints IP address and default gateway of the current machine\" class=\"wp-image-105134\"  sizes=\"auto, (max-width: 1483px) 100vw, 1483px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--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>Close the <strong>Command Prompt.<\/strong><\/li>\n\n\n\n<li>Hit <strong>Ctrl + R <\/strong>again and enter <strong>ncpa.cpl<\/strong>.<\/li>\n\n\n\n<li>Right-click your <strong>network connection<\/strong>, select <strong>Properties<\/strong>, locate <strong>Internet Protocol Version 4 (TCP\/IP)<\/strong>, and hit <strong>Properties<\/strong> again.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"6a5948e5d2b92\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a5948e5d2b92\" class=\"aligncenter size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"454\" height=\"585\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/03\/ethernet-properties.png\/public\" alt=\"Ethernet Properties on Windows with TCP\/IPv4 entry highlighted\" class=\"wp-image-105135\"  sizes=\"auto, (max-width: 454px) 100vw, 454px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--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>Select the <strong>Use the following IP address<\/strong> option.<\/li>\n\n\n\n<li>Enter the IP address and default gateway you obtained earlier in their corresponding fields. For the subnet mask, <strong>255.255.255.0<\/strong>.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"6a5948e5d42b2\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a5948e5d42b2\" class=\"aligncenter size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"500\" height=\"568\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/03\/tcp-ipv4.png\/public\" alt=\"The TCP\/IPv4 configuration menu in Windows\" class=\"wp-image-105167\"  sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--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=\"9\" class=\"wp-block-list\">\n<li>Click <strong>Ok<\/strong> to save the changes.&nbsp;<\/li>\n<\/ol><p>Meanwhile, the steps look like this on <strong>macOS:<\/strong><\/p><ol class=\"wp-block-list\">\n<li>Open <strong>Terminal<\/strong>.<\/li>\n\n\n\n<li>Type the following command and press Enter to identify your router&rsquo;s default gateway:<\/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=\"\">netstat -nr | grep default<\/pre><ol start=\"3\" class=\"wp-block-list\">\n<li>Enter the following command in the same terminal window to find your computer&rsquo;s IP address. Replace <strong>en0 <\/strong>with <strong>en1 i<\/strong>f you use Ethernet:&nbsp;<\/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=\"\">ipconfig getifaddr en0<\/pre><ol start=\"4\" class=\"wp-block-list\">\n<li>Go to <strong>System Settings<\/strong> &rarr; <strong>Network<\/strong>.<\/li>\n\n\n\n<li>Find the network you&rsquo;re using and click <strong>Details<\/strong>.<\/li>\n\n\n\n<li>Go to the <strong>TCP\/IP <\/strong>tab and expand the <strong>Configure IPv4 <\/strong>drop-down menu.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"6a5948e5d5931\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a5948e5d5931\" class=\"aligncenter size-large wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"895\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/03\/network-details.png\/w=1024,h=1024,fit=scale-down\" alt=\"Network TCP\/IP details shown in System Settings on macOS\" class=\"wp-image-105170\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--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>Select <strong>Using DHCP with manual address, <\/strong>and fill out your preferred IP address. For the router address, we recommend using <strong>0<\/strong>.<\/li>\n\n\n\n<li>Click <strong>OK<\/strong> to save the changes.<\/li>\n<\/ol><p>If you use <strong>Linux, <\/strong>the procedure is as follows. Note that since we are using Ubuntu, the commands might differ slightly depending on your distro:<\/p><ol class=\"wp-block-list\">\n<li>Open your <strong>terminal.<\/strong><\/li>\n\n\n\n<li>Run the following command to find the gateway:<\/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=\"\">route -n | grep \"^0.0.0.0\" | cut -d ' ' -f 10<\/pre><ol start=\"3\" class=\"wp-block-list\">\n<li>In the same shell, run this command to find your computer&rsquo;s IP address:<\/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=\"\">hostname -I<\/pre><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"6a5948e5d6c9e\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a5948e5d6c9e\" 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--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/05\/linux-terminal-outputs-the-system-ip-address-and-default-gateway.png\/w=1024,h=1024,fit=scale-down\" alt=\"Linux terminal outputs the IP address and default gateway of the current system\" class=\"wp-image-138684\"><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--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>Open your computer&rsquo;s network configuration by running the following. If you can&rsquo;t find the file, the name or location might be different:<\/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=\"\">sudo nano \/etc\/netplan\/01-netcfg.yaml<\/pre><ol start=\"5\" class=\"wp-block-list\">\n<li>Change the <strong>Routes <\/strong>parameter to the default gateway value obtained earlier, and <strong>Addresses<\/strong> to your preferred IP address.&nbsp;<\/li>\n\n\n\n<li>Save the changes by pressing <strong>Ctrl + X<\/strong>, <strong>Y<\/strong>, then<strong> Enter<\/strong>.&nbsp;<\/li>\n<\/ol><h2 class=\"wp-block-heading\" id=\"h-what-is-port-forwarding\"><strong>Configure the Minecraft server port<\/strong><\/h2><p>Configure the Minecraft server port to ensure it listens for incoming data on the correct channel. Depending on your Minecraft version, the port to use differs:<\/p><ul class=\"wp-block-list\">\n<li><strong>Java Edition:<\/strong> 25565 (TCP)<\/li>\n\n\n\n<li><strong>Bedrock Edition:<\/strong> 19132 (UDP) for IPv4, and 19133 (UDP) for IPv6<\/li>\n<\/ul><p>To do this, locate and <a href=\"\/ca\/tutorials\/minecraft-server-properties\/\">edit your Minecraft server properties file<\/a> by following these steps:<\/p><ol class=\"wp-block-list\">\n<li>Locate the <strong>server.properties <\/strong>file on your computer. This differs depending on your operating system and installation path.&nbsp;<\/li>\n\n\n\n<li>Right-click the file and open it with a text editor like <strong>Notepad<\/strong>.&nbsp;<\/li>\n\n\n\n<li>Locate the line <strong>server-port <\/strong>and ensure it matches the correct default port for your specific game version. Otherwise, change the value accordingly.<\/li>\n<\/ol><figure data-wp-context='{\"imageId\":\"6a5948e5d88fa\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a5948e5d88fa\" class=\"wp-block-image size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"960\" height=\"510\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/03\/server-properties.png\/public\" alt=\"Minecraft's server properties file\" class=\"wp-image-105117\"  sizes=\"auto, (max-width: 960px) 100vw, 960px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--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><ol start=\"4\" class=\"wp-block-list\">\n<li>Hit <strong>Ctrl + S<\/strong> to save the changes.&nbsp;<\/li>\n<\/ol><p>Technically, you can change the default Minecraft port to any number between <strong>1<\/strong> and <strong>65535<\/strong>. However, it&rsquo;s not recommended as it may conflict with another network service if you are unsure whether the port is free.&nbsp;<\/p><p>Moreover, using non-default ports requires every player to manually type the port number after the IP address to connect, which makes the process more complicated.<\/p><h2 class=\"wp-block-heading\" id=\"h-allow-the-minecraft-port-through-the-firewall\"><strong>Allow the Minecraft port through the firewall<\/strong><\/h2><p>Allowing the Minecraft port through the firewall enables other players to connect to the game server running on your computer. This is crucial because your operating system&rsquo;s security software is designed to automatically drop unsolicited incoming packets to prevent unauthorized access.&nbsp;<\/p><p>Here&rsquo;s how to set up your Windows firewall to allow the Minecraft port:<\/p><ol class=\"wp-block-list\">\n<li>Open <strong>Windows Defender Firewall with Advanced Security<\/strong>.<\/li>\n<\/ol><figure data-wp-context='{\"imageId\":\"6a5948e5d9c0a\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a5948e5d9c0a\" class=\"wp-block-image size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"972\" height=\"911\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/03\/windows-defender-firewall.png\/public\" alt=\"Windows Defender Firewall application is shown, a built-in Windows tool that allows users to access advanced settings of Windows Defender\" class=\"wp-image-105118\"  sizes=\"auto, (max-width: 972px) 100vw, 972px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--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><ol start=\"2\" class=\"wp-block-list\">\n<li>Select <strong>Inbound Rules<\/strong> and click <strong>New Rule<\/strong>.<\/li>\n\n\n\n<li>Choose <strong>Port<\/strong>, select <strong>TCP<\/strong>, and enter <strong>25565<\/strong>.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"6a5948e5db382\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a5948e5db382\" class=\"aligncenter size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"892\" height=\"726\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2024\/03\/new-inbound-rule-port.png\/public\" alt=\"New Inbound Rule selection window with the Port option selected\" class=\"wp-image-105119\"  sizes=\"auto, (max-width: 892px) 100vw, 892px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--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>Select <strong>Allow the connection<\/strong> and name the rule, such as <strong>Minecraft TCP<\/strong>.<\/li>\n\n\n\n<li>Repeat the steps to create a separate rule for <strong>UDP<\/strong> to ensure full connectivity.<\/li>\n<\/ol><p>In<strong> macOS<\/strong>, the process is more straightforward:<\/p><ol class=\"wp-block-list\">\n<li>Navigate to <strong>System Settings<\/strong> &rarr; <strong>Network<\/strong> &rarr; <strong>Firewall<\/strong>.<\/li>\n\n\n\n<li>Toggle the <strong>Firewall<\/strong> on. You may need to enter the admin password.&nbsp;<\/li>\n\n\n\n<li>Click <strong>Options<\/strong> and then the <strong>+<\/strong> (plus) button.<\/li>\n<\/ol><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"6a5948e5dc4bd\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a5948e5dc4bd\" 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--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/05\/the-firewall-rule-setup-window-on-macos.jpeg\/w=1024,h=1024,fit=scale-down\" alt=\"The firewall rule configuration menu in macOS\" class=\"wp-image-138685\"><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--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 class=\"wp-block-list\">\n<li>Select your installed <strong>Java<\/strong> application, or the specific Minecraft server executable, and ensure <strong>Allow incoming connections<\/strong> is set.<\/li>\n<\/ol><p>On <strong>Linux<\/strong>, configuring the system firewall to allow ports typically uses Uncomplicated Firewall (UFW). Here are the steps:<\/p><ol class=\"wp-block-list\">\n<li>Install UFW by running this command. Since we are using Ubuntu, remember to change the package manager according to your distribution:<\/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=\"\">sudo apt install ufw<\/pre><ol start=\"2\" class=\"wp-block-list\">\n<li>Allow the Minecraft server port using this command:<\/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=\"\">sudo ufw allow 25565\/tcp<\/pre><ol start=\"3\" class=\"wp-block-list\">\n<li>Enable UFW to enforce the rule:<\/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=\"\">sudo ufw enable<\/pre><p>If you want to learn more about this tool, check out our guide about <a href=\"\/ca\/tutorials\/how-to-configure-firewall-on-ubuntu-using-ufw\/\">how to configure the firewall on Ubuntu using UFW<\/a>.&nbsp;<\/p><h2 class=\"wp-block-heading\" id=\"h-set-up-port-forwarding-on-the-router\"><strong>Set up port forwarding on the router<\/strong><\/h2><p>Port forwarding on the router bypasses the Network Address Translation (NAT) firewall, which hides internal devices&rsquo; actual addresses from the internet for security reasons. By creating a forwarding rule, you explicitly authorize the router to accept external requests on a specific port and funnel them directly to your server&rsquo;s local IP address.<\/p><p>The steps to configure port forwarding depend on your router, but the general procedure remains the same. Here&rsquo;s how to do it on a <strong>D-Link<\/strong> router:<\/p><ol class=\"wp-block-list\">\n<li>Enter your <strong>Default Gateway<\/strong> IP address into a web browser and log in with your router&rsquo;s credentials. If you are unsure, contact your internet service provider.&nbsp;&nbsp;<\/li>\n<\/ol><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"6a5948e5dddfb\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a5948e5dddfb\" class=\"aligncenter size-full 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--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/05\/The-first-router-page-users-usually-see-%E2%80%93-a-login-form.png\/public\" alt=\"A login pop-up when trying to access the router page\" class=\"wp-image-54044\"><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--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>Find and enable the <strong>Port Forwarding <\/strong>option.<\/li>\n\n\n\n<li>Add a name for your forwarding rule.&nbsp;&nbsp;<\/li>\n\n\n\n<li>Enter the <strong>static IP address<\/strong> obtained from the first step.&nbsp;<\/li>\n\n\n\n<li>Fill out the port fields using your <strong>Minecraft server port<\/strong>.&nbsp;<\/li>\n<\/ol><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"6a5948e5df462\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a5948e5df462\" class=\"aligncenter size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"722\" height=\"364\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/05\/Router-page-for-D-Link.png\/public\" alt=\"Internet router\/modem configuration panel for D-Link network equipment with Advanced tab selected\" class=\"wp-image-54045\"  sizes=\"auto, (max-width: 722px) 100vw, 722px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--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>Click <strong>Apply<\/strong> to save the changes.&nbsp;<\/li>\n<\/ol><p>While generally safe, opening ports to the internet creates a potential entry point for traffic. To minimize the risk, follow <a href=\"\/ca\/tutorials\/vps-security\/\">VPS security best practices<\/a>, which apply to both a local and remote computer.<\/p><h2 class=\"wp-block-heading\" id=\"h-restart-the-minecraft-server-and-connect\"><strong>Restart the Minecraft server and connect<\/strong><\/h2><p>Restart your Minecraft server and connect to it to finalize the setup. Since the server typically reads configuration files and binds to ports during the startup sequence, rebooting ensures the changes are applied.&nbsp;&nbsp;<\/p><div class=\"wp-block-image\"><figure data-wp-context='{\"imageId\":\"6a5948e5e0baf\"}' data-wp-interactive=\"core\/image\" data-wp-key=\"6a5948e5e0baf\" class=\"aligncenter size-full wp-lightbox-container\"><img loading=\"lazy\" decoding=\"async\" width=\"742\" height=\"312\" data-wp-class--hide=\"state.isContentHidden\" data-wp-class--show=\"state.isContentVisible\" data-wp-init=\"callbacks.setButtonStyles\" data-wp-on--click=\"actions.showLightbox\" data-wp-on--load=\"callbacks.setButtonStyles\" data-wp-on-window--resize=\"callbacks.setButtonStyles\" src=\"https:\/\/imagedelivery.net\/LqiWLm-3MGbYHtFuUbcBtA\/wp-content\/uploads\/sites\/2\/2022\/05\/A-running-Minecraft-server.png\/public\" alt=\"A running Minecraft server with the \/stop command typed out\" class=\"wp-image-54047\"  sizes=\"auto, (max-width: 742px) 100vw, 742px\" \/><button class=\"lightbox-trigger\" type=\"button\" aria-haspopup=\"dialog\" aria-label=\"Enlarge\" data-wp-init=\"callbacks.initTriggerButton\" data-wp-on--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>To do this, open your Minecraft server console and type <strong>\/stop<\/strong>. Then, search <strong>what is my ip<\/strong> on Google to find your public IP address, which other players can then use to connect to your game server with this format:<\/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=\"\">185.185.185.185:25565\n<\/pre><p>Change <strong>185.185.185.185 <\/strong>with the actual IP address of your system and<strong> 25565 <\/strong>with your Minecraft server&rsquo;s port number.&nbsp;<\/p><p><div class=\"protip\">\n            <div class=\"protip__heading\">\n                <svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n                    <path d=\"M1.49234 23.5024C1.23229 23.5024 0.972242 23.4024 0.782206 23.2123C0.562165 22.9923 0.452144 22.6822 0.502153 22.3722C0.562165 21.9221 1.14227 17.9113 3.00262 16.351C3.63274 15.8209 4.43289 15.5509 5.26305 15.5609C6.09321 15.5909 6.87335 15.9109 7.47347 16.4911C8.6937 17.6913 8.76371 19.6717 7.6435 20.9919C6.0832 22.8523 2.08245 23.4324 1.63237 23.4924C1.59236 23.4924 1.54235 23.4924 1.50234 23.4924L1.49234 23.5024ZM5.16303 17.5613C4.84297 17.5613 4.53291 17.6713 4.29287 17.8813C3.60274 18.4614 3.07264 19.9317 2.75258 21.242C4.06282 20.9219 5.5331 20.3918 6.11321 19.7017C6.55329 19.1716 6.54329 18.3814 6.0832 17.9213C5.85316 17.7013 5.5431 17.5713 5.20304 17.5613C5.19304 17.5613 5.17303 17.5613 5.16303 17.5613ZM11.7243 21.8821C11.4942 21.8821 11.2642 21.8021 11.0841 21.652C10.8541 21.462 10.7241 21.1819 10.7241 20.8819V15.9109L8.08358 13.2705H3.11264C2.81259 13.2705 2.53254 13.1404 2.3425 12.9104C2.15246 12.6803 2.07245 12.3803 2.12246 12.0902C2.19247 11.7102 2.84259 8.36953 4.70294 7.12929C6.33325 6.04909 8.96375 6.49918 10.244 6.80923C11.5442 4.96889 13.2546 3.4286 15.2349 2.33839C17.4553 1.11816 19.9858 0.518051 22.4963 0.498047C23.0464 0.498047 23.4865 0.948132 23.4865 1.49824C23.4865 5.0389 22.3763 9.97983 17.1753 13.7605C17.4853 15.0408 17.9354 17.6613 16.8552 19.2816C15.615 21.1419 12.2744 21.7921 11.8943 21.8621C11.8343 21.8721 11.7743 21.8821 11.7143 21.8821H11.7243ZM12.7245 16.181V19.6016C13.7146 19.2916 14.7948 18.7915 15.2049 18.1814C15.675 17.4812 15.605 16.091 15.385 14.9008C14.5248 15.3808 13.6346 15.8109 12.7245 16.181ZM9.66388 12.0302L11.9643 14.3307C13.1845 13.8306 14.3648 13.2204 15.485 12.5103C19.9358 9.51974 21.2361 5.60901 21.4561 2.53843C19.6157 2.67846 17.8254 3.20856 16.2051 4.09872C14.2847 5.14892 12.6544 6.68921 11.4942 8.54956C10.7841 9.65977 10.174 10.82 9.66388 12.0302ZM4.39289 11.2701H7.81353C8.1936 10.3599 8.63368 9.46974 9.11377 8.60957C7.92355 8.38953 6.51329 8.31952 5.81315 8.78961C5.19304 9.19968 4.70294 10.3099 4.39289 11.2701Z\" fill=\"#673DE6\"\/>\n                <\/svg>\n                <p class=\"protip__title\">\n                    Expert tip\n                <\/p>\n            <\/div>\n            <p class=\"protip__content\">Never share your public IP on the internet, as this can expose your physical location and make you a potential target for numerous cyber attacks.<\/p>\n                <div class=\"protip__expert\">\n                    <div class=\"protip__expert-image\">\n                        <img loading=\"lazy\" decoding=\"async\" width=\"48\" height=\"48\" src=\"https:\/\/secure.gravatar.com\/avatar\/661d028daf4955890c1ba0c4fb0ee522c570445ac97bdbcf27b54c86dfc9be95?s=65&d=mm&r=g\" alt=\"Editor\" \/>\n                    <\/div>\n                    <div>\n                        <p class=\"protip__expert-name\">Egidijus N.<\/p>\n                        <p class=\"protip__expert-position\">Head of Cyber Security<\/p>\n                    <\/div>\n                <\/div>\n        <\/div>\n\n\n\n<\/p><h2 class=\"wp-block-heading\" id=\"h-how-to-enhance-your-minecraft-server-after-port-forwarding\"><strong>How to enhance your Minecraft server after port forwarding<\/strong><\/h2><p>After forwarding your Minecraft server&rsquo;s port, other players should be able to connect to your game server. This enables multiplayer on a self-managed server, where you have autonomy over game rules and performance, ensuring an enjoyable gaming experience.&nbsp;<\/p><p>To make multiplayer gameplay more fun, enhance the server by adding features such as land protection, an economy, or mini-games. The easiest way to do this is by installing a plugin, which you can obtain from a repository like<strong> Modrinth<\/strong>.<\/p><p>After downloading your desired extensions, check our guide on <a href=\"\/ca\/tutorials\/how-to-add-plugins-to-minecraft-server\/\">how to add plugins to your Minecraft server<\/a>. Have fun!<\/p><figure class=\"wp-block-image size-large\"><a class=\"hgr-tutorials-cta hgr-tutorials-cta-minecraft-hosting\" href=\"\/ca\/vps\/minecraft-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\/Minecraft-hosting-banner.png\/w=1024,h=1024,fit=scale-down\" alt=\"\" class=\"wp-image-77926\"  sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Port forwarding a Minecraft server requires mapping your local machine&rsquo;s IP address and the game&rsquo;s port number within your router settings. This enables other players to connect to the locally hosted game server and play in multiplayer mode.&nbsp; To successfully set up a multiplayer server, follow these five steps: Find your IP address and default [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"\/ca\/tutorials\/how-to-port-forward-a-minecraft-server\/\">Read More&#8230;<\/a><\/p>\n","protected":false},"author":279,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"rank_math_title":"How to port forward a Minecraft server: A step-by-step guide","rank_math_description":"Learn how to port forward a Minecraft server. Kick back and enjoy playing with your friends all around the globe.","rank_math_focus_keyword":"how to port forward a minecraft server","footnotes":""},"categories":[22699],"tags":[],"class_list":["post-54012","post","type-post","status-publish","format-standard","hentry","category-vps"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/tutorials\/how-to-port-forward-a-minecraft-server\/","default":1},{"locale":"pt-BR","link":"https:\/\/www.hostinger.com\/br\/tutoriais\/minecraft-port-forwarding\/","default":0},{"locale":"fr-FR","link":"https:\/\/www.hostinger.com\/fr\/tutoriels\/ouvrir-ports-serveur-minecraft\/","default":0},{"locale":"es-ES","link":"https:\/\/www.hostinger.com\/es\/tutoriales\/como-reenviar-puertos-de-minecraft\/","default":0},{"locale":"id-ID","link":"https:\/\/www.hostinger.com\/id\/tutorial\/cara-port-forward-server-minecraft\/","default":0},{"locale":"de-DE","link":"https:\/\/www.hostinger.com\/de\/tutorials\/minecraft-server-portweiterleitung\/","default":0},{"locale":"it-IT","link":"https:\/\/www.hostinger.com\/it\/tutorial\/port-forwarding-server-minecraft\/","default":0},{"locale":"en-PH","link":"https:\/\/www.hostinger.com\/ph\/tutorials\/how-to-port-forward-a-minecraft-server\/","default":0},{"locale":"en-MY","link":"https:\/\/www.hostinger.com\/my\/tutorials\/how-to-port-forward-a-minecraft-server\/","default":0},{"locale":"en-GB","link":"https:\/\/www.hostinger.com\/uk\/tutorials\/how-to-port-forward-a-minecraft-server\/","default":0},{"locale":"en-IN","link":"https:\/\/www.hostinger.com\/in\/tutorials\/how-to-port-forward-a-minecraft-server\/","default":0},{"locale":"en-CA","link":"https:\/\/www.hostinger.com\/ca\/tutorials\/how-to-port-forward-a-minecraft-server\/","default":0},{"locale":"en-AU","link":"https:\/\/www.hostinger.com\/au\/tutorials\/how-to-port-forward-a-minecraft-server\/","default":0},{"locale":"en-NG","link":"https:\/\/www.hostinger.com\/ng\/tutorials\/how-to-port-forward-a-minecraft-server\/","default":0},{"locale":"es-AR","link":"https:\/\/www.hostinger.com\/ar\/tutoriales\/como-reenviar-puertos-de-minecraft\/","default":0},{"locale":"es-MX","link":"https:\/\/www.hostinger.com\/mx\/tutoriales\/como-reenviar-puertos-de-minecraft\/","default":0},{"locale":"es-CO","link":"https:\/\/www.hostinger.com\/co\/tutoriales\/como-reenviar-puertos-de-minecraft\/","default":0},{"locale":"pt-PT","link":"https:\/\/www.hostinger.com\/pt\/tutoriais\/minecraft-port-forwarding\/","default":0}],"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/posts\/54012","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/users\/279"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/comments?post=54012"}],"version-history":[{"count":38,"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/posts\/54012\/revisions"}],"predecessor-version":[{"id":141796,"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/posts\/54012\/revisions\/141796"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/media?parent=54012"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/categories?post=54012"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/ca\/tutorials\/wp-json\/wp\/v2\/tags?post=54012"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}