Sending packets to minecraft server?
Whats up all?
I am trying to make custom client (c#) that can connect cracked minecraft servers.
I tryed different ways to connect to the server but without success. Here is my code:
Code:
TcpClient connection = new TcpClient("localhost", 25565);
NetworkStream stream = connection.GetStream();
BinaryWriter netWriter = new BinaryWriter(stream);
netWriter.Flush();
netWriter.Write(0x00);
netWriter.Write(0);
netWriter.Flush();
netWriter.Write(0x02);
netWriter.Write(49 + "username" + "localhost" + 25565);
netWriter.Flush();
Server says that i lost the connection.
Help, i am a bit confused about that with the packets. Thanks anyway!
P.S: Sorry if it is in the wrong forum selection!