I purchase a root server from a hosting company and I get more ram then I have room for. Thus I want to start a second server on the same machine. I do not however want people to have to connect to it with something like 'server.domain.com:25564'. Somehow I want to have 2 different servers running on the same machine both using 25565. Here are two ways I think this might be possible.
Domain name pointing to specific port. I doubt this is doable, but if there was a way to point 'server.domain.com:25565' to '32.51.948.2:25564', then I wouldnt need to do any funny buisness with multiple IP addresses.
Multiple IP adresses. I think this is the more likely answer, but I am unsure how it works. My host allows me to buy an additional IP adress, but how would I use it? Could I simply put the second IP in the server-ip= node from the server.properties? Does anyone know how to route a minecraft server to a different IP on the same machine?
Please read through the whole post. Its even in the title. I want the two servers to be on the same port.
Heres a quote, "I do not however want people to have to connect to it with something like 'server.domain.com:25564'"
I cannot simply change the port because that would result in what I said above. I want both servers to be connectable via the port 25565
Minecraft 1.3 supports SRV records. What you could do is have both servers on the same IP with different ports and different names in the DNS. Once a SRV record is set up for the server that is on the non-standard port, the client will see this info and automagically send the connection to the correct port without it having to be entered in manually.
Search the forum for SRV, there has been a few threads on these.
But otherwise, no, it's impossible to have multiple servers running on the same port, and a standard DNS record does not do redirects, it just returns an IP address. It's up to the client to specify the port to connect to and request additional info from a SRV record.
Custom Record format
An SRV record has the form:
_minecraft._tcp.name TTL class SRV priority weight port target
name: the domain name for which this record is valid.
TTL: standard DNS time to live field.
class: standard DNS class field (this is always IN).
priority: the priority of the target host, lower value means more preferred.
weight: A relative weight for records with the same priority.
port: the TCP or UDP port on which the service is to be found.
target: the canonical hostname of the machine providing the service.
If your DNS provider asks for service, put in _minecraft and if it asks for proto or protocol, put in _tcp.
For example, if your MC Server was hosted on 184.108.40.206:27165 An example SRV record in textual form that might be found in a zone file might be the following:
_minecraft._tcp.mc 3600 IN SRV 0 5 27165 mcsrv.kingdomland.com.
mcsrv IN A 220.127.116.11
This points to a server named mc.kingdomland.com redirecting to a Minecraft server running on 18.104.22.168:27165 The priority given here is 0, and the weight is 5.
As in MX records, the target in SRV records must point to hostname with an address record. Pointing to a hostname with a CNAME record is not a valid configuration.