• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
NameHero's Gaming Blog

NameHero's Gaming Blog

In-Game Tutorials, Gaming Server Guides, & More!

  • AI Agents
    • OpenClaw
    • Claude Code
    • n8n
    • Hermes Agent
    • Open WebUI
    • Docker
  • Hosting
    • Web Hosting
    • WordPress Hosting
    • WooCommerce Hosting
    • Enterprise Hosting
    • Email Hosting
    • HeroicGuard
    • GPU Hosting
    • Website Builder
  • VPS
    • Managed VPS
    • Unmanaged VPS
    • Flex VPS
  • Reseller
  • Gaming
    • Minecraft Hosting
    • Palworld Hosting
    • Rust Hosting
    • Soulmask Hosting
    • Stardew Valley Hosting
    • Terraria Hosting
    • DayZ Hosting
    • Project Zomboid Hosting
    • Hytale Hosting
  • Domains
  • Account
  • Blog Home
  • Categories
  • Authors

How To Port Forward A Minecraft Server

Max Moeller

Published on: June 10, 2024

Categories: Minecraft 0

Running a Minecraft server requires all sorts of work. From managing server hardware to building new structures for players to explore, there’s always something to improve — and that’s just if you’re paying to host a server.

If you’re looking to run a server from your own PC, you’ll have to manage another process: port forwarding.

Port forwarding is one of the only ways other players can access your locally hosted server.

This guide will cover the basics of port forwarding, as well as how to port forward a Minecraft server.

Table of Contents
  • Prefer To Watch Instead Of Read? Check Out Our New Video!
  • What Is A Port?
  • What Is Port Forwarding?
  • How To Port Forward A Minecraft Server
    • Find your router’s IP address on Windows Through Command Prompt
      • 1. Open Run
      • 2. Type Ipconfig
      • 3. Find Default Gateway
    • Find your router’s IP address in System Settings
      • 1. Open Settings
      • 2. Select Network & Internet
      • 3. Select Properties
      • 4. Find your IPv4 DNS address
    • Log into your router
      • 1. Enter your IP address in your browser’s address bar
      • 2. Find your port forwarding settings
      • 3. Set up port forwarding
      • 4. Reboot your router
  • Allow A Server Port Through Your Firewall
    • 1. Open Control Panel
    • 2. Select Windows Defender Firewall
    • 3. Set a new rule
    • 4. Define your port settings
    • 5. Apply the rule
    • 6. Allow the connection type
    • 7. Apply the rule
    • 8. Name the rule
  • Come Hang Or Give NameHero Game Servers A Try!

Updated 5/1/2025

Prefer To Watch Instead Of Read? Check Out Our New Video!

What Is A Port?

Before we get into port forwarding, let’s define a port.

In networking, a port is how a device sends and receives information.

When receiving or sending information, a computer assigns each piece of info a port number ranging from 0 to 65,535.

Some ports are assigned to specific tasks, like port 443, which tells your computer how to process HTTPS (hypertext transfer protocol secure) information.

HTTPS is the protocol that unencrypts secure websites.

What Is Port Forwarding?

When creating a local Minecraft server from your own PC, you’re creating a private local area network through your router (or gateway) in which other devices can connect — assuming they’re connected to your Wi-Fi, of course.

However, when creating Minecraft servers for players outside of your local network, such as a friend who lives across town, you’ll need to set up some port forwarding.

If your computer can handle it, you can also add mods to your Java Edition server.

Port forwarding involves assigning a port on your router that’s open to outside connections.

From there, users with specific network information can connect to it at any time, making your Minecraft server open to anyone you choose.

How To Port Forward A Minecraft Server

You must first find your router’s IP address to start the port forwarding process.

Here are two ways to find your router’s IP address on Windows.

Note: For this process to work, you must set up a static IP address. A static IP address prevents your IP address from changing every time your device reconnects to your router. You can usually create a static IP address through your router settings.

Find your router’s IP address on Windows Through Command Prompt

1. Open Run

Open Run by pressing Windows Key + R. Then, type CMD into the bar and press Enter. This will open your command prompt.

CMD is the default command prompt query.

2. Type Ipconfig

Input Ipconfig into your command prompt and press Enter.

This process will show you detailed network settings, such as your Default Gateway.

3. Find Default Gateway

Find the Default Gateway list item and note the IP address.

The Default Gateway is what you're looking for.

Find your router’s IP address in System Settings

1. Open Settings

Open your Windows Settings by clicking the Start button on your taskbar and entering Settings in the search bar.

Then, select the Settings app.

Typing Settings in the search bar is the fastest way to find it.

2. Select Network & Internet

Select Network & Internet from the settings list.

Network & internet includes all sorts of helpful settings.

3. Select Properties

Click the Properties option under the Network & Internet header.

Properties allows you to view important network information.

4. Find your IPv4 DNS address

Find your router IP address next to the IPv4 DNS servers list item. It should be right next to the normal IVv4 address list item.

Computers often have multiple local IP address types, but you only need this item for our current task.

The IPv4 DNS servers list item is the important one, here.

Log into your router

Now that you know your IP address, it’s time to log into your router to start the port forwarding process.

1. Enter your IP address in your browser’s address bar

Open your browser and enter your IP address in its address bar. Then hit enter.

You should be taken to your router’s login page.

A router's settings page will differ based on your brand of router, but the steps should be similar.

Log into your router with its username and password.

If you haven’t logged into your router before, you can typically find its username and password at the bottom of the device.

Note: If the Default Gateway address generates an error, try your normal IPv4 IP address instead.

2. Find your port forwarding settings

Navigate to your port forwarding settings page.

The router in this guide has them under the Advanced tab.

Port forward settings may be in a different area for your router.

3. Set up port forwarding

While every router will have a different port forward setup process, they should all include sections for your IPv4 address and port settings.

Before entering any information, make sure your service type includes TCP and UDP.

Some routers may require you to follow this process once for each service type, but this router allows for both at once.

25565 is the default port number for Java Edition.

Input your IP address from before, and put 25565 in for your port number. This is the default Minecraft port number.

If you changed your server’s port number during the Minecraft server setup process, you must go into your server properties and find it or switch it back to the default port number.

Click Save.

4. Reboot your router

Reboot your router and your Minecraft server. Most routers reset after only a few seconds.

Now, you can share your IP address with friends, and they should be able to access your Minecraft server even when outside your wi-fi network!

Note: If your router’s connection to your computer isn’t working, you may need to try this while plugged into an ethernet cable.

Allow A Server Port Through Your Firewall

If your friends are still having trouble connecting to your Minecraft server, you may have to allow your Minecraft port through your system’s firewall.

1. Open Control Panel

Open the control panel by typing Control Panel into your start menu’s search bar.

Control panel is a Windows classic.

2. Select Windows Defender Firewall

Select Windows Defender Firewall, then click Advanced Settings in the following list.

Advanced settings are necessary here.

3. Set a new rule

Select Inbound Rules on the left-hand sidebar, then select New Rule on the right-hand sidebar.

New rule is a custom port forwarding setting.

4. Define your port settings

Select Port from the list of rule settings, then click Next.

You may have to repeat this step for both TCP and UDP.

5. Apply the rule

Select either TCP or UDP, pick specific local ports, and enter 25565 into the text box.

The default Java port is 25565.

6. Allow the connection type

Select Allow the connection and click Next.

Allowing the connection ensures all of your friends can join.

7. Apply the rule

Allow the default options for the Profile page and click Next.

The rule should apply to all computers.

8. Name the rule

Name the rule Minecraft Server or whatever you prefer. Then click Finish.

This should complete the port forwarding process.

Congratulations! You should be all set. Enjoy hosting your Minecraft server!

Come Hang Or Give NameHero Game Servers A Try!

NameHero specializes in delivering some of the very best in gaming server tech without breaking the bank. DDR5 RAM, NVMe storage, RYZEN 7950X CPU’s and more come with every Minecraft server!

Already have a server? That’s okay, come hang out with us on Discord!

Max Moeller

Max is a freelance writer with a love for gaming and technology. He’s always looking for the next big game to play and tinkers with tech in his remaining free time.

Related Posts

What Do Pigs Eat In Minecraft: The Ultimate Guide

Discover what pigs eat in Minecraft and how to keep them happy. Learn about their favorite foods and enhance your gameplay.

How To Make Bricks In Minecraft: The Ultimate Guide

Learn how to make bricks in Minecraft with this beginner's guide. Discover essential materials and crafting tips.

Minecraft Piglin Trading: A Quick Guide

Master Piglin trading with essential tips and strategies to maximize your success. Dive in and enhance your Minecraft experience today!

Minecraft Adventure Maps: The Ultimate Guide

If you’ve been playing Minecraft for some time, you’re certainly aware of its two main modes: Survival and Creative. The former is Minecraft’s typical mode, requiring you to, well, build and survive. Creative mode unleashes your creativity, providing you with unlimited blocks to build whatever your heart desires. However, you may have noticed a third […]

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Get Started With a Minecraft Server


Looking to create your own gaming server? It only takes a few minutes.

Create Server Learn More

Most Popular Posts

Minecraft Mooshrooms: Everything You Need To Know

Minecraft Recovery Compass: The Essential Guide

How To Make A Lectern In Minecraft

How To Change A Minecraft Skin

Minecraft Circle Chart: A Beginner’s Guide

Ancient Debris In Minecraft: Everything You Need To Know

The Minecraft Wither Boss: A Complete Guide

Minecraft Banners 101

Minecraft Copper: The Essential Guide

Minecraft Torch Flower: The Complete Guide

Join Our Gaming Discord!

Come hang out or get support!

Top Categories

  • Palworld
  • Minecraft
  • Soulmask
  • Rust
  • Stardew Valley
  • Terraria
  • Hytale
NameHero

NameHero® proudly provides web hosting to over 40,000 customers with 99.9% uptime to over 750,000 websites.

  • Master Card
  • Visa
  • American Express
  • Discover
  • Paypal
Products
  • Web Hosting
  • Managed VPS Hosting
  • Unmanaged VPS Hosting
  • Flex VPS Hosting
  • WordPress Hosting
  • WooCommerce Hosting
  • Reseller Hosting
  • Enterprise Hosting
  • GPU Hosting
  • Email Hosting
  • HeroicGuard
  • Domains
  • Website Builder
  • AI Agent Hosting
Gaming Products
  • Game Hosting
  • Minecraft Hosting
  • Palworld Hosting
  • Rust Hosting
  • Soulmask Hosting
  • Stardew Valley Hosting
  • Terraria Hosting
  • DayZ Hosting
  • Project Zomboid Hosting
  • Hytale Hosting
Help & Support
  • NameHero Blog
  • NameHero Gaming Blog
  • Support
  • Help Center
  • Migrations
  • Affiliates
  • Gaming Affiliates
  • Call 1-855-984-6263
Company
  • About Us
  • Contact Sales
  • Reviews
  • Uptime
  • We're Hiring

Copyright © 2026 Name Hero, LLC. All rights reserved.
NameHero® is a registered trademark.

  • Privacy Policy
  • Terms of Use
  • Acceptable Use Policy
  • Payment Policy
  • DMCA