Jump to content

  • Curse Sites
Become a Premium Member! Help
Latest News Article

2 Servers, One Machine, One Port

multiple server servers port same 25565

  • Please log in to reply
8 replies to this topic

#1

gustebeast

Posted 01 October 2012 - 02:44 PM

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?

Register or log in to remove.

#2

Munkeywaxx
  • Location: United Kingdom, Cornwall
  • Minecraft: Munkeywaxx
  • Xbox:iMunkeywaxx

Posted 01 October 2012 - 02:50 PM

yes, you can have 2 servers running off the same machine.
no you cant connect 1 domain to 2 server addresses.

the 2 servers i know of that can run on the same machine are the vanilla server and bukkit server.

keep the vanilla server port at 25565
and change the bukkit port

should work  :)

Need help with permissions? Look no further - Twitch.tv/Munkeywaxx -

Posted Image


#3

gustebeast

Posted 01 October 2012 - 03:51 PM

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

#4

Munkeywaxx
  • Location: United Kingdom, Cornwall
  • Minecraft: Munkeywaxx
  • Xbox:iMunkeywaxx

Posted 01 October 2012 - 05:34 PM

its practically impossible.

Need help with permissions? Look no further - Twitch.tv/Munkeywaxx -

Posted Image


#5

bacon_avenger
  • Minecraft: bacon_avenger

Posted 01 October 2012 - 09:48 PM

Well, there is a way, kind of....

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. Posted Image

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.
I ride the bukkit on Linux with a PEX shooter at my side.  Please don't PM me for help, PM's don't help the community at large as it's not publicly viewable.  Use pastie or pastebin for files, I will not download files.  Click the up arrow if I helped. (I also do YT Vids)

#6

gustebeast

Posted 02 October 2012 - 02:40 AM

Ok i figured out how to do it using SRV, anyone else who finds this thread go here...
http://www.minecraft...records-server/

View PostMike_Mro, on 01 October 2012 - 05:34 PM, said:

its practically impossible.
Oh and no its not, if you dont know how to do something dont just say "its practically impossible"

#7

WitherHost
  • Minecraft: tylerb88

Posted 05 January 2013 - 01:11 AM

https://www.creeperh...rt-numbers.html

#8

Rilesthegiles
  • Location: United States
  • Minecraft: Rilesthegiles
  • Xbox:Opop12345678

Posted 28 January 2013 - 07:29 PM

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 74.209.179.66: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   74.209.179.66

This points to a server named mc.kingdomland.com redirecting to a Minecraft server running on 74.209.179.66: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.



Source: http://wiki.multiplay.co.uk/Minecraft/Hostnames

Posted Image
-------------------------- Owner of Runecraft.us--------------------------

------------------------------------------------------------------------------


#9

at8186
    at8186

    Tree Puncher

  • Members
  • 10 posts

Posted 04 December 2013 - 12:08 AM

No ITS Completly Possible If you have two Computers Do Not Use virtal Machine