Running Multiple Servers

Discussion in 'Bukkit Help' started by np98765, Jul 17, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    np98765

    Hello Bukkit Help subcommunity ( :p ),

    I'm trying to set up TWO servers from the same computer (gasp!). I already own the domain lavacraftserver.com, and I've forwarded the subdomain 'mc' to my IP address. People can connect to my server with mc.lavacraftserver.com.

    But, what if I wish to set up a PvP server as well? I'd want the IP address to be pvp.lavacraftserver.com ( :25565). How would I go about doing this? I've tried editing the server.properties, and the outcomes were unsuccessful.

    12:57:27 [INFO] Starting Minecraft server on pvp.lavacraftserver.com:25565
    12:57:27 [WARNING] **** FAILED TO BIND TO PORT!
    12:57:27 [WARNING] The exception was: java.net.BindException: Can't assign requested address
    12:57:27 [WARNING] Perhaps a server is already running on that port?
    12:57:27 [INFO] Starting Minecraft server on pvp.lavacraftserver.com:25001
    12:57:27 [WARNING] **** FAILED TO BIND TO PORT!
    12:57:27 [WARNING] The exception was: java.net.BindException: Can't assign requested address
    12:57:27 [WARNING] Perhaps a server is already running on that port?


    I'm not really sure what to do. I always assumed that the 'server-ip' part of the server.properties was for exactly that, but it seems like I can't, even though I own the domain and forwarded the subdomains to my IP.
    Does anyone know how to go about doing this?
    Thanks!
     
  2. Offline

    Omnitv

    Look like a job for TnT. I suck at Port Forwarding, and TnT knows more than I do.
    Hmm... or c0mp.
     
  3. Offline

    greatman

    To be able to have 2 servers on the 25565 port, you need 2 different IP's.

    EDIT: Or a certain DNS config within your domain.
     
  4. Offline

    TnT Retired Staff

    You have the wrong assumption. Just set different ports, not IP's.

    That is not what he wants to do. He wants different ports.
     
  5. Offline

    np98765

    Actually,

    Is closer to my goal. I just posted two examples up there. :3

    But, I'd like these:

    mc.lavacraftserver.com - Survival Server
    pvp.lavacraftserver.com - PvP Server

    Preferably, the ports would be 25565... But if that's not possible, I'm okay with that.

    EDIT:
    What do you mean? The only thing I touched was forwarding the subdomains to my IP.
     
  6. Offline

    yttriuszzerbus

    Setting up two separate DNS entries to point to different IPs to point to the same machine would be hard: you might not be able to get an extra IP. Using separate ports would be much easier: just change it in server.properties for both. (I would advise you uses non-default port for both, so that people don't get a server they weren't expecting if they forget to add the port at the end.
     
  7. Offline

    np98765


    I guess that will have to do. If this whole "server-to-server-connection" idea is actually publicly released, it won't really matter what the IP addresses are, anyways. It was my hope to have different subdomains leading to different servers, but I see that it might not even be possible.

    Thanks for your help, everyone. If someone does have a possible way to do this, I'd love to hear it. :)
     
  8. Offline

    Coelho

    Assuming you are using a dedicated server or VPS, you will need to purchase IP addresses and bind them to the machine. Bind your minecraft servers on each IP address, and then forward your domains.
     
  9. Offline

    np98765

    Nope, currently just my home computer, although soon it'll be a machine dedicated to the servers.
     
  10. Offline

    Coelho

    Then it is impossible unless you write a software to frontend and proxy pass each connection.
     
  11. Offline

    DinoScope

    You'll need to open a new port, and also direct the subdomain to that port. That should do it.
     
  12. Offline

    np98765

    How would I direct the subdomain to the port? I'm using NameCheap, and I have to type an IP address without a port. When I try a port...

    Improper records were NOT saved!
    There were issues with some records and they were either set to default or completely removed. Please review the issues below and update again appropriately.
    INVALID_IP: 'xx.xxx.xxx.xxx:25000' is not valid IP for A record. (host name: pvp)

    (I replaced my IP with x's)
     
  13. Offline

    chaseoes Retired Staff

    You can't. You have to type pvp.lavacraftserver.com:port to connect.

    Also, we already know your IP is 209.59.169.27. ;)
     
  14. Offline

    np98765

    My hopes were crushed again. :oops: :p

    So...

     
  15. Offline

    Omnitv

    To cheer np up you can. you just need a diffrent port.
     
  16. Offline

    chaseoes Retired Staff

    It might actually be possible depending on your setup. The IP option in server.properties is designed for systems with multiple IP addresses where you want to specifically tell it what IP to listen to.
     
  17. Offline

    np98765

    Bookmarked; I'll revisit once I get my server machine. I'm on a Mac, and have no clue how to do that right now, plus, the new computer won't take too long. :)

    Thanks for the link, I'll definitely remember.
     
  18. Offline

    SteppingHat

    That won't work beacuse it's adding local IP addresses not external.
    Picture it this way. A client enters your address mc.lavacraftserver.com. Namecheap sends it to xxx.xxx.xxx.xxx IP address which is your router. In your router control panel, it tells anything requesting the requesting the port 25565 to go to this internal IP address.

    Minecraft automatically assumes 25565 so no matter what you do on your end, you can't change their request into the local network. They will be forced to type in the non-standart port number.

    Setting different internal ports does nothing for what you are trying to achieve.
     
    yttriuszzerbus likes this.
  19. Offline

    chaseoes Retired Staff

    I never said anything about different ports.
     
  20. Offline

    Deisuke

    You're gonna want this:
    https://github.com/SirCmpwn/MCVHost

    It has a couple limitations, but should do exactly what you need.
     
  21. Offline

    Coelho

    That no longer works with 1.3
     
  22. Offline

    chaseoes Retired Staff

    You can do this in 1.3 anyways since it now supports SRV DNS records.
     
Thread Status:
Not open for further replies.

Share This Page