Gii Access Disallowed On Remote Host

I have several computers on a small local network. My (xampp) server is located on one PC, and I do my development work on another. That’s caused me some significant problems, but my latest is with gii, and I can’t figure it out. First, I can access gii with no problems on the host server machine. On my development machine, it’s a whole different matter. I’ve tried all the following:


'allowedIPs' => ['', '::1', ''], // the remote host machine is 192.168.72

'allowedIPs' => ['', '::1', '', ''], // the development machine is

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

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

'allowedIPs' => ['', '::1', $_SERVER['REMOTE_ADDR']]

'allowedIPs' => false,

'allowedIPs' => ['*.*.*.*'],

'allowedIPs' => [$_SERVER['REMOTE_ADDR']],


(I know that several of those options are fraught with terrible, tragic danger on a completely isolated, secured home network, but I wanted to try everything I could think of.)

All of the options uniformly produce a 403 with the message “You are not allowed to access this page.” By the way, I’m trying to access Gii while I’m logged in as an administrator, the same login that I can use, successfully, to access Gii on the host machine.

Any ideas on how I can get Gii to work remotely?

1 Like