Most visitors online was 12720 , on 2 May 2024
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature currently requires accessing the site using the built-in Safari browser.
If the redirector is connected to the server it is "impossible" that the redirector does not receive the packet from the server,unless the server does not send the packet,however from the screenshots that should not be the case.
Now the question is:Are you sure the redirector did not receive anything? Seen from the screenshot, the MapleStory client disconnects after the redirector did send a packet to the server and did probably get a response from the server,so there are only a view possibilities:
1. You did not properly handle the packet distribution between the server-redirector-client, where as the problem is withing your redirector (and so it crashes/does something stupid as it received a packet).
2. You are not sending the packet that your redirector has received from the server to the MapleStory client.
3. You are sending a incorrect packet,what causes the MapleStory client to disconnect.
-Without the redirector we can't help you much, either the problem is your redirector or it either is the packet that is send.
Session session = new Session(sock, SessionType.CLIENT_TO_SERVER);
outSession = session;
outSession.OnInitPacketReceived += new Session.InitPacketReceived(outSession_OnInitPacketReceived);
outSession.OnPacketReceived += new Session.PacketReceivedHandler(OnReceivedPacket);
outSession.OnClientDisconnected += new Session.ClientDisconnectedHandler(outSession_OnClientDisconnected);
session.WaitForDataNoEncryption();
public void OnReceivedPacket(byte[] packet)
{
if (!_gotEnc || !_connected)
{
Console.WriteLine("Enc : "+_gotEnc + _connected);
return;
}
ReceivedMutex.WaitOne();
try
{
short opcode = BitConverter.ToInt16(packet, 0);
Console.WriteLine("Got a packet from server: " + opcode);
if(opcode == 0x12) //ChangeChannel
{
_block = true;
short newPort = BitConverter.ToInt16(packet, 7);
ConnectOut(Program.toIP, newPort);
}
if (opcode == 0x0B) // Server IP
_block = true;
inSession.SendPacket(packet);
}
finally
{
ReceivedMutex.ReleaseMutex();
}
}
Does the disconnect event gets called?
So yes: The problem is the encryption,MapleLib does still use the old encryption