NEW! Xbox and Steam servers for Palworld.. Use Coupon PALWORLD, take 20% off Click here to order now at SurvivalServers.com
Difference between revisions of "How to Set a Custom Domain to Connect to a Valheim Server"
Jump to navigation
Jump to search
Share your opinion
(25 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | If you want an easier method of joining your Valheim server without typing in that pesky ip:port each time (and remembering which port was which) you can set a custom domain or subdomain for your Valheim server to connect. | + | If you want an easier method of joining your Valheim server or Xbox server without typing in that pesky ip:port each time (and remembering which port was which) you can set a custom domain or subdomain for your Valheim server to connect. |
Similar to Minecraft, this method binds a port to a subdomain and allows your players to easily use the Direct Connect within the game to connect. Example: | Similar to Minecraft, this method binds a port to a subdomain and allows your players to easily use the Direct Connect within the game to connect. Example: | ||
− | [[File: | + | [[File:Enter in Subdomain from Join IP Button in Valheim.png|375px]] |
− | |||
− | This | + | == The Method == |
+ | |||
+ | This guide assumes you own a domain and will be utilizing Cloudflare for your DNS settings. | ||
# Go to [https://www.cloudflare.com/ Cloudflare] and sign up for an account, you will use your domain and fully set it up | # Go to [https://www.cloudflare.com/ Cloudflare] and sign up for an account, you will use your domain and fully set it up | ||
− | |||
# Go to the DNS link at the top of your Cloudflare domain page | # Go to the DNS link at the top of your Cloudflare domain page | ||
+ | #:[[File:Cloudflare DNS Settings.png|700px]] | ||
+ | # The above picture is a completed setup for play.sphing.com (our test subdomain) | ||
+ | # Do not copy the above settings, follow the steps below to configure your domain! | ||
− | + | === Using a Subdomain (play.mydomain.com) === | |
− | |||
− | == Using a Subdomain (play.mydomain.com) == | ||
# Click the Add record button | # Click the Add record button | ||
− | |||
# Set the following: | # Set the following: | ||
− | + | #:*Type - A | |
− | * Type - A | + | #:*Name - play.mydomain.com |
− | * Name - mydomain.com | + | #:*To get your IPv4 Address, you will want to go to your Survival Servers game server panel and copy the IP as seen here: |
− | + | #::[[File:Finding IP at Survival Servers Control Panel.png|390px]] | |
− | To get your IPv4 Address, you will want to go to your Survival Servers game server panel and copy the IP as seen here: | + | #:*IPv4 address: 216.250.254.30 (in this case, your case will be different so ''change this accordingly'') |
− | + | #:*Uncheck the Proxy status | |
− | [[File:Finding IP at Survival Servers Control Panel.png| | + | #::[[File:Uncheck Cloudflare Proxy Status.png|200px]] |
− | |||
− | * IPv4 address: 216.250.254.30 (in this case, your case will be different so ''change this accordingly'') | ||
− | |||
− | * Uncheck the Proxy status | ||
− | |||
− | [[File:Uncheck Cloudflare Proxy Status.png| | ||
− | |||
# Click Save, you've now added the subdomain record pointing to your game server's IP address. | # Click Save, you've now added the subdomain record pointing to your game server's IP address. | ||
− | |||
# Click Add record again, now we will add the Port configuration | # Click Add record again, now we will add the Port configuration | ||
− | |||
# Set the following | # Set the following | ||
− | + | #:*Type: SRV | |
− | * Type: SRV | + | #:*Name: play (for example we will use play.mydomain.com so we enter '''play''' here) |
− | + | #:*Service: _valheim | |
− | * Name: play (for example we will use play.mydomain.com so we enter '''play''' here) | + | #:*Protocol: TCP |
− | + | #:*TTL: Auto | |
− | * Service: _valheim | + | #:*Priority: 0 |
− | + | #:*Weight: 0 | |
− | * Protocol: TCP | + | #:*Port: 2456 (copy Game Port from your game server panel, see image below to get Game Port) |
− | + | #::[[File:Copy Game Port from Game Server Panel.png|450px]] | |
− | * TTL: Auto | + | #:*Target: play.mydomain.com (change '''play''' to your subdomain name, change '''mydomain.com''' to your domain name) |
− | |||
− | * Priority: 0 | ||
− | |||
− | * Weight: 0 | ||
− | |||
− | * Port: 2456 (copy Game Port from your game server panel, see image below to get Game Port) | ||
− | |||
− | [[File:Copy Game Port from Game Server Panel.png| | ||
− | |||
− | * Target: play.mydomain.com (change '''play''' to your subdomain name, change '''mydomain.com''' to your domain name) | ||
− | |||
# Click Save, you have now set a subdomain to your Valheim server! | # Click Save, you have now set a subdomain to your Valheim server! | ||
+ | === Using a Domain (mydomain.com) === | ||
+ | # '''IMPORTANT:''' Check if there is an existing A record (the Type column) for mydomain.com (assuming mydomain.com is the custom domain you wish to use) and delete it | ||
+ | # Click the Add record button | ||
+ | # Set the following: | ||
+ | #:*Type - A | ||
+ | #:*Name - mydomain.com | ||
+ | #:*To get your IPv4 Address, you will want to go to your Survival Servers game server panel and copy the IP as seen here: | ||
+ | #::[[File:Finding IP at Survival Servers Control Panel.png|390px]] | ||
+ | #:*IPv4 address: 216.250.254.30 (in this case, your case will be different so ''change this accordingly'') | ||
+ | #:*Uncheck the Proxy status | ||
+ | #::[[File:Uncheck Cloudflare Proxy Status.png|200px]] | ||
+ | # Click Save, you've now added the subdomain record pointing to your game server's IP address. | ||
+ | # Click Add record again, now we will add the Port configuration | ||
+ | # Set the following | ||
+ | #:*Type: SRV | ||
+ | #:*Name: mydomain.com (for example we will use mydomain.com so we enter '''mydomain.com''' here) | ||
+ | #:*Service: _valheim | ||
+ | #:*Protocol: TCP | ||
+ | #:*TTL: Auto | ||
+ | #:*Priority: 0 | ||
+ | #:*Weight: 0 | ||
+ | #:*Port: 2456 (copy Game Port from your game server panel, see image below to get Game Port) | ||
+ | #::[[File:Copy Game Port from Game Server Panel.png|450px]] | ||
+ | #:*Target: mydomain.com (change '''mydomain.com''' to your domain name) | ||
+ | # Click Save, you have now set a domain to your Valheim server! | ||
− | + | == Joining a Valheim Server With a Custom Domain (or Subdomain) == | |
Follow these steps to join your newly created domain (or subdomain) to your Valheim server. | Follow these steps to join your newly created domain (or subdomain) to your Valheim server. | ||
# Start the game and click the Start Game button | # Start the game and click the Start Game button | ||
− | |||
# Select a character from the character selection screen and click Start | # Select a character from the character selection screen and click Start | ||
− | |||
# Click on the Join Game tab at the top | # Click on the Join Game tab at the top | ||
− | |||
# Click the Join IP button and type in your domain (or subdomain) | # Click the Join IP button and type in your domain (or subdomain) | ||
− | + | #:[[File:Enter in Subdomain from Join IP Button in Valheim.png|375px]] | |
− | [[File:Enter in Subdomain from Join IP Button in Valheim.png| |
Latest revision as of 06:27, 15 March 2023
If you want an easier method of joining your Valheim server or Xbox server without typing in that pesky ip:port each time (and remembering which port was which) you can set a custom domain or subdomain for your Valheim server to connect.
Similar to Minecraft, this method binds a port to a subdomain and allows your players to easily use the Direct Connect within the game to connect. Example:
Contents
The Method
This guide assumes you own a domain and will be utilizing Cloudflare for your DNS settings.
- Go to Cloudflare and sign up for an account, you will use your domain and fully set it up
- Go to the DNS link at the top of your Cloudflare domain page
- The above picture is a completed setup for play.sphing.com (our test subdomain)
- Do not copy the above settings, follow the steps below to configure your domain!
Using a Subdomain (play.mydomain.com)
- Click the Add record button
- Set the following:
- Click Save, you've now added the subdomain record pointing to your game server's IP address.
- Click Add record again, now we will add the Port configuration
- Set the following
- Type: SRV
- Name: play (for example we will use play.mydomain.com so we enter play here)
- Service: _valheim
- Protocol: TCP
- TTL: Auto
- Priority: 0
- Weight: 0
- Port: 2456 (copy Game Port from your game server panel, see image below to get Game Port)
- Target: play.mydomain.com (change play to your subdomain name, change mydomain.com to your domain name)
- Click Save, you have now set a subdomain to your Valheim server!
Using a Domain (mydomain.com)
- IMPORTANT: Check if there is an existing A record (the Type column) for mydomain.com (assuming mydomain.com is the custom domain you wish to use) and delete it
- Click the Add record button
- Set the following:
- Click Save, you've now added the subdomain record pointing to your game server's IP address.
- Click Add record again, now we will add the Port configuration
- Set the following
- Type: SRV
- Name: mydomain.com (for example we will use mydomain.com so we enter mydomain.com here)
- Service: _valheim
- Protocol: TCP
- TTL: Auto
- Priority: 0
- Weight: 0
- Port: 2456 (copy Game Port from your game server panel, see image below to get Game Port)
- Target: mydomain.com (change mydomain.com to your domain name)
- Click Save, you have now set a domain to your Valheim server!
Joining a Valheim Server With a Custom Domain (or Subdomain)
Follow these steps to join your newly created domain (or subdomain) to your Valheim server.
Share your opinion