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 Proxies

Discussion in 'Discussion' started by The_Zip, Jun 14, 2014.

  1. The_Zip

    The_Zip Active Member Resource Contributor

    Having multiple proxies can be useful for many different reasons, and is extremely easy to set up. There is many reasons/uses for you to set them up, a well noted one being a Round Robin set up. Though the possibilities can go on and on.

    It is extremely simple to get multiple proxies running on your server. In fact it is as simple as just adding another proxy configured just as you would have one proxy, and in the connect server config making the second user name and password being the second proxy's. You can repeat the step multiple times, to have as many proxies as you want. Remember! Each username and password must be different, and they must be exactly same in your proxy config as in your connect config.

    An example of a configuration with two proxies is shown below.

    Proxy 1 Config
    Code (text):
    connect:
      address: 127.0.0.1:5091
      credentials:
        username: proxy1
        password: proxy1password
    proxy:
      bind: :25565
      routes:
      - domain: ""
        server: hub
      locale:
        full: The server seems to be currently full. Try again later!
        offline: The requested server is currently offline. Try again later!
        loggedIn: You seem to be logged in already. Try again later!
        lostConn: Lost connection... Please try to reconnect
        shutdown: The server is being restarted. Please try to reconnect
      motd: A LilyPad Server
      maxPlayers: 1
      authenticate: true
    Proxy 2 Config
    Code (text):
    connect:
      address: 127.0.0.1:5091
      credentials:
        username: proxy2
        password: proxy2password
    proxy:
      bind: :25565
      routes:
      - domain: ""
        server: hub
      locale:
        full: The server seems to be currently full. Try again later!
        offline: The requested server is currently offline. Try again later!
        loggedIn: You seem to be logged in already. Try again later!
        lostConn: Lost connection... Please try to reconnect
        shutdown: The server is being restarted. Please try to reconnect
      motd: A LilyPad Server
      maxPlayers: 1
      authenticate: true
    Connect Server Config
    Code (text):
    bind: :5091
    logins:
    - username: proxy1
      password: proxy1password
    - username: proxy2
      password: proxy2password
    - username: server
      password: serverpassword
    Round Robin--

    A Round Robin is a load balancing technique through DNS servers. It works in a rotating basis, going down a list of IP's, distributing users to each server. This can be useful for a number of different reasons. Including a form of protection, if one of the proxies goes down users can still connect to the server through the other.

    Setting up a Round Robin is simple, all you need to do is point your domain/sub-domain using an a address to all of your servers.

    If you would like to read more on Round Robins two articles I would suggest reading, Round Robin DNS written by an author on Webopedia, and one written by Tommy Butler which goes more in-depth and shows a great example, Google. If you have any questions about these articles, or how to set up your round robin please ask below.
    • Agree Agree x 1

Share This Page