October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PCOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
VGSources
Blog

Mindustry Server Port: How to Change and Forward It

Mindustry uses port 6567 by default. This guide shows how to change it, forward the selected TCP and UDP port, configure firewalls, connect players, and diagnose common failures.
Length11 min Posted Quest giverVGSources Team
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Mindustry’s default dedicated-server port is 6567. A reachable server needs that port—or your replacement port—allowed for both TCP and UDP, opened in the host firewall, and forwarded by your router when the server is at home. Change the application value from the server console with config port <new-port>, verify it with config port, then have players join using <public-ip>:<port>.

The short answer

A dedicated Mindustry server listens on port 6567 by default. The Mindustry Wiki’s current setup guidance says to allow port 6567 for TCP and UDP. If the server runs on a computer behind a home router, create a port-forwarding rule to that computer’s local IP. Without that rule, people outside your home network cannot reach the dedicated server.

As an Amazon Associate I earn from qualifying purchases.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

You can select another unused port. At the server console, run config port 5668 (5668 is the example used by a Hetzner Community tutorial), then confirm the value with config port. Replace 5668 with the number you actually chose. The same number must be used in the server configuration, router rule, host firewall, cloud firewall if applicable, and the address players enter.

What the Mindustry port does

Port 6567 is the documented default

The dedicated server starts on 6567 unless its configuration has been changed. The number identifies the network endpoint at which the game service accepts connections; it is not a map number, server ID, or password. A client therefore needs both an address and a port, such as 198.51.100.24:6567. The address in that example is documentation-only; use your server’s real public address.

#1 Best Overall
Sale
Gaoye Blue Light Blocking Glasses
  • BLUE LIGHT BLOCKING GLASSES: Our blue light glasses for women boast UV400 protection, blocking harmful blue rays from computer screens. With these bluelight glasses women, you can enjoy gaming, reading, or watching TV with no worries of eye strain.
  • EYE RELIEF: Our blue light glasses are engineered to reduce blurry vision or strain caused by prolonged screen time. These womens blue light glasses aid in better sleep by preventing blue light from disrupting your natural sleep cycle, helping you fall asleep faster and enjoy a more restful night's sleep, making them the perfect christmas present.
  • COMFORTABLE: Crafted from durable material, our trendy blue light glasses for woman or blue light glasses men ensure long-lasting comfort. The high-transmittance lenses accessories, gamer gifts for men, help keep your eyes relaxed. Perfect stocking stuffers, gifts for gamers men, christmas gifts for men, halloween costumes.
  • LIGHTWEIGHT: These clear blue light glasses feature a lightweight frame, meaning they’ll stay comfy for long-term wear. Perfect as blue blockers glasses for women or mens blue light glasses, these non-prescription fake glasses for men can be worn throughout the day. The blue light blocking glasses women feature polycarbonate HD lenses, which are anti-reflective and restore true color.
  • WORRY-FREE PURCHASE: If you experience any issues, our support team is ready to assist you quickly. These are the perfect costume glasses for cosplay dressing up.

Why both TCP and UDP matter

Mindustry’s setup instructions call for allowing the selected port on both transport protocols. Opening only TCP or only UDP can leave the server apparently running while some connection attempts fail. Apply the same TCP-and-UDP choice to every layer you control: the operating-system firewall, the home router’s forwarding rule, and a provider’s network firewall on a virtual or dedicated server.

Changing the number does not replace the other rules

A console command changes where the application listens. It does not automatically edit your router, operating-system firewall, or cloud firewall. If you move from 6567 to 5668, every corresponding rule and every client address must move to 5668 as well.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What you need before changing or forwarding a port

  • A running Mindustry dedicated-server release and access to its console.
  • Permission to change the server configuration and the host firewall.
  • For home hosting, administrator access to the router.
  • A stable local IP address for the computer running the server, so a router rule does not point to a different device later.
  • An unused port number selected by the server administrator if 6567 is unsuitable.
  • The server’s public or remote address, which players will combine with the selected port.

Keep a note of the final port and local IP before testing. A mismatch is much easier to find when the intended values are written down.

How to change the Mindustry server port

1. Start the dedicated server

Download the dedicated-server release, launch it with Java, and use the console command host <mapname> [mode] to start a game. The server must actually be hosting a map before a player can join; changing a firewall rule cannot make an idle console accept a game connection.

2. Read the current value

At the Mindustry console, enter:

config port

This displays the configured port. A new installation normally reports 6567, the default documented by the Mindustry Wiki and the Hetzner Community tutorial.

3. Set a different value

Enter the new number as an argument:

config port 5668

Here, 5668 is an example, not a required choice. Select another unused value if it conflicts with a service on the machine or with your network policy. The exact replacement is an administrator decision; the important requirement is consistency across all subsequent rules.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #2
Windex Gaming Cleaning Wipes, Pre-Moistened Wipes to Instantly Clean all Gaming Gear and Electronics, Resealable Packaging for a Freshness Lock, 25 count (Pack of 1)
  • WINDEX GAMING WIPES: effortlessly clean all your gaming gear and gaming electronics in one easy step with our new Windex Gaming Wipes
  • AMMONIA FREE: our ammonia-free formula is safe to use on all of your favorite gaming equipment like consoles, headsets, controllers, screens, keyboards, and more
  • PRE-MOISTENED WIPES: each wipe instantly removes dust, dirt, and stubborn smudges and fingerprints leaving a streak-free shine
  • ANTI-STATIC: great for cleaning and wiping down your gaming gear and electronics leaving behind no visible residue
  • COMPACT RESEALABLE PACKAGE: store your pack of Windex Gaming Wipes anywhere in your home for whenever a quick and easy wipedown is needed

4. Verify the setting

Run the read command again:

config port

The console should now report 5668 in this example. If it still reports 6567, repeat the command carefully and check that you are configuring the intended server process. Record the value shown by this verification step; it is the value to use in firewall, forwarding, and client configuration.

5. Start or host the game on the configured server

Use host <mapname> [mode] after the port is set, and leave the dedicated-server process running while testing. A successful configuration read only proves that the application accepted the setting; it does not prove that a router or firewall is passing traffic.

How to forward the port on a home router

1. Give the server a stable local address

Identify the computer’s local IP address and reserve it in the router, or configure another method that keeps the address stable. A forwarding rule tied to a changing local address can silently point at the wrong device after a reboot or lease change.

2. Open the router’s port-forwarding page

Router labels vary by manufacturer. Look for a section named Port Forwarding, NAT, Virtual Server, or a similar term, then use instructions for your exact make and model. The official Mindustry guidance specifically recommends looking up model-specific forwarding directions because the interface is not uniform.

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

3. Create a rule for the selected port

Forward the chosen external port to the dedicated server’s stable local IP and the server’s listening port. If you kept the default, the example is 6567 to the server computer on 6567. If you changed the application to 5668, forward 5668 instead. Select both TCP and UDP; do not create a TCP-only rule.

Server setting Router external port Router destination Protocols
Default configuration 6567 Server computer’s local IP, port 6567 TCP and UDP
Example changed configuration 5668 Server computer’s local IP, port 5668 TCP and UDP
Any other administrator-selected value That selected value Server computer’s local IP and listening port TCP and UDP

4. Save, apply, and test from outside the network

Save the router rule and allow the router to apply it. Test with a player who is not connected to the same home network, or from another suitable remote connection. A test from inside the house can show that the server works locally without proving that the public forwarding path works.

Rank #3
Sale
LISEN Cell Phone Stand Phone Holder for Desk, Office Decor Gadgets for Men
  • Ergonomic & Adjustable Design: Fight "text neck" and improve your posture. Designed for comfort, it offers an adjustable height (7.1in-8.5in) (1.4in adjustable range) and angle (5°-85°) Please note: cell phone stand is only 9 inches tall—the length of a standard pencil
  • Without blocking subtitles Perfect for office desk Tiktok Face Time Zoom video—this is the ultimate kitchen desk essential for phones! Perfect viewing experience while reducing neck back strain, A must-have for gamers streamers desk, and anyone who values both style and support!
  • Sleek & Stable Design fits Otterbox Case: Say goodbye to bent cables, tangles, and tip-overs! LISEN’s stylish adjustable desk phone holder features a built-in charging hole and smart cable management, keeping your phone secure and your workspace clutter-free cool gadgets for men
  • ANTI-SLIP DESIGN free hands: The under 10.00 items easy gadgets back and the bottom of this kitchen essentials for women are fully covered by anti-skid silicone, which LISEN stand up desk decor can provide maximum protection device from any scratches and slides
  • Your Perfect Viewing Companion:If your product arrives damaged or breaks within 365 days, reach out to LISEN for a quick and hassle-free solution. Struggling with assembly, like tightening the screw? We’ve got your back! Your experience matters to us. (Product including: phone Holder stand*1, screw*1, hexagon screwdriver*1, specification*1)

If your router offers separate fields for external and internal ports, the simplest arrangement is to use the same selected number in both fields. Whatever mapping you choose, players must use the external port and the server must listen on the internal destination port.

Open the host and cloud firewalls

Operating-system firewall

Create inbound rules allowing the selected port for TCP and UDP on the computer running the server. With the default, that means 6567/TCP and 6567/UDP. After changing to 5668, allow 5668/TCP and 5668/UDP and remove or disable obsolete rules if they are no longer needed.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The exact clicks or commands depend on the operating system, so use its firewall’s inbound-rule interface rather than assuming that a router rule changes the host firewall. A packet can be forwarded correctly and still be discarded by the computer itself.

Cloud or VPS firewall

A server hosted on a virtual private server or another remote provider does not sit behind your home router, so there is no residential forwarding step. It still may have two firewall layers: the provider’s cloud firewall and the operating system’s local firewall. Allow the selected port for both TCP and UDP in each layer. The Hetzner Community example explicitly changes the firewall allowance when the server moves from 6567 to 5668.

Keep the values synchronized

Layer Default example Changed example Required protocols
Mindustry console config port 6567 (implicit default) config port 5668 Application setting
Home router Forward 6567 to the server Forward 5668 to the server TCP and UDP
Host firewall Allow 6567 Allow 5668 TCP and UDP
Cloud firewall, if present Allow 6567 Allow 5668 TCP and UDP
Player address <public-ip>:6567 <public-ip>:5668 Uses the reachable external port

How players connect

Use the in-game server form

  1. Open Mindustry and choose Play.
  2. Select Join Game.
  3. Choose Add Server.
  4. Enter the remote or public address in the form <ip-address>:<port>.
  5. Save the entry and select it to connect.

For the default, the format is <public-ip>:6567. For the example changed port, it is <public-ip>:5668. The Hetzner tutorial illustrates the format with 203.0.113.1:5668; 203.0.113.1 is a documentation example, not an address to copy for a real server.

Use the right address for the player’s location

  • Players on the same local network: they can use the server computer’s local address and selected port, provided the host firewall permits it.
  • Players outside the home: they need the home connection’s public address and the externally forwarded port.
  • Players joining a VPS: they use the provider-assigned public or remote address and the selected port opened in the provider and host firewalls.

Do not give remote players a private local address such as a home-only address; it is not routable from the public internet.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #4
Ledagic IC+RGBW USB Powered Led Light Bar with App & Remote Control, 2 Pack
  • Easy Installation: Our gaming lights have been designed to enhance your entertainment experience. Simply position the led light bar next to your TV or game console to create a game room environment with ease. They come with USB power and a 60 inch cord for direct mounting and mobility
  • Audio Syncing & Extensive Mode: The built-in high-sensitivity music sensor allows you to sync the TV led lights to your favorite music. Lights react and move to the beat of music, film and game audio, creating an incredible immersive sound and light experience – and all without the need for an additional hub. You can choose from 64+ patterns, including strobe, illusion, jump, energy, gradient, running, chasing, fluttering mode etc. Each mode can be applied to different scenes
  • 64+ Chasing IC+RGB & W Effect: The independent control design of IC+RGB and white all-in-one multifunctional rgbw led bar lights monitor backlight allows you to easily switch the led lights for desk between IC+RGB and white to enjoy a variety of lighting effects, you can choose white lighting mode with high brightness for better illumination when working, etc. Choose IC+RGB lighting mode when you need to create an entertaining atmosphere for the light show, 16 million colours of Color changing rgb light bar let you dance to the beat and create a dynamic party atmosphere
  • Dynamic and Dimmable Lights: 1%-full brightness free brightness adjustment gives you the flexibility to adjust dimmable led light bar for room decorations or a variety of occasions
  • USB Powered: USB light bars for room can be powered by powernank, usb charger, TV, Monitor, laptop PC mainframe, making behind TV led lighting bar easy to install in any location.TV led lights are powered by the TV usb interface / PC mainframe, can be turned on/off synchronously with TV / PC

Why friends cannot connect

“Can’t connect to host”

Work through the checks in this order:

  1. Confirm the dedicated server is running and has started a map with host <mapname> [mode].
  2. Run config port and write down the value it reports.
  3. Compare that value with the player’s address, the router’s external and internal destinations, and every firewall rule.
  4. Confirm that both TCP and UDP are allowed at the host firewall and, for a home server, the router.
  5. For a VPS, check the provider’s cloud firewall as well as the operating-system firewall.
  6. Verify that the router rule points to the server computer’s current local IP.
  7. Have the player retry with the correct public or remote address and port.

If any one layer still contains 6567 while the application is listening on 5668, the connection will be sent to the wrong endpoint. Correct the mismatch before changing unrelated game settings.

“Address already in use” or a port-in-use message

Another process may already be bound to the selected port, or a previous server process may still be running. On a system with the lsof utility, inspect the port with:

lsof -i :<port>

Replace <port> with the value you selected, such as 5668. Identify the process, then stop the stale process only if you are certain it is safe to do so. Alternatively, choose another unused port and repeat the configuration, firewall, forwarding, and client steps with that new value.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The server works on LAN but not for remote players

This pattern usually means the application and local firewall are working, while the public path is incomplete. Recheck the router’s destination IP, external port, and TCP/UDP selection. A dedicated server without router forwarding is reachable only by clients on the local network, as the Mindustry Wiki notes.

The server is not reachable even on the same network

Check that a game is being hosted, that the client is using the server computer’s current local IP, and that the host firewall allows the selected port. If the console reports a different port than the client entry, update the entry or the server configuration so they match.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Choose the right hosting arrangement

Arrangement Reachability Availability Network administration Main trade-off
In-game Host Multiplayer Game Best suited to a small LAN session Runs only while the game is open Minimal; it is not a separate dedicated service Not a 24/7 server
Dedicated server at home Local by default; public after router forwarding Depends on the home computer and connection staying online You control the router and host firewall Requires forwarding and exposes a residential public address
Dedicated server on a VPS or cloud host Uses the provider’s public or remote address Can remain online independently of a player’s desktop session You control provider and operating-system firewall rules Adds a recurring hosting decision and provider-specific administration

When a home server is appropriate

Home hosting can be practical when the hardware is already available and the group is comfortable managing a router and firewall. It requires a stable local destination and a forwarding rule, and the official wiki cautions that exposing a residential public IP has security implications.

Best Value
Sale
HUANUO FlowLift™ Dual Monitor Stand, Fully Adjustable Gaming Monitor Desk Mount for 13–32″ Computer Screens, Full Motion VESA 75x75/100x100 with C-Clamp & Grommet Base, Each Arm Holds 4.4 to 19.8 lbs
  • Compatible with Wide Screens - To ensure compatibility with the dual monitor mount, your each monitor must meet three conditions at the same time: First, computer screens size range: 13 to 32 inches. Second, screen weight range: 4.4 to 19.8 lbs. Third, the back of the monitor screen must have VESA mounting holes with a pitch of 75x75mm or 100x100mm.
  • Regarding the compatibility with desks - Your desk must meet three conditions at the same time: First, desk material: Only wooden desks are recommended, plastic or glass desks cannot be used. Second, desk thickness range: 0.59" - 3.54". Third, the bottom of the desk should not have any cross beams or panels, as this will interfere with installation. We recommend carefully checking that your desk and monitors meets all above conditions before purchasing.
  • Dual C-Clamp Hold - Worried your dual monitors might wobble or slip? Our upgraded base uses a larger platform plus a dual C-clamp structure to lock the dual monitor arm firmly to your desk. Each arm safely keeps your screens steady while you type, click and game—no shaking, no sliding, just a clean and secure setup you can trust every day. It also provides Grommet Mounting installation choice, both options ensure stable and secure fixation for your 0.59" - 3.54" desk.
  • Full-Motion Adjustment For Comfortable View - Pull the screen closer when you’re deep in a spreadsheet, push it back to watch videos, or rotate to portrait for coding — moving everything smoothly with just one hand. The monitor stand offers +85°/-50° tilt, ±90° swivel and 360° rotation. Raise your monitor up to 15.75″ to support a healthy sitting posture. Whether you’re working from home, gaming through the night, or switching between video calls and documents, getting the screens to your natural line of sight helps relieve neck, shoulder and back strain so you can stay focused longer with less fatigue.
  • Keep Your Desk Organized: By lifting both screens off the desktop, this dual monitor stand opens up valuable space for your keyboard, notebook, docking station or a simple, clutter-free work area. Built-in cable management guides wires along the arms, keeping cords out of sight and out of the way. Enjoy a tidy, modern workstation that looks as good as it feels to use.

When a VPS is more convenient

A remote server avoids residential router forwarding and can stay online independently of your desktop session. You still need to open the selected port in the provider’s firewall and on the server’s operating-system firewall. Administration shifts from a home router to the provider’s control panel and remote machine.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Do not confuse the in-game host with a dedicated server

The in-game Host Multiplayer Game option is intended for small LAN sessions and exists only while the game remains open. A dedicated server is a separate process designed to continue hosting without the full game client open.

Security and exposure considerations

Port forwarding makes a service on your home network reachable from the internet. The Mindustry Wiki warns that exposing a home public IP has security implications. Forward only the port you need, keep the server software and operating system maintained, and remove an old forwarding rule when the server is retired.

If you do not want to expose a residential address, the wiki suggests a VPN or a webhost/cloud service as alternatives. A VPN changes how invited players reach the server; a cloud host places the public endpoint away from the home network. Whichever option you choose, its firewall still needs the selected Mindustry port open for TCP and UDP.

Changing 6567 to another number can avoid a collision with an existing service, but it is not a substitute for access control or firewall hygiene. Treat the chosen value as a coordination setting, not as a security boundary.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Optional: use a DNS SRV record

A DNS SRV record can let players use a subdomain instead of typing an address with a port. MindustryServerList documents the _mindustry service with protocol tcp, a target host, and the selected port. This is optional; direct entry as <public-ip>:<port> works without DNS.

If you change the server from 6567 to another value, update the SRV record’s port as well. The record cannot repair a closed firewall or missing router rule; it only supplies a name-to-host-and-port mapping after the network path is available.

Port-change checklist

  • Run config port and note the active value.
  • If changing it, run config port <new-port> and verify again with config port.
  • Start a map with host <mapname> [mode].
  • Allow the selected port for TCP and UDP in the operating-system firewall.
  • For home hosting, forward the selected port to the server computer’s stable local IP for TCP and UDP.
  • For VPS hosting, allow the selected port in the provider’s cloud firewall and the host firewall.
  • Give players the public or remote address in <ip-address>:<port> form.
  • If a connection fails, compare the value in every layer before investigating other causes.
  • If the port is already in use, inspect it with lsof -i :<port> and stop a confirmed stale process or choose another unused value.

Sources and documented examples

The Mindustry Wiki’s current documentation, accessed October 15, 2026, identifies 6567 as the default and instructs administrators to allow it for TCP and UDP. It also explains that, without port forwarding, a dedicated server is limited to local-network clients and warns about exposing a residential public IP. A Hetzner Community tutorial demonstrates reading the default, changing it with config port 5668, verifying 5668, and updating firewall rules; its console transcript is dated August 7, 2024. MindustryServerList documents the optional _mindustry SRV service. The numbers in these examples are configuration values, not performance measurements or guarantees of connection quality.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

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

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More quests from Patch Notes

  1. How to Set Up a RedM (RDR2) Server in 2026: License Key, txAdmin and server.cfg, Step by StepBlog11min
  2. Best RedM (RDR2) Server Hosting in 2026: Comparing Four Hosts on Slots, Memory and PriceBlog10min
  3. How to Host a Mindustry Server in 2026: server-release.jar, Port 6567 and the Commands That MatterBlog7min
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Crashes, No Sound, or Screen Glitches?Free driver scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.