Implement get command in both client and server