Code Monkey home page Code Monkey logo

Comments (11)

vincss avatar vincss commented on September 14, 2024

Hi !
Not for now, but I will make it configurable on a next version.

from mcsleepingserverstarter.

octoshrimpy avatar octoshrimpy commented on September 14, 2024

to add to this, bedrock and Geyser run from UDP port, which I think is going to need npm-built-in dgram, or dgramx. I've started on the code a little bit. @vincss do you have any code/branch that needs pushed for this feature? I'll gladly help you get it out.

from mcsleepingserverstarter.

octoshrimpy avatar octoshrimpy commented on September 14, 2024

@d1ddle you can edit geyser config to use the same port as java. Just remember to set the port on the client as well.

from mcsleepingserverstarter.

vincss avatar vincss commented on September 14, 2024

Not for now, I was thinking to pass the code to typescript before any further modification.
I don't know if minecraft-protocol handle the UDP packet that you are talking about. https://github.com/PrismarineJS/node-minecraft-protocol
I never played with Geyser & Bedrock.

I'm a bit curious, where do you hear about this app ? For about a week there is more activity around it.

from mcsleepingserverstarter.

d1ddle avatar d1ddle commented on September 14, 2024

Thanks for the replies!
Ah, @octoshrimpy, that would be ok on PC Bedrock, however I'm currently playing in conjunction to Xbox (on the same network). When Geyser is hosted on the same network, it shows up as a LAN game, but this only happens when a Java player has already connected and booted up the server. So when the server is in sleeping mode, Bedrock clients can't find the server on LAN because of the port and protocol difference.
I have tried using Bedrock Connect https://github.com/Pugmatt/BedrockConnect and it has worked great in the past in conjunction with Geyser, however right now I'm not sure what the DNS Servers are doing as I can't connect at all (USA or UK.). Bedrock Connect is just a DNS server you manually set so that you can connect to your own IP addresses from console Bedrock.

So my easiest options as of now, are:
A: Have a separate Geyser instance constantly running instead of the plugin version so that Bedrock players can connect via the proxy and to SSS which would then wake the server - (Geyser is a proxy - and redirects/translates packets from Bedrock-Java - and have Geyser redirect Bedrock packets to port 25565 as Octo said, it would wake SSS and start the server)
B: Set up my own DNS server with Bedrock Connect and use it via Xbox (which I'm not too keen on doing)
C: Debug and fix the public Bedrock Connect DNS issue I have
D: Make one SSS instance listen on 19132 TCP-UDP and 25565 TCP (Unlikely...? May take some rewrites? This would be the most convenient for me but I understand it might not be for you guys who actually have to re-write the program LMAO)
E: Make another instance of SSS listen on 19132 TCP-UDP (Have 2 services running, one for each port? not sure if that would work for UDP protocol) - I'll try it

Idk, I'll mess around with it a bit

from mcsleepingserverstarter.

octoshrimpy avatar octoshrimpy commented on September 14, 2024

@d1ddle I have the same "symptom" with mobile bedrock. I've switched the ports on geyser and mobile client to 65, and sleepingServerStarter still doesn't see it, because the mc-protocol server is only listening to TCP. https://github.com/vincss/mcsleepingserverstarter/blob/ebf51b0591e138e2a274a1a1338c62dd7b7090b3/sleepingServerStarter.j

@vincss looks like bedrock isn't being worked in, nor is it currently supported. I've had this on my server for about 2 months now, so I'm not sure about the sudden influx.

--EDIT--
my ports are 65 outside, but they forward to internal 25565 ports inside a docker container

from mcsleepingserverstarter.

vincss avatar vincss commented on September 14, 2024

Maybe we can join on a Discord chat to discuss it :
https://discord.gg/nJbF6yBc

from mcsleepingserverstarter.

octoshrimpy avatar octoshrimpy commented on September 14, 2024

@vincss invite invalid.

from mcsleepingserverstarter.

vincss avatar vincss commented on September 14, 2024

Yes, it expired after 24 hours .
There is a new one :
https://discord.gg/auUBXE3X

from mcsleepingserverstarter.

vincss avatar vincss commented on September 14, 2024

I created a branch for bedrock compatibility if some of you want to give it a try :
https://github.com/vincss/mcsleepingserverstarter/tree/feature/mc_bedrock

With node 14 :

Or download the latest artefact from
https://github.com/vincss/mcsleepingserverstarter/actions/workflows/node.js.yml?query=branch%3Afeature%2Fmc_bedrock

from mcsleepingserverstarter.

vincss avatar vincss commented on September 14, 2024

I merged the branch and made a new release :
https://github.com/vincss/mcsleepingserverstarter/releases/tag/v1.16.5

from mcsleepingserverstarter.

Related Issues (20)

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.