Anonymous connections

Attempt to allow anonymous connections.
Please review my code, any feedbacks are more than welcome.