Added method to determine server name from CLI