-
-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Server starting by just visiting the multiplayer server list. #4
Comments
(are you using the lestest release right?) It happens because this program is something completely not integrated in the minecraft server: it just listens for incoming connections and starts the server. i tryed to solve this issue since version 1 but i wasn't able to find a never-changing packet of data representing a "real" user trying to join (to use as a reference for the start-server signal) for what i understood (not completely sure tho) the client-server packets are encrypted in some way so this, "connect me!" string is always changing (BUT I HOPE TO BE WRONG). anyway... when i have time i'll retry the experiment |
if you are willing to help me you can just tweak a little the code so that the python prog writes to txt file everything that is sent and received and from there we can find the "connect-me!" string |
Sure! I'll do some testing in the next days, I just hoped you had some more information on how the communication is handled ^^' |
good! thanks for the support could you make an example of what are you thinking with port redirection? (because this script in the core is actually a very simple port forwarder) |
I mean, you take 1KB of data and forward it to the other port, however this process is slow and makes the connection between the client and the server be very laggy. If there was another way without involving python doing the job manually (like some builtin function to redirect data) then it may improve the overall performance. |
well i never thought about that but it seems reasonable... it's important for bigger servers or for not that powerful hardware. the only problem is that python, since must have some logic in it (like when to start, when to stop, number of players ecc...), must be able to read (or at least have some feedback) some data. we could make something like:
is it reasonable something like that? |
or we could write a c/c++ program (that should be more efficent) to handle the redirection operations. this could be really helpful to write multiple programs listening on the same port: |
(but for now i think its great if we can solve the initial issue, then from there we can make it more efficent) |
i may have found our "connect me!" bytes: (look at the 17th byte ehehehe...) this evening i am going to implement the solution hopefully |
i uploaded the new version without the problem! fell free to check it out and try to find possible errors! |
The server is just starting by visiting the multiplayer server list, this is due to the client requesting the amount of players online as well among other info.
The text was updated successfully, but these errors were encountered: