Setting server mode