
last time I got 1017 from my lan server it was because I forgot this mysql command:
:arrow: INSERT INTO account SET name='eqemu', password='eqemu', status=200;
There's a ton of information about 1017, probably you'll find the solution for your problem too.