I would advise against using IPs to detect which environment the application runs in. Instead I would use global variables from Apache. For example put this in the .htaccess file
SetEnv ENVIRONMENT production
or, use a auto_prepend_file on your development machine with something like
and then in your code
// or, an equivalent which some people find harder to read but I personally like it
defined('ENVIRONMENT') || define('ENVIRONMENT', 'production');
So that if you're on development the ENVIRONMENT will be set to development, and on production where you don't have the auto_prepend_file ENVIRONMENT won't be set initially, so you set it to 'production'.
That way you can use the code on as many machines as you like without having to add all the different IPs