Can you convert this Javascript into Python code?

Re
- in Servers
4

I found a handshake code for Minecraft servers on the internet. This was written in the Java programming language, which is very useful for this project. However, I would have been interested in whether this code could also be converted into Python so that a Python client does the handshake with the Minecraft server

This is important information that could help you:

http://wiki.vg/Protocol

The structure of the handshake:

C → S: Handshake State = 1
C → S: Request
S → C: Response
C → S: ping
S → C: pong

With the Javascript my text was a bit too long, that's why I linked it to you

It is also from a question portal and is at the bottom:

https://stackoverflow.com/...aft-server

ya

Since I have no idea about Java, I can't comment on it, BUT Java is not JavaScript, there's a big difference

Re

Thanks anyway

Re

Of course you can. And as expected, someone has already done that:

https://github.com/...ale/quarry

Re

Nice👍👍👍