DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowHalloween DealsAmazon USHalloween week deals: useful picks before month-endAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run Scan×
Skip to content
World desk10 min

Valheim Server Ports: What to Open and How to Forward Them

Forward UDP 2456 and 2457 for a default Steam-backend Valheim server, or forward your custom port and the next one. Crossplay uses a relay and avoids inbound router forwarding.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

For a default Steam-backend Valheim dedicated server, forward UDP ports 2456 and 2457 from your router to the computer running the server, and allow the server through that computer’s firewall. Valheim uses the configured -port and the immediately following port, so a different port setting changes the pair. Servers started with -crossplay use a relay backend and do not need inbound router port forwarding for players connecting from outside your network.

Which Valheim ports should you open?

The answer depends on the server backend and the value supplied to -port. Iron Gate’s official server guidance says, “The default Port Range that the Server uses is 2456-2457,” and clarifies that Valheim uses the specified port and specified port plus one.

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.
Server setup Ports to forward Protocol Inbound router forwarding needed? How players connect
Default Steam backend UDP 2456 and UDP 2457 UDP Yes, for players outside the local network Server list, or public address and configured port
Steam backend with a custom -port The configured port and the next port UDP Yes, for outside players Server list, or public address and configured port
Crossplay backend with -crossplay No inbound pair on the home router for outside access The server still has an internal configured port No, because access uses a relay backend Supported server-list or join-code flow

These are forwarding rules to the private address of the server computer, not rules aimed at another player’s device. The operating-system firewall must also permit the Valheim server executable or equivalent inbound UDP traffic.

Why Valheim uses two ports

A Valheim server does not use an arbitrary block of ports by default. It uses the number supplied to -port and the next consecutive number. With the default setting, -port 2456 produces the pair 2456 and 2457. Iron Gate’s guide describes this as “the specified Port AND specified Port+1.”

#1 Best Overall
Sale
TOZO A1 Wireless Earbuds Bluetooth 5.3 Light Weight in Ear Headphones | IPX5 Waterproof,2 Mics for AI Calls,Immersive Premium Sound Bass Headset with Charging Case,32 EQ via App Black
  • [Ultra-Lightweight Ear Buds Designed for Small Ears] Each earbud weighs only 3.7g and features a compact, ergonomic in-ear design made especially for small ears. Secure, low-profile, and comfortable for workouts, all-day wear or overnight sleeping.The ultra-slim profile sits flush in your ear with no hard edges poking or rubbing, so you can even sleep on your side without discomfort.
  • [Immersive Stereo Sound with TOZO OrigX Technology] TOZO OrigX tuning delivers clear vocals, balanced mids, and natural stereo sound for music, podcasts, and videos.
  • [Long Battery Life for Daily Use] Get up to 7 hours of playtime on a single charge, with up to 32 hours total using the charging case—ideal for workdays, commuting, and extended listening sessions.
  • [Bluetooth 5.3 & Stable Connection] Bluetooth 5.3 provides fast pairing, stable wireless performance, and reduced dropouts as you move around home or office.
  • [Deep Bass with Clear Vocals] High-performance drivers produce punchy bass while keeping vocals clean and detailed for everyday listening.

This relationship matters when you customize the command line. If you start the server with -port 30000, the forwarding destination is UDP 30000 and UDP 30001—not the default pair. A router rule for 2456-2457 will not match a server listening on 30000-30001.

The router’s external port and internal destination should normally use the same numbers. If your router presents separate fields for an external range and an internal range, enter the chosen port through the next port in both fields and select UDP. Point the rule at the server computer’s current private address.

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

Steam backend versus Crossplay relay

Steam backend

The default dedicated-server configuration uses the Steam backend. Players connecting from another network need a path through your router to the server machine, so you forward the two UDP ports and permit the server through the host firewall. The server can then appear in the appropriate server list, or players can use the public address and configured port when that connection method is supported by their client.

Crossplay backend

Adding -crossplay switches the server to a relay backend. Iron Gate states that, with this backend, “the server transmits data via a relay server and therefore does not require Port Forwarding to be accessible from outside of your local network.” In practical terms, you do not create inbound UDP 2456-2457 rules solely to let internet players reach a Crossplay server.

Rank #2
Sale
Smart Watch for Men Women Compatible with iPhone Samsung Android Phone 1.69 inch Full Touch Screen IP68 Waterproof Bluetooh Fitness Tracker Heart Rate/Sleep Monitor (Black)
  • 【IP68 Waterproof Multifunctinal Smart Watch】Torjalph fitness activity tracker smart watch is IP68 waterproof technology ,you can wear it when swimming,handwashing,it's rain-proof which means that you perform multiple exercise modes outside without worrying about sweat or rain corroding your fitness smart watch,and this watch equipped with a 230 mAh large capacity battery magnetic charging ,and this sports activity tracker watch can be used 5-7 days If fully charged.
  • 【Larger 1.83'' Full Screen Watch & Multi-dial Selection】1.83 inch full HD color touch screen smart watch for men / women provides excellent 240*284 resolution image quality ,This Bluetooth smart watch offers a better touch experience and remarkable immersion and ,more than 200 watch faces for you to choose from App"Da Fit ", you can change the dial style according to your mood to wear keeping the world on your wrist
  • 【Accurate Activity Tracker Smart Watch 】sports watch activity tracker uses sweat and dust resistant breathable silicone strap, our Fitness Tracker Smart Watch for Android iOS Phones supports 12 sports modes,walking,running,bicycle,swimming,badminton,basketball,football,rope skipping. This bluetooth calls smart watch for men women is lightweight and stylish, bringing more convenient and relaxing sports experience while also providing more protection.
  • 【Your 24 Hour Personal Daily Health Monitor】Fitness watch for women men full touch screen IP67 waterproof bluetooth smartwatch for Android iOS Phones with heart rate blood pressure monitor multifunction Andriod smart watch with steps counter sleep monitor sports fitness watch, monitoring blood oxygen saturation allows you to understand your physical condition in real time to track fitness progress ,to know your health status in time.
  • 【More Functions Bluetooth Call Smart Watch】This fitness activity smart watch full screen for iPhone and Android phones includes a bunch of new features including:The bluetooth smart watch can hang up the phone, receive and display WhatsAPP /Text /Facebook /Twitter /Messenger reminder.Support sedentary reminder, alarm clock, stopwatch, timer,weather information,music control, remote camera control compatible with Android 5.0 and above or iOS 9.0 and above smartphones.

Crossplay also changes who can participate: players on other supported platforms can join when Crossplay is enabled and the server is advertised through the supported server-list or join-code flow. The relay exception is about external routing. The server still runs with a configured port on the host computer, and the operating-system firewall still has to allow the server process to run. Local-network connectivity and any host-side firewall policy remain separate from the router-forwarding question.

What to decide before changing the router

  • Backend: Choose the Steam backend if you intend to use conventional direct access; choose -crossplay if the relay and cross-platform join flow meet your needs.
  • Port: Keep the default 2456 unless you have a reason to change it. Record the exact value in the launch command.
  • Host machine: Identify the computer that will stay online while others play. Forwarding to a laptop or desktop whose address changes will eventually break the rule.
  • Local address: Create a DHCP reservation in the router, or configure another stable private address, so the destination remains the same after reboots.
  • Firewall: Be ready to approve the Valheim server executable on Windows or create equivalent inbound UDP rules on Linux.
  • Internet path: Confirm that your internet connection accepts inbound connections. Carrier-grade NAT at the ISP can prevent a home router from receiving unsolicited IPv4 traffic even when local settings are correct.

How to forward the default Steam ports

Router interfaces differ by manufacturer and firmware. Iron Gate does not publish one click-by-click procedure for every model; its guidance directs operators to the router manual. The following sequence describes the network logic and the values to enter, while leaving menu names to your device.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
  1. Start with the intended command. Launch the dedicated server using -port 2456 for the default pair. Decide whether -crossplay is present before creating NAT rules. If you change the command later, revisit the forwarding rule.
  2. Find the host’s private address. On the router, inspect the connected-device or DHCP-client list and identify the computer running the server. Verify the address from the host as well if necessary. Reserve that address in DHCP so a reboot does not assign a different destination.
  3. Open the NAT or port-forwarding page. Routers may call this section Port Forwarding, Virtual Server, NAT Rules, or a similar name. Create a new rule for the server computer.
  4. Enter the first rule. Set the protocol to UDP, use external port 2456 and internal port 2456, and set the destination to the host’s private address.
  5. Enter the second rule. Set UDP 2457 to the same private address, using 2457 as both the external and internal port. Some routers accept a single range rule; if yours does, use 2456-2457 and UDP. If it requires individual entries, create two rules.
  6. Save and apply. Some firmware applies changes immediately; others require an Apply, Save, or router restart. Confirm that both rules remain enabled after the configuration page reloads.
  7. Allow the server through the host firewall. On Windows, accept the firewall prompt for the dedicated server when it appears, or add an inbound exception for the server executable and the relevant UDP traffic. On Linux, add equivalent inbound UDP rules for 2456 and 2457 in the firewall system you use.
  8. Keep the server running for the test. A forwarding rule cannot reach a process that is stopped. Start the server with the same command used when you created the rules and wait until it has finished starting.
  9. Test from outside the home network. Ask a friend on another connection to find the server, or test using a device that is not on your home Wi-Fi. A test from the host itself or from the same LAN does not prove that internet-side forwarding works.

Using a custom port

A custom port is valid as long as the command line and router agree. Suppose your launch command contains -port 28000. The required forwarding pair is UDP 28000 and UDP 28001, directed to the server computer. The firewall allowance must cover the same traffic, and players who use a direct address must use the configured port rather than assuming 2456.

Command-line setting Forward these UDP ports Common mistake
-port 2456 2456 and 2457 Forwarding only 2456
-port 28000 28000 and 28001 Leaving old 2456-2457 rules in place while the server listens elsewhere
-port 31010 31010 and 31011 Using the next port from memory instead of calculating configured port plus one

When troubleshooting, read the actual startup command or script rather than relying on the number you intended to use. A saved shortcut, service file, or host-panel setting may still contain an older value.

Rank #3
New Bee Guitar Cable 10ft Electric Instrument Bass AMP Cord
  • [Low Noise High Fidelity] New bee guitar cord with 22AWG oxygen-free-copper center conductors provides enhanced signal transfer, the PVC insulation material and the high-density stranded copper double shield provide noise rejection for quiet operation
  • [Ideal for Choice] New bee 1/4 straight and right angle metal connectors, ensures a secure connection in any instrument, pedal, or amp jack. L shape great fro on stage guitar stands
  • [Wide Compatible] Suitable for mixer, power amplifier, microphone, effector, decoder, equalizer, electoronic organ, electric guitar, electric bass and other electronic equipments. Widely used in the installation of smart home, karaoke speaker, professional stage audio, etc
  • [Easy Disassemble] Making incidental repairs quick and easy! Very nice, flexible cable
  • [Dont Hesite to Order] 24 hours customer services and professional technology team are standing by

Firewall rules are separate from port forwarding

Port forwarding changes the router’s destination; it does not override the firewall on the computer receiving the traffic. Both layers must permit the connection.

Windows

When Windows asks whether to allow the dedicated server through the firewall, approve the prompt for the networks on which you intend to host. If the prompt was dismissed, create an inbound rule for the Valheim server executable or for the configured UDP ports in Windows Defender Firewall with Advanced Security. Check that the rule is enabled and applies to the active network profile.

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

Linux

Use the firewall framework configured on the host and allow inbound UDP traffic for the configured port and its successor. The exact commands differ among distributions and firewall managers, so use the distribution’s documented syntax. The important checks are that the rules are active, attached to the correct interface, and still present after reboot.

What not to infer

The documented forwarding requirement is for UDP 2456 and 2457 by default. Do not create broad all-port rules when two specific UDP entries are sufficient. Do not assume that opening a port in the host firewall automatically creates a router NAT rule, or that a router rule bypasses an operating-system block.

Rank #4
BSIMB 15.6" Digital Family Calendar & Chore Chart, No Subscription Fees
  • Digital Family Calendar: BSIMB digital calendar wall touch screen puts an end to your chaotic life. Designed for busy families, the digital calendar keeps you organised and in step with your family. Assign different colours and tasks to each family member to make family scheduling easier and more intuitive.
  • Easy Setup and Auto-Sync: Plug in, connect to WLAN and auto-syn your electric calendar in minutes. Digital wall calendar compatible with Google calendar, iCloud calendar, Outlook calendar, Cozi calendar and Yahoo calendar. Add events directly on the device or through the ecalendar app. Electronic calendar stays current whether you're at work or traveling—no manual updates needed.
  • All-In-One Home Assistant: Smart calendar builds habits and encourage independence with personalised chores. Display daily meal plan to reduce the daily ‘What's for dinner?’ stress. To-do lists keep track of everything you want. Turning chores into valuable achievements with stars and rewards, making life easier and more enjoyable.
  • Manage Anytime Anywhere: BSIMB electronic calendar for family stay connected with the powerful ecalendar app. Access and manage your digital wall calendar anytime, anywhere with free features like stars & rewards, photo screensaver, chore charts, meals plans, to-do lists etc. Electronic planner paid features like Magic Import tailor advanced tools for users with special needs.
  • Stay in Touch with Loved Ones: Share photos or videos from your phone to electronic wall calendar with app, instantly update your life moment, and keep in touch with your family, especially those who are far away; you can also surprise your smart calendar digital wall by sending him a wish card; it's also great for keeping tech-illiterate elders in touch with the youngsters.

How players connect after forwarding

Steam-backend players

Have players look for the server in the game’s server list, or use the public address and configured port when the direct-address method is available to them. The address they use from the internet is the home connection’s public address, not the private address such as 192.168.x.x or 10.x.x.x that you entered as the forwarding destination.

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

Do not test internet access by entering the private address from outside the LAN. Conversely, some routers do not support reliable “hairpin” access when a player inside the same home network tries the public address. A separate outside connection is a more meaningful test of the inbound path.

Crossplay players

For a server started with -crossplay, use the supported server-list or join-code workflow. The relay architecture is the reason an inbound home-router rule is not required for outside players; it is not a different way to enter the private host address.

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

Troubleshooting: a connection-failure checklist

Work from the server outward. Changing several settings at once makes it harder to identify the failed layer.

The server is not visible to anyone

  • Confirm the dedicated-server process is running and completed startup.
  • Read the launch command and verify the configured -port value.
  • Check that the server is using the backend you intended. A Crossplay server follows the relay join flow rather than the ordinary direct-forwarding test.
  • Verify the host firewall permits the executable or the matching UDP ports.

Local players can join, but internet players cannot

  1. Compare the router rule’s destination with the host’s current private address. If the address changed, restore the DHCP reservation or update the rule.
  2. Confirm that both ports are present: the configured port and the immediately following port.
  3. Check that the router rules specify UDP, not a different protocol selection.
  4. Make sure the server command and router values still match after any configuration edit.
  5. Test from a genuinely external network. A successful LAN connection only proves that the server process is reachable locally.
  6. Investigate ISP-level NAT. If the router’s internet-facing address is not directly reachable because the ISP places customers behind carrier-grade NAT, local forwarding cannot create an inbound path. Contact the ISP or use a managed hosting option.

Players connect briefly and then fail

Check for an unstable host machine, changing private address, or firewall rules that apply only to one network profile. Confirm the server remains running during the attempt and that the router has not reverted or disabled the NAT entries after a restart.

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

A custom-port server fails while the default setup worked

Calculate the pair from the actual command: if the value is N, forward UDP N and N+1. Remove ambiguity by recording the value in the launch script and matching it in the router and firewall. Players using a direct address must also use the configured port.

Home hosting, Crossplay, and managed hosting compared

Consideration Steam backend at home Crossplay relay at home Rented or managed Valheim server
Router work Forward the configured UDP port and the next port No inbound forwarding for outside access Usually handled through the provider’s control panel or support process
Host availability Your computer and connection must remain online Your computer and connection must remain online Provider operates the server hardware and network
Platform reach Steam-backend participation Cross-platform participation when enabled appropriately Depends on the backend and configuration you select
Addressing Server list or public address and configured port Supported server list or join code Provider-supplied address or join method
Main limitation Router, firewall, and ISP NAT can block access Relay behavior and supported join flow determine access Recurring cost and reliance on the provider

Rented or managed hosting is a practical alternative when you cannot alter the home router, the ISP uses carrier-grade NAT, or you do not want to keep a personal computer powered on. It removes much of the home-network administration but introduces a service cost and a separate provider relationship. Check the host’s backend, platform support, port controls, backups, and access method before moving a world.

Security and maintenance practices

  • Forward only the required UDP pair instead of exposing unrelated services.
  • Keep the destination on a stable private address so the rule does not silently point at another device.
  • Document the exact -port value and whether -crossplay is enabled.
  • Review the firewall rule after operating-system updates or network-profile changes.
  • Remove obsolete forwarding entries when you retire a server or change its port.
  • Do not publish your private LAN address to internet players; it is the router’s destination, not the public connection address.
  • If your ISP changes the public address periodically, use the connection method supported by your server list or a suitable address-discovery arrangement rather than changing the private forwarding target.

Quick reference

Question Answer
What are the default Valheim server ports? UDP 2456 and UDP 2457 for the default Steam backend.
What if I change -port? Forward the chosen port and the next consecutive port.
Do I need TCP? The documented forwarding guidance specifies UDP for the server port pair.
Does -crossplay need router forwarding? No inbound router forwarding is required for outside access through the relay backend.
Where should the rule point? At the stable private address of the computer running the dedicated server.
What if forwarding is correct but nobody can connect? Check the server process, command-line port, destination address, UDP protocol, host firewall, and ISP carrier-grade NAT.

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.

Leave a Reply

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

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.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
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.