Skip to content

How to Valheim Server Port Configuration DigitalOcean AWS Azure and GCP

Zerobandwidth edited this page Nov 1, 2021 · 1 revision

Test your ports after you have set everything up with: https://geekstrom.de/valheim/check/

AWS:

  1. Configure Networking
* Once Ubuntu is up and ready, select it, and click the Security tab. 
  1. Networking tab, add firewall rule to allow ports 2456-2458. (this will be all three ports)
* Open port 2456-2458 to enable Valheim clients access to the server.
* Application: (Custom)
* Protocol: TCP/UDP
* Port Range: 2456-2458 
  1. Also ensure SSH is added as well.
* Application: SSH
* Protocol: TCP (default)
* Port Range: 22 (default)

Azure:

After creating your Azure VM, shutdown it down HARDCORE, just softly.

* Go to "All resources"

* Click the network card that is assigned to your server.

* Click on "IP Addresses"

* Enable "Public IP address"

* Click on configuration of the public ip address.

* Change the public ip address to static. IP address will be automatically assigned

* Save settings and go back to All resources

* Click on the network security group that is bound to the network card

* Click on inbound security rules

* Add: Any/2456, Any/2457, Any/2458

* Click on outbound security rules

* Add: Any/2456, Any/2457, Any/2458

* Start your vm

Google Cloud Platform:

Thumbnail

DigitalOcean:

Thumbnail

edit 50-cloud-init.yaml
vi /etc/netplan/50-cloud-init.yaml
remove private IP address on eth0 (might be 10.10.something - do not remove your public IP the same one you use to SSH into the server or access it)
netplan apply
reboot

DigitalOcean Example:

    eth0:
        addresses:
        - 12.345.678.9/24                 <---whatever this is leave it alone
        - 10.10.0.7/19                    <---Remove this
        gateway4: 46.101.192.1            <---Do not Touch
        match:                            <---Do not Touch
            macaddress: f6:0b:60:97:61:d5 <---Do not Touch
        nameservers:                      <---Do not Touch
            addresses:                    <---Do not Touch
            - 67.xxx.xx.xx                <---Do not Touch
            - 67.xxx.xx.xx                <---Do not Touch
            search: []                    <---Do not Touch
        set-name: eth0                    <---Do not Touch
    eth1:                                 <---Do not Touch
        addresses:                        <---Do not Touch
        - 10.114.0.9/20                   <---Do not Touch

Home PFSENSE:

Log into pfSense Click on Firewall and NAT from the dropdown Click on the Add button Configure the following settings:

    • Interface: WAN
    • Protocol: TCP/UDP <--- Very important!!
    • Destination: WAN Address
    • Destination Port Range: From: Other 2456 To: Other 2458
    • Redirect Target IP: Insert local IP of Valheim server
    • Redirect Tartet Port: Other 2456
    • Description: Valheim Server

Click Save Click Apply Settings