registry server socket implementation