Auto disconnect?

We need more info on which step you disconnect and if there is an error report. Make sure your ports are configured on server/client right and that IP's match. If you get disconnected when entering your world, than the world files mismatch client/server sided.
 
Back