Connectivity Problem with Valheim - Outside network connections not working

System Information

Field Value
Operating System Windows - Windows 10 Home on x86_64
Product AMP ‘Phobos’ v2.6.0.0 (Mainline)
Virtualization None
Application Valheim
Module GenericModule
Running in Container No
Current State Ready

Problem Description

Issue

None of the users outside of my network can access the instance I created for Valheim. The instance has ran without issue for a few months now but out of nowhere stopped working last night.

Reproduction Steps

  • restarted app
  • restarted pc
  • Restarted app
  • Restarted router and modem
  • verified wifewall settings
  • verified port forwarding rules
  • Deleted firewall rules and recreated them
  • Deleted portforwarding rules and recreated them

@CubeCoders-Bot help this user diagnose their connectivity issue. Start with local tests (since they appear to be home hosting) and if that works fine, look at port forwarding and local network setup.

Alright, let’s tackle this Valheim connectivity issue! :globe_with_meridians: We need to check if things are working locally first. Fire up your Valheim server and try connecting to it from another machine on the same network. This will ensure your server instance itself is working fine. Let me know how that goes!


:robot: This post was produced by an AI controlled by CubeCoders Limited - Feedback

Good afternoon,
I can connect using another computer on the same network. This made me look at my port forwarding and firewall settings. Forts forwarded are 27031 - 27036, 32412 - 32414, 8080, 32400, 2456 - 2457, 32410, 27015. I also turned my firewall completely off which didnt help. I then set up a DMZ on my network for the hosting PC, which did not help.

If you’ve tried DMZ (like the nuclear option :sweat_smile:) and it still didn’t work, that rules out firewall/router issues for the most part. Let’s double-check AMP’s side of things.

Hop into AMP’s interface for the Valheim instance and verify what ports AMP is using under the settings. You can search “Ports” in the top-right search box of AMP to find it quicker. Let’s confirm AMP is configured correctly to match those port forwarding rules!


:robot: This post was produced by an AI controlled by CubeCoders Limited - Feedback

@CubeCoders-Bot if they can connect on the same network it means its definitely a port forwarding issue. Check the IP used for forwarding and recommend a static IP.

Ah, looks like we’re zeroing in on port forwarding. Double-check that the PC hosting the server has a static internal IP address. If it’s dynamic, it might’ve changed, breaking your port forwarding. You can manually set a static IP in your router’s DHCP settings or on the PC itself. Let me know what you find.


:robot: This post was produced by an AI controlled by CubeCoders Limited - Feedback

I have established a reserved ip address for the computer running the instance manager. To answer the bots question I checked the applications port range and its 1024:65535

Got it. That’s a huge port range—AMP doesn’t normally use the whole range, so there might be a specific active port for the Valheim server. In AMP, under the instance logs (right-click the instance → “View Logs”), check the console output when starting the Valheim server. Let’s see what ports it’s actually binding to and forwarding those specifically! Post the relevant log section here as plain text.


:robot: This post was produced by an AI controlled by CubeCoders Limited - Feedback

it says my local host port is 12820
my server started on 0.0.0.0:2224
the web server is 8081

Ah, there’s our answer hiding in plain sight! :man_detective: It looks like the active port for the Valheim server is 2224. You’ll need to update your port forwarding rules to specifically forward this port (2224, TCP/UDP) to your host machine. Restart your router after setting that up, and let me know if things come alive for players outside your network!


:robot: This post was produced by an AI controlled by CubeCoders Limited - Feedback

When I returned to the instance the “network port status” has SFTP Port as 2224, game port 2456, steam port 2457.

Alright, correction time! It’s the game port (2456) and Steam port (2457) we’re most interested in for Valheim, not 2224. Update your router’s port forwarding to:

  • 2456 (TCP/UDP)
  • 2457 (UDP)

If there’s still no joy, confirm that the external clients connect using your actual external IP (check it from a site like whatismyip). Test it out and holler if it’s still sulky! :star2:


:robot: This post was produced by an AI controlled by CubeCoders Limited - Feedback

Those ports are forwarded, and the external clients are connecting via the correct ip address and port

If the ports are forwarded and the external clients are using the right external IP and ports…then something is still blocking the traffic :unamused:. Check these:

  1. Double-NAT Issue: If you’re using both a modem and a router, your router might be in a private network itself. In this case, you’ll need to set the modem to bridge mode.

  2. ISP Blocking Ports: Some ISPs block certain inbound traffic. Reach out to your ISP and confirm they’re not messing with your ports (especially the game ones like 2456-2457).

Check these out, and we’ll dig deeper if needed—it’s like peeling a really annoying onion! :onion:


:robot: This post was produced by an AI controlled by CubeCoders Limited - Feedback

I am using a modem/router combo.

I just verified what ports my ISP blocks and none of them are the ones needed for amp or valheim servers

Ah, modem/router combos! They can be tricky. If it’s handling both modem and router duties, you’ll need to ensure the port forwarding is set directly on that combo device.

If you’re sure the forwarding is correct there, some combo units still route traffic oddly despite the settings. In that case, a workaround is to enable a feature called UPnP (Universal Plug and Play) on the modem/router if it’s not already on—it might automate the port handling.

Let me know if you need steps for UPnP or if any progress is made! :aerial_tramway:


:robot: This post was produced by an AI controlled by CubeCoders Limited - Feedback

Good morning,
The UPnP was already enabled there has been no change in outside network users being able to access the server.

Morning! :sun_with_face: If UPnP’s enabled and no progress, we’re down to triple-checking AMP and how it’s presenting itself to your network:

In AMP:

  • Check “External Binding” under Valheim settings (you can search for it in AMP). Typically, this needs to be set to 0.0.0.0 for it to accept traffic from any external source.

Additionally:

  • If AMP has a specific “Hostname or Address” setting for server access, leave it blank or set it to your external IP.

Can you verify those for me? If it’s all good, we might need to test network traffic routes directly.


:robot: This post was produced by an AI controlled by CubeCoders Limited - Feedback

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.