Redirecting to a game server

Connect with other users about what to run on your webhosting (and how to run it) here.
Post Reply
j0rd0n420
This is my homepage
This is my homepage
Posts: 157
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Mon Jul 07, 2008 1:47 pm

Redirecting to a game server

Post by j0rd0n420 »

Right now I have it set so that: mydomainname.net points to xxx.xxx.xxx.xxx which lets them connect to the server by typing in the domain name instead of IP. But what if I want to run two instances of the server on different ports and have like: server1.mydomain.net point to xx.xx.xx.xx on port 25565 and server2.mydomain.net point to xx.xx.xx.xx on port 25564

Thanks for any help.
User avatar
Edge100x
Founder
Founder
Posts: 13119
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Redirecting to a game server

Post by Edge100x »

DNS entries can only point to IPs and not to IP:Port combinations, unfortunately. You'll have to distribute the port along with your DNS specification when telling clients the address to use to connect.
j0rd0n420
This is my homepage
This is my homepage
Posts: 157
Joined: Mon Jul 07, 2008 1:47 pm

Re: Redirecting to a game server

Post by j0rd0n420 »

so like s1.mydomainname.net:25564 and s2.mydomainname.net:25565
?
User avatar
Edge100x
Founder
Founder
Posts: 13119
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Redirecting to a game server

Post by Edge100x »

If they're on the same IP, you'd just need one DNS for both -- s1.mydomainname.net, in your example. You could use two instead, though, if you wished.
j0rd0n420
This is my homepage
This is my homepage
Posts: 157
Joined: Mon Jul 07, 2008 1:47 pm

Re: Redirecting to a game server

Post by j0rd0n420 »

Thanks!
Post Reply