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.

How does one use domains?

Discussion in 'Support' started by Yoda, Jul 13, 2013.

  1. Yoda

    Yoda New Member

    Heya!

    Hi

    The "servers" part of the allinone.conf is confusing me,

    Code (text):
     "servers": [
          {
            "domain": "*",
            "server": "hub"
          },
          {
            "domain": "main.-.com",
            "server": "main"
          }
        ],
    Basicly, do I set it up like that? When players connect to anything (example: -.Com [Yes its pointing to the proxy]) they get redirected to the hub/lobby, but when they join with the IP "main.-.com" (again, its pointing at the proxy) it redirects to the server "main".

    Currently, main.-.com redirects you to the hub server.

    Any help?

    Thanks,

    Yoda
    Last edited: Sep 2, 2016
  2. Coelho

    Coelho Software Engineer Staff Member Administrator Maintainer

    Technically this should be working as is... can you try the domain "main.thenestmc.com."?
  3. Yoda

    Yoda New Member

    When I join main.-.com it redirects me to "hub" server, which I don't work

    Another thing to note: (Might not make sense)

    main.-.com is pointing to a SRV record which is pointing to the IP b.-.com, and the port 25618

    b.-.com is pointing to 1..........0,

    So....... is the Lilypad proxy.

    Did that make sense? :p

    Not too sure if thats something to do with it,

    What I want: Main.-.com > Redirects > Server: main (that's the username)

    Currently happening: Main.-.com > Redirects > Server: hub (that's the username)

    Any more thoughts? :s

    Thanks

    Yoda
    Last edited: Sep 2, 2016
  4. Coelho

    Coelho Software Engineer Staff Member Administrator Maintainer

    The b.madyoda.com is the domain that needs to go into your config then.
  5. Yoda

    Yoda New Member

    Also,

    Is there a way to reload allinone.conf with out stopping the network then restarting? Getting a little annoying :p
  6. Yoda

    Yoda New Member

    Just trying that ;)
  7. Yoda

    Yoda New Member

    Okay,

    When I connect to "mainredirect.-.com:25618" it redirects me to the MAIN server, which is what I want

    I've set "main.-.com" to (SRV record) mainredirect.-.com, with the port 25618 but it's not working :s

    mainredirect.-.com:25618 works like a charm

    Any ideas? I'll play around.

    Also is it possible that you can have different MOTDs for the different domains?
    Last edited: Sep 2, 2016
  8. Yoda

    Yoda New Member

    This just popped up in my console?

    Code (text):
    13.07 20:45:08 [Server] INFO at java.lang.Thread.run(Unknown Source)
    13.07 20:45:08 [Server] INFO at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:101)
    13.07 20:45:08 [Server] INFO at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:365)
    13.07 20:45:08 [Server] INFO at io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:353)
    13.07 20:45:08 [Server] INFO at io.netty.channel.AbstractChannel$AbstractUnsafe$2.run(AbstractChannel.java:447)
    13.07 20:45:08 [Server] INFO at io.netty.channel.AbstractChannel$AbstractUnsafe.access$300(AbstractChannel.java:403)
    13.07 20:45:08 [Server] INFO at io.netty.channel.AbstractChannel$AbstractUnsafe.register0(AbstractChannel.java:475)
    13.07 20:45:08 [Server] INFO at io.netty.channel.DefaultChannelPipeline.fireChannelActive(DefaultChannelPipeline.java:747)
    13.07 20:45:08 [Server] INFO at io.netty.channel.DefaultChannelHandlerContext.fireChannelActive(DefaultChannelHandlerContext.java:223)
    13.07 20:45:08 [Server] INFO at io.netty.channel.DefaultChannelHandlerContext.invokeChannelActive(DefaultChannelHandlerContext.java:237)
    13.07 20:45:08 [Server] INFO at io.netty.handler.timeout.ReadTimeoutHandler.channelActive(ReadTimeoutHandler.java:138)
    13.07 20:45:08 [Server] INFO at io.netty.channel.ChannelInboundHandlerAdapter.channelActive(ChannelInboundHandlerAdapter.java:66)
    13.07 20:45:08 [Server] INFO at io.netty.channel.DefaultChannelHandlerContext.fireChannelActive(DefaultChannelHandlerContext.java:223)
    13.07 20:45:08 [Server] INFO at io.netty.channel.DefaultChannelHandlerContext.invokeChannelActive(DefaultChannelHandlerContext.java:237)
    13.07 20:45:08 [Server] INFO at io.netty.channel.ChannelInboundHandlerAdapter.channelActive(ChannelInboundHandlerAdapter.java:66)
    13.07 20:45:08 [Server] INFO at io.netty.channel.DefaultChannelHandlerContext.fireChannelActive(DefaultChannelHandlerContext.java:223)
    13.07 20:45:08 [Server] INFO at io.netty.channel.DefaultChannelHandlerContext.invokeChannelActive(DefaultChannelHandlerContext.java:237)
    13.07 20:45:08 [Server] INFO at lilypad.server.proxy.net.ProxyInboundHandler.channelActive(ProxyInboundHandler.java:46)
    13.07 20:45:08 [Server] INFO java.lang.NullPointerException
     
  9. Coelho

    Coelho Software Engineer Staff Member Administrator Maintainer

    That's only half of the error, and is probably due to you not having a wildcard (*) domain.
  10. Yoda

    Yoda New Member

    I have a wildcard domain pointing to hub
  11. Yoda

    Yoda New Member

    Still no luck :s

Share This Page