1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

Redstone Registry (19132 For All)

Discussion in 'Off-Topic' started by Daltontastic, Jun 24, 2017.

  1. Daltontastic

    Daltontastic Spider Jockey

    Messages:
    28
    A popular service in this community is mcpe.me (it gives you a memorable.mcpe.me address for your server).

    I'd like to thank @falk for coding the transfer plugin for me :) and I'd like to thank @LilCrispy2o9 for fixing up some final bugs.

    I decided to take it up a notch. My service not only gives you a custom.redst.one address for your server.. it also gives you a 19132 port (even if your origin server isn't running on the default port).

    You can even use a custom domain!!

    For example if you register test.redst.one and point it to your server at 1.2.3.4:54321, players will be able to join your server using 1.2.3.4:54321 and test.redst.one:19132

    Sorry if this comes off as advertising I'm just sharing something I think the community will find useful.

    You can register a hostname by messaging @RedstoneReg on Twitter.
     
    Last edited: Jun 26, 2017
  2. EdwardHamHam

    EdwardHamHam Skeleton

    Messages:
    962
    GitHub:
    edwardhamham
    How is it possible that you can change the ports? I thought MCPE didn't support SRV records?
     
  3. KnownUnown

    KnownUnown Spider Jockey Poggit Reviewer

    Messages:
    47
    GitHub:
    knownunown
    ;)
     
  4. WinterBuild7074

    WinterBuild7074 Zombie Pigman

    Messages:
    693
    GitHub:
    winterbuild7074
    Are those addresses all for free?
     
  5. Thunder33345

    Thunder33345 Moderator Staff Member

    Messages:
    2,137
    GitHub:
    Thunder33345
    mind explaining the internal workings?
     
    jasonwynn10 likes this.
  6. Daltontastic

    Daltontastic Spider Jockey

    Messages:
    28
    We have a server running on port 19132 that all subdomains are pointed to with a wildcard DNS entry. When you join the server parses your ServerAddress and sends it to our API, and the API tells the server where to transfer you.

    Yes

    As we grow I'll host multiple 19132 servers across the globe and set them up on a location aware load balancer.
     
    Last edited by a moderator: Jun 24, 2017
  7. WinterBuild7074

    WinterBuild7074 Zombie Pigman

    Messages:
    693
    GitHub:
    winterbuild7074
    That means, I could also make a Domain called: anyting.idkidk?
    If yes, could give me the infinity-pe.com Domain for 84.200.62.143?
     
  8. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    Not arbitrary domains...
     
  9. Daltontastic

    Daltontastic Spider Jockey

    Messages:
    28
    You can also use custom domains if you point them to cname.redst.one before registering them in the system.
     
  10. WinterBuild7074

    WinterBuild7074 Zombie Pigman

    Messages:
    693
    GitHub:
    winterbuild7074
    That means xiblabla.blablib will also work, then?
     
  11. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    If you buy a domain of your choice (e.g. winterpotato24.net) and point it to cname.redst.one it will work
     
  12. Daltontastic

    Daltontastic Spider Jockey

    Messages:
    28
    xD
     

    Attached Files:

  13. Kyd

    Kyd Zombie Pigman

    Messages:
    678
    GitHub:
    boi1216
    Lol but what if I run more than 1 servers on my vps and not on same port then I join server with another port than 19132 and it transfer me to my main server ._.
     
  14. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    GitHub:
    sof3
    Warning: Redstone Registry will not hide your real server address. Modded clients or bots can still display the server address you submitted to Redstone Registry.
     
  15. Daltontastic

    Daltontastic Spider Jockey

    Messages:
    28
    And I’ve never advertised that it did. Just like traditional DNS your origin server’s IP is viewable by anybody who wants to see it.
     
  16. Daltontastic

    Daltontastic Spider Jockey

    Messages:
    28
    Redstone addresses are only accessible using the default 19132 port, and they all must be unique. So that won’t happen.
     
  17. Matthew

    Matthew Baby Zombie

    Messages:
    167
    GitHub:
    matthww
    Good job for making this Dalton this will help many people who always wanted a 19132 port


    Theory on how it works (not sure):
    The clients sends a special string in the loginpackets which contains what the client used as IP

    Code:
      ["ServerAddress"]=>
      string(15) "10.10.4.4:19132"
    With this information the transfer plugin knows where to send the player and ta-da people get redirected to the server they wanted.
     
  18. Daltontastic

    Daltontastic Spider Jockey

    Messages:
    28
    Yeah exactly. Too bad the query protocol doesn’t have access to the LoginPacket.

    If it did we’d be able to show the correct MOTD and player count.
     
  19. HBIDamian

    HBIDamian HBIDamian Staff Member

    Messages:
    365
    GitHub:
    HBIDamian
    Make a plugin that sends the data?
     
  20. Daltontastic

    Daltontastic Spider Jockey

    Messages:
    28
    Not possible.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.