1. Welcome to LilyPad. Download the project, explore the forums, and create your own LilyPad network.


    If you use the software and enjoy it or have a question, or would like to contribute to the future of the software directly or through resources, please sign up and join our little community.

Multiple Servers and different IP's

Discussion in 'Support' started by Liveonline, Jan 5, 2014.

  1. Liveonline

    Liveonline New Member

    Hi there!
    Recently I have been looking into lilypad and it seems a really good solution for my server. I have been having some troubles though.

    I want people to be able to connect to all servers instead of them forcing to join the HUB first.

    And for some reason the server that is on another IP is not visible in the servers list when I do /servers.

    What am I doing wrong? I pasted the configs below:


    Proxy:
    Code (text):
    {
      "proxy": {
        "bind": {
          "address": "46.105.49.78",
          "port": 25565
        },
        "outbound": {
          "address": "0.0.0.0"
        },
        "servers": [
          {
            "domain": "188.165.32.215",
            "server": "pvp"
          },
          {
            "domain": "*",
            "server": "hub"
          }
        ],
        "motd": "A Minecraft Server",
        "playerMaximum": 1,
        "authenticate": true,
        "throttle": 2500,
        "tabEnabled": true,
        "localeFull": "You seem to be already logged in",
        "localeOffline": "The requested server is currently offline. Try again later!",
        "localeLoggedIn": "You have logged in from another location",
        "localeLostConn": "Lost connection... Please try to reconnect",
        "localeShutdown": "The server is being restarted. Please try to reconnect"
      },
      "queryTcp": {
        "bind": {
          "address": "0.0.0.0",
          "port": 5555
        }
      },
      "queryUdp": {
        "bind": {
          "address": "0.0.0.0",
          "port": 25565
        }
      },
      "connect": {
        "bind": {
          "address": "0.0.0.0",
          "port": 5091
        },
        "logins": [
          {
            "username": "hub",
            "password": "123"
          },
          {
            "username": "pvp",
            "password": "123"
          }
        ]
      }
    }

    PVP server (this is also the one that is not visable):
    Code (text):
    settings:
      address: 46.105.49.78
      port: 5091
      credentials:
        username: pvp
        password: 123
     

    and Survival server (or hub):
    Code (text):
    settings:
      address: 0.0.0.0
      port: 5091
      credentials:
        username: hub
        password: 123
     
    Last edited: Jan 5, 2014
  2. Matt

    Matt Forum Moderator & Contributor Staff Member Moderator Contributor

    They need to join the hub first. Then they do /server <servername> or use the compass plugin.

    Also, you need to add the servers to the config of the "Bukkit-PortalCommand" plugin.
  3. Liveonline

    Liveonline New Member

    Matt, thanks I fixed one issue... now the other one. (I forgot to put in the servers in the Bukkit-PortalCommand)
    You say you have to connect to the hub first but is there a way to connect to a server directly without having to connect to the hub first?

    Because this topic: http://www.lilypadmc.org/threads/going-to-servers-without-connecting-to-lobby-first.447/ is about the same thing I basically want but I cannot figure out how to do it. Yet someone on the forum called "Shawshark" knows how to do this. I was kinda hoping he would give us an example on how to do it.

    Thanks
  4. Shawshark

    Shawshark Active Member Resource Contributor

    If your talking about say you had a ip for a survival server(survival.domain.com) and connecting using that would go to the survival server and so on, is that what your talking about?
  5. Liveonline

    Liveonline New Member

    Pretty much yes! :D

    Is this possible?
  6. Shawshark

    Shawshark Active Member Resource Contributor

    Yes it is.

    Code (javascript):

    {
      "proxy": {
        "bind": {
          "address": "46.105.49.78",
          "port": 25565
        },
        "outbound": {
          "address": "0.0.0.0"
        },
        "servers": [
          {
            "domain": "188.165.32.215",
            "server": "pvp"
          },
          {
            "domain": "*",
            "server": "hub"
          },
          {
            "domain": "pvp.domain.com",
            "server": "pvp"
          },
          {
            "domain": "secondserver.domain.com",
            "server": "secondserver"
          }
        ],
        "motd": "A Minecraft Server",
        "playerMaximum": 1,
        "authenticate": true,
        "throttle": 2500,
        "tabEnabled": true,
        "localeFull": "You seem to be already logged in",
        "localeOffline": "The requested server is currently offline. Try again later!",
        "localeLoggedIn": "You have logged in from another location",
        "localeLostConn": "Lost connection... Please try to reconnect",
        "localeShutdown": "The server is being restarted. Please try to reconnect"
      },
      "queryTcp": {
        "bind": {
          "address": "0.0.0.0",
          "port": 5555
        }
      },
      "queryUdp": {
        "bind": {
          "address": "0.0.0.0",
          "port": 25565
        }
      },
      "connect": {
        "bind": {
          "address": "0.0.0.0",
          "port": 5091
        },
        "logins": [
          {
            "username": "hub",
            "password": "123"
          },
          {
            "username": "pvp",
            "password": "123"
          }
        ]
      }
    }
     
    Just define which domain goes to which server.
    Last edited by a moderator: Jan 5, 2014
  7. Liveonline

    Liveonline New Member

    Hey sorry for the late reply but I have figured out what I did wrong. I think most people (like me) think that if they point something like: Play.Minecraft.net to the server IP that they can join that server without joining the HUB first. But then I started to think, hey... What would nginx do? (nginx is to host a webserver) Nginx does basically the same when you want multiple domains or sub domains for different sites. You have to point al the sub domains or domains to the same IP the proxy is on and define it in the config above this post where to put the players when they used the sub domain or domain.

    I think, if people like me or others have this question it should be explained like this.

    Anyways. THANKS for the help! :D
  8. Matt

    Matt Forum Moderator & Contributor Staff Member Moderator Contributor

    So this is solved?
  9. Liveonline

    Liveonline New Member

    Matt, I have read a lot of topics and in every topic I see you make a comment on everything, what are you trying to proof here? you even said once something was not possible while the dev disproved you. Are you here for attention and locking threats or do you really want to help out because you cannot even say, hey thank you for that comment, ill remember that. Because I am sure a lot of people have this issue.
    Last edited: Jan 9, 2014
    • Disagree Disagree x 2
  10. Coelho

    Coelho Software Engineer Staff Member Administrator Maintainer

    Matt actively tries to help in anyway he can. Although he may be unable to answer the question at all times, he still tries his best. He also tries to keep the forums clean as I've asked, and I thank him for it. With that said, I find your post rude, and although I understand your point, I believe you should apologize.
    • Agree Agree x 3

Share This Page