Welcome to The Forum

Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies and more

Valheim defaults to wrong port when using Custom Domains


Recommended Posts

I am using a domain I own to try and connect to my SurvivalServers Valheim server.  I've set up my DNS records as this wiki article explains.  However, the port assigned to my server (eg 12345) is not the default Valheim port (2456).  The Valheim client seems to make a DNS lookup for the appropriate IP, but then uses the default port (2456) if you haven't supplied one.  The result is that just using "my-domain.com" will make a request with the wrong port, skip my SRV record, and result in a "Failed to Connect" error.  I have to use "my-domain.com:12345" in order to connect to my server.  Is there any solution to this, such as changing my server's port to "2456" or forcing Valheim to not add the wrong port?

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.