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.

Solved Lilypad with Multicraft and Multipe IP's

Discussion in 'Support' started by Medina, Sep 6, 2013.

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

    Medina New Member

    Hello Community,

    I've looked through as many posts as I can and it seems that other people are having similar issues however I think mine may be a bit different.

    I have a total of 4 servers.

    199.187.127.139 - Proxy
    199.187.127.139 - Hub (has different port than the proxy one although ip shared)
    76.72.172.165:25646 - Factions
    199.187.123.118:25604 - Towny

    My question is: is it possible to link these 4 servers using Lilypad given that they utilize different IP's and Panels?

    Secondly: I have looked at boboman13's tutorial, but where would I insert each of the IPs?

    When I inserted the proxy IP and Port for all fields, I got an error stating that the IP address was already in use.

    -------------
    06.09 11:54:10 [Multicraft] Server stopped
    06.09 11:54:10 [Multicraft] Retrying server startup
    06.09 11:54:05 [Multicraft] Server stopped
    06.09 11:54:05 [Multicraft] Server shut down
    06.09 11:54:02 [Server] INFO at java.lang.Thread.run(Unknown Source)
    06.09 11:54:02 [Server] INFO at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:101)
    06.09 11:54:02 [Server] INFO at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:366)
    06.09 11:54:02 [Server] INFO at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:354)
    06.09 11:54:02 [Server] INFO at io.netty.bootstrap.AbstractBootstrap$2.run(AbstractBootstrap.java:321)
    06.09 11:54:02 [Server] INFO at io.netty.channel.AbstractChannel.bind(AbstractChannel.java:193)
    06.09 11:54:02 [Server] INFO at io.netty.channel.DefaultChannelPipeline.bind(DefaultChannelPipeline.java:842)
    06.09 11:54:02 [Server] INFO at io.netty.channel.DefaultChannelHandlerContext.bind(DefaultChannelHandlerContext.java:438)
    06.09 11:54:02 [Server] INFO at io.netty.channel.DefaultChannelHandlerContext.invokeBind(DefaultChannelHandlerContext.java:453)
    06.09 11:54:02 [Server] INFO at io.netty.channel.DefaultChannelPipeline$HeadHandler.bind(DefaultChannelPipeline.java:1000)
    06.09 11:54:02 [Server] INFO at io.netty.channel.AbstractChannel$AbstractUnsafe.bind(AbstractChannel.java:478)
    06.09 11:54:02 [Server] INFO at io.netty.channel.socket.nio.NioDatagramChannel.doBind(NioDatagramChannel.java:153)
    06.09 11:54:02 [Server] INFO at sun.nio.ch.DatagramSocketAdaptor.bind(Unknown Source)
    06.09 11:54:02 [Server] INFO at sun.nio.ch.DatagramChannelImpl.bind(Unknown Source)
    06.09 11:54:02 [Server] INFO at sun.nio.ch.Net.bind(Unknown Source)
    06.09 11:54:02 [Server] INFO at sun.nio.ch.Net.bind0(Native Method)
    06.09 11:54:02 [Server] INFO java.net.BindException: Address already in use
    06.09 11:54:02 [Server] INFO [LilyPad] fatal error: services
    06.09 11:54:01 [Server] INFO [LilyPad] build 70 of AllInOne
    06.09 11:54:01 [Multicraft] Loaded config for "Default"
    06.09 11:54:01 [Multicraft] Starting server!
    06.09 11:54:01 [Multicraft] Loading server properties

    ------------------
    I'm not one to ask other people to do things for me but if someone can walk me through this and
    help me modify the config it would be appreciated. -Medina
  2. Matt

    Matt Forum Moderator & Contributor Staff Member Moderator Contributor

    How do you have the configs? And yes it it possible with MultiCraft.
  3. About7Deaths

    About7Deaths Member

    Yes, it works perfectly fine with a shared host. Can you please share your configs? Am I correct when I say that the proxy needs to have a dedicated IP? I forgot if it does or not.
  4. About7Deaths

    About7Deaths Member

    Change your config to this:

    Code (text):
    {
      "proxy": {
        "bind": {
          "address": "199.187.127.139",
          "port": Your Proxy Port
        },
        "outbound": {
          "address": "0.0.0.0"
        },
        "servers": [
          {
            "domain": "*",
            "server": "Hub"
          }
        ],
        "motd": "",
        "playerMaximum": 100,
        "authenticate": false,
        "throttle": 2500,
        "tabEnabled": false,
        "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
  5. Coelho

    Coelho Software Engineer Staff Member Administrator Maintainer

    Code (text):

    06.09 11:54:02 [Server] INFO java.net.BindException: Address already in use
     
  6. boboman13

    boboman13 Member Contributor

    We need your configuration files in order to diagnose the problem. However, what @About7Deaths said is perfectly correct for a basic config. Then just add the servers (the servers you had already said earlier), and your proxy should work fine.
  7. Medina

    Medina New Member

    I added my config as stated by About7deaths however, I am getting the same Error as Coelho pointed out. "Address already in use"

    Proxy only needs the allinone server jar, no plugins correct?

    As you stated in your tutorial boboman13, the other IP's and ports have to be changed to the proxy's correct? Or can I leave them as About7Deaths suggested?

    I am not understanding why it is saying the IP is already in use :/

    To add other servers should I have something like:

    "servers": [
    {
    "domain": "*",
    "server": "Hub"
    },


    {

    "domain": "*"


    "server": "Factions"

    },

    {
    "domain": "*"
    "server": "Survival"
    },
    ],

    ?
  8. boboman13

    boboman13 Member Contributor

    Other than the fact that you cannot have three '*', which means each server gets the player, that config is not the correct part. We need the part that has to do with the IPs.
  9. About7Deaths

    About7Deaths Member

    Hit the code button and copy and paste your whole config into there. Can you do that?
  10. Medina

    Medina New Member

    {
    "proxy": {
    "bind": {
    "address": "199.187.127.139", <-- proxy ip
    "port": 25639
    },
    "outbound": {
    "address": "0.0.0.0"
    },
    "servers": [
    {
    "domain": "*",
    "server": "hub"
    },
    {
    "domain": "hub"
    "server": "factions"
    }
    {
    "domain": "hub"
    "server": "towny"
    },
    ],
    "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": "199.187.127.139", <- hub IP
    "port": 25640
    },
    {
    "address": "76.72.172.165", <-- factions ip
    "port": 25646
    },
    {
    "address": "199.187.123.118", <-- towny ip
    "port": 25604
    },

    "logins": [
    {
    "username": "example",
    "password": "example"
    }
    ]
    }
    }


    I think I've done this all wrong. Is the connect area to specify which IP's will bind to the proxy??

    I haven't beeen able to get one server to work let alone the others. I can't start up lilypad because I have the "IP ADDRESS ALREADY IN USE"
  11. boboman13

    boboman13 Member Contributor

    Code (text):
    "connect": {
    "bind": {
    "address": "199.187.127.139", <- hub IP
    "port": 25640
    },
    {
    "address": "76.72.172.165", <-- factions ip
    "port": 25646
    },
    {
    "address": "199.187.123.118", <-- towny ip
    "port": 25604
    },
    That's just dead wrong.

    Code (text):
    "address": "0.0.0.0",
    Replace all these fields with the specific IP.
    Code (text):
    "domain": "hub"
    The domain should be like: pvpserver.my-domain.com, not just hub.

    You really should look on the documentation for the config and know how to use Json before you start doing this, your config is pretty much completely wrong :p
  12. About7Deaths

    About7Deaths Member

    I would recommend starting your config from scratch and we can help you from there :)
    • Agree Agree x 1
  13. Medina

    Medina New Member

    Okay so I was doing some thinking. Even before connecting any of the other servers. I have been having issues trying to run the proxy server. Following the tutorial given by Boboman13 I still was getting the IP address already in use. I had placed the Proxie's IP in each of the fields.

    {
    "proxy": {
    "bind": {
    "address": "199.187.127.139",
    "port": 25639
    },
    "outbound": {
    "address": "199.187.127.139"
    },
    "servers": [
    {
    "domain": "Node42.Minecrafted.net",
    "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": "199.187.127.139",
    "port": 25639
    }
    },
    "queryUdp": {
    "bind": {
    "address": "199.187.127.139",
    "port": 25639
    }
    },
    "connect": {
    "bind": {
    "address": "199.187.127.139",
    "port": 25639
    },
    "logins": [
    {
    "username": "example",
    "password": "example"
    }
    ]
    }
    }

    Running that gives me the "IP address already in use error"

    Boboman13's tutorial says to put the same IP address of the proxy into each of the fields there.

    I think I know why I am having an issue with the address already in use. I am on shared hosting and they have multiple servers with the same IP address. (199.187.127.139) and only the port differs. Could this be the problem that I'm having?
  14. boboman13

    boboman13 Member Contributor

    That is not the problem. However, I know the problem(s).

    1)
    Code (text):
    "domain": "Node42.Minecrafted.net",
    "server": "hub"
    the domain MUST be '*'.

    2)
    Code (text):
    "port": 25639
    You have this for all the ports, and this is incorrect. Keep the connect bind port at 5901, keep the proxy bind at 25639, and change the rest to random numbers above 3000 :p.

    That should fix your problem, @Medina
  15. About7Deaths

    About7Deaths Member

    Yep, as boboman said, you should not have overited all of the ports with that one number.
  16. Medina

    Medina New Member

    Okay!!! I think we're on to something here. I did it and I was able to get the proxy running as well as connect to my hub server.

    I am not having an issue adding additional servers. I used the format that was on the tutorial boboman13, EXACTLY how you have it there but with my info and when I tried to run, it crashed.

    I know that this is the issue because without the line, it works fine and the proxy+hub work well but adding the third server is giving me a problem.

    Any suggestions on how to fix. Here is the updated config now.

    {
    "proxy": {
    "bind": {
    "address": "199.187.127.139",
    "port": 25639
    },
    "outbound": {
    "address": "199.187.127.139"
    },
    "servers": [
    {
    "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": "199.187.127.139",
    "port": 25001
    }
    },
    "queryUdp": {
    "bind": {
    "address": "199.187.127.139",
    "port": 25002
    }
    },
    "connect": {
    "bind": {
    "address": "199.187.127.139",
    "port": 5901
    },
    "logins": [
    {
    "username": "hub",
    "password": "hub1"
    },
    {
    "username": "factions",
    "password": "factions1"

    ]
    }
    }

    What is in blue is what seems to make it crash and not work.

    Should there not be a comma there? or should there be an extra } maybe?

    Also, I'd like to thank you both, Boboman and About7, you've been extremely helpful and patient with me. I appreciate the time you've both taken in helping me out.
  17. Medina

    Medina New Member

    Note that I added an extra } to the allinone config and the proxy server is no longer crashing!

    It looks like this:

    "logins": [
    {
    "username": "hub",
    "password": "hub1"
    },
    {
    "username": "factions",
    "password": "factions1"
    }

    ]
    }
    }

    I also noticed that on the factions server I am getting this message in the console:

    "
    15.09 14:07:02 [Server] INFO [Connect] Couldn't connect to remote host: "Connection refused: /199.187.127.139:5091", retrying
    15.09 14:07:01 [Server] INFO [Connect] Couldn't connect to remote host: "Connection refused: /199.187.127.139:5091", retrying
    15.09 14:07:00 [Server] INFO [Connect] Couldn't connect to remote host: "Connection refused: /199.187.127.139:5091", retrying"

    The password and usernames match, unless there is a formatting error in the above in the allinone
  18. Medina

    Medina New Member

    It may also be important to note that the IP of both the proxy server and hub are the same with only the ports differing however the IP for the factions server is different from the two and on a different shared host (same company just different machine)
  19. boboman13

    boboman13 Member Contributor

    Can you give us your faction's server config.yml for LilyPad-Connect?
  20. Medina

    Medina New Member

    settings:
    address: 199.187.127.139
    port: 5091
    credentials:
    username: factions
    password: factions1
Thread Status:
Not open for further replies.

Share This Page