GithubHelp home page GithubHelp logo

charconstpointer / glowstone Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 106 KB

Minecraft server proxy

License: MIT License

Go 95.04% Dockerfile 4.96%
minecraft server minecraft-server proxy tcp multiplex mux multiplexer minecraftjava glowstone minecraft-server-proxy downstream-servers

glowstone's Introduction

glowstone ๐ŸŒŸ

glowstone allows other people to join your localhost games ๐ŸŽข

if you're familiar with services like https://aternos.org/ you know that queues can get ridicolous

with glowstone you can just host your own server and let other people join it via glowstone proxy/tcp mux

for now you have to host the proxy yourself, but even smallest vm will suffice which is not true for mc servers

Try it yourself

Client, this app should be deployed on the same machine as your minecraft server

m := glowstone.NewMux()

//Tries to connect with the other mux on port 8000
if err := m.Dial(":8000"); err != nil {
  log.Fatal(err.Error())
}

//When connection is successfull, we can start receiving packets
if err := m.Recv(); err != nil {
  log.Fatal(err.Error())
}

Server, this usually sits somewhere in the clould or on any other machine exposed to external internet traffic

m := glowstone.NewMux()

//Listens for other mux to connect, 
if err := m.ListenMux(":8000"); err != nil {
  log.Fatal(err.Error())
}
//Listens for other players to connect, after that it handles each connection and forwards it to your minecraft server
if err := m.Listen(":9000"); err != nil {
  log.Fatal(err.Error())
}

Architecture ๐Ÿ—

glowstone's People

Contributors

charconstpointer avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

glowstone's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.