Cannot make Gii work

the server is on a shared host, i can open index.php

requirements.php test said is ok ( meet minimum requirement)

In config/web.php, i added this :

'modules' => [

	'gii' => [

		'class' => 'yii\gii\Module',

		'allowedIPs' => ['', '::1', '192.168.0.*', '','']




‘extensions’ => require(DIR . ‘/../vendor/yiisoft/extensions.php’),

in the inde.php

defined(‘YII_DEBUG’) or define(‘YII_DEBUG’, true);

defined(‘YII_ENV’) or define(‘YII_ENV’, ‘dev’);

require(DIR . ‘/../vendor/autoload.php’);

require(DIR . ‘/../vendor/yiisoft/yii2/Yii.php’);

$config = require(DIR . ‘/../config/web.php’);

(new yii\web\Application($config))->run();

I got error:

Forbidden (#403)

You are not allowed to access this page.

so in YII2, there is no need to specify username or password for GII? just restrict IP address and set it to dev ?

please advise, thanks!

Just installed on my local machine, Gii is working

so it must be the IP issue. I have a look later, thanks