search
Minecraft Wiki

Minecraft Wiki

936 pages 4332 edits Updated: Jul 06
Wiki BG

How to Port Forward a Minecraft Server

Source: Youtube
Source: Youtube



If you're an avid Minecraft player and want to create your own server to play with friends, you'll need to know how to port forward. Port forwarding is a technique used to allow external devices to access your network and communicate with a specific device or service on your local network. In this guide, we'll walk you through the steps to port forward your Minecraft server.


youtube-cover


Step 1: Determine your IP Address


The first step is to determine your local IP address. This is the IP address assigned to your computer or device on your local network. You can find your local IP address by using the command prompt on Windows.


  • Set the Port on Minecraft Configuration

  • Open the Minecraft server directory and locate the server.properties file:

  • Windows local Minecraft installation folder in file explorer with server.properties file highlighted

  • Right-click on it and open the file with a text editor.

  • Find the server-port line:

  • server.properties file with server-port highlighted


Source: Youtube
Source: Youtube



Here are the default port numbers for Minecraft:

  • 25565 – for Java Edition.

  • 19132-19133 – TCP and UDP ports for Bedrock.

  • Users can change the port by changing the server-port value to any in the range from 1 to 65535, although we recommend sticking with the default one.


Allow the Port on Your Firewall

To ensure the server works correctly, you must allow the Minecraft port number via your firewall. In this section, we will go over the process of three operating systems – Windows, macOS, and Linux.


Firewall Management on Windows


Source: Youtube
Source: Youtube



  • Open Windows Defender Firewall with Advanced Security.

  • Windows Defender Firewall desktop app, where users can access the advanced settings of Windows Defender

  • Click on Inbound Rules and select New Rule.

  • Windows Defender view with "new rule" option highlighted

  • Choose Port and click Next.

  • Rule creation window with the Port option selected

  • Select TCP, and enter the Minecraft port number. In this case, it’s 25565. Once done, click Next.

  • Firewall rule applied to TCP and to default Minecraft server port

  • Select Allow the connection and click the Next button until the final step. Before clicking Finish, give your rule a name, like in this example:

  • Last step for Windows Firewall rule creation. This will allow incoming traffic to the user's Minecraft server

  • After you have created the rule, make a new one with the same configuration, just for UDP.


Step 2: Log in to Your Router


Next, you'll need to log in to your router's settings. This is typically done by entering your router's IP address into a web browser and entering your router's login credentials. If you're not sure how to do this, check your router's manual or contact your Internet Service Provider (ISP) for assistance.


Step 3: Find the Port Forwarding Section


Once logged in to your router's settings, you must find the port forwarding section. This may be labeled differently depending on your router's make and model. Look for terms like "NAT" or "Virtual Server."


Step 4: Set Up a New Port Forwarding Rule


You'll need to set up a new port forwarding rule in the port forwarding section. You'll need to specify the protocol (TCP or UDP), the external port (the port number that will be used to access your server from outside your network), the internal port (the port number your Minecraft server is using), and the IP address of your computer or device running the Minecraft server.


Step 5: Save Your Settings


After you've entered all the necessary information, save your settings. Your router will then forward all incoming requests on the external port to your computer or device running the Minecraft server.


Conclusion


Port forwarding can be a complex process, but by following these steps, you'll be able to set up your Minecraft server to accept incoming connections from outside your network. Remember to keep your server and router updated and secure to prevent unauthorized access.


FAQs

Q. What is port forwarding for Minecraft servers?

A. Port forwarding is a technique used to allow external devices to access your local network and communicate with a specific device or service, in this case, your Minecraft server.

Q. Why do I need to port forward my Minecraft server?

A. If you want to create a Minecraft server to play with friends or allow other players to join, you'll need to port forward. Without port forwarding, players from outside your network won't be able to connect to your server.

Q. How do I find my local IP address?

A. You can find your local IP address by using the command prompt on Windows or the terminal on Mac and Linux. Type "ipconfig" on Windows or "ifconfig" on Mac or Linux to get your local IP address.
This functionality is open only to Wiki Admins

Popular In Minecraft Wiki

Comments

Latest Wiki Pages

Smelting

Smelting

Minecraft Wiki 10 mn 25 d
Sky Dimension in Minecraft

Sky Dimension in Minecraft

Minecraft Wiki 10 mn 8 d
Education Edition

Education Edition

Minecraft Wiki 10 mn 12 d
Getting Started in Minecraft

Getting Started in Minecraft

Minecraft Wiki 11 mn 16 d
The Twilight Forest Minecraft mod

The Twilight Forest Minecraft mod

Minecraft Wiki 11 mn
Mowzie’s Mobs

Mowzie’s Mobs

Minecraft Wiki 11 mn 2 d
What is Pixelmon in Minecraft?

What is Pixelmon in Minecraft?

Minecraft Wiki 11 mn 3 d
How to Craft an Oak Button in Minecraft

How to Craft an Oak Button in Minecraft

Minecraft Wiki 11 mn 3 d
How to Craft a Tripwire Hook in Minecraft?

How to Craft a Tripwire Hook in Minecraft?

Minecraft Wiki 11 mn 5 d
How to Craft a Lever in Minecraft?

How to Craft a Lever in Minecraft?

Minecraft Wiki 11 mn 6 d
How to craft a Redstone Repeater in Minecraft?

How to craft a Redstone Repeater in Minecraft?

Minecraft Wiki 11 mn 7 d
How to craft a Daylight Detector in Minecraft?

How to craft a Daylight Detector in Minecraft?

Minecraft Wiki 11 mn 8 d
How to Craft a Redstone Comparator in Minecraft

How to Craft a Redstone Comparator in Minecraft

Minecraft Wiki 11 mn 9 d
Can Dragon Fireball be used as a decorative item in Minecraft?

Can Dragon Fireball be used as a decorative item in Minecraft?

Minecraft Wiki 11 mn 10 d
How to Craft a Beacon in Minecraft

How to Craft a Beacon in Minecraft

Minecraft Wiki 11 mn 12 d
What are Elder Guardians and what do they do in Minecraft?

What are Elder Guardians and what do they do in Minecraft?

Minecraft Wiki 12 mn 17 d
Verdant Froglight in Minecraft

Verdant Froglight in Minecraft

Minecraft Wiki 12 mn 19 d
What are Dragon Fireballs in Minecraft?

What are Dragon Fireballs in Minecraft?

Minecraft Wiki 12 mn 20 d
What is Structure Void in Minecraft?

What is Structure Void in Minecraft?

Minecraft Wiki 12 mn 21 d
What are Structure blocks in Minecraft?

What are Structure blocks in Minecraft?

Minecraft Wiki 12 mn 21 d