how do I solve it
when I enter the game it is slow and it takes time to enter when I am in the game it hangs and disconnects you
There's really nothing to be solved there...
1. The ConnectServer is just throwing some timeout messages because you are opening it first and it's trying to see if there are DataServers and GameServers online. Just open the ConnectServer last (after every other applications) and you won't have the "timeout" messages.
2. Again, I will repeat myself - error-L2 is coming from a bad packet length in your GameServer. There's no real error because I've debugged that packet. You are working with the sources, so just debug that code and variables and see what's the packet and where is happening, see the call stack, etc..
If you lag or get disconnected, is because you are running a VPS in another country and you don't have a good Internet connection with that country which is hosting your VPS.
If I'm remembering this correctly and I'm pretty sure about this, you've said that for other files too.
If you are in South America and you are running a VPS in Europe, there's gonna be latency(high ping). (Yes, it can be a good or bad connection, but that's most likely a problem from your ISP, not from the server. Having a good or bad connection it's random determined because you can't know but just assuming it, you have to test it).
For a quick test, open a
Command Prompt, run it as administrator, do a "
ping your-vps-IP-address -t" command for pinging your VPS and check the latency of packet responding from your PC. Post a screenshot of your command prompt after this.
Your server could respond/request data from your client and vice-versa with a high delay (maybe more or less > 200-500ms.) If your client doesn't get packets in a defined time by the client, you will be probably disconnected because the client thinks there's nothing to communicate with and your MU server is down.
So, test these MU server files on your local machine first, then go for a VPS.