Implemented LanServerSocket for safe threaded communication