added lan support

I'm not fully satisfied, because is buggy, and the client must wait to
the server to pick a choice until he can write a choice. This is because
the socket server start listening when the user write a choice. If you
see the code or run the scripts, you will see. But, it's the first
attempt, and I hope I will fix that errors.