Common configuration for client and server