See how the \Magento\Developer\Helper\Data::isDevAllowed() method implemented, and then substitute the current visitor IP with your custom IP address: https://mage2.pro/t/736
See how the \Magento\Developer\Helper\Data::isDevAllowed() method implemented, and then substitute the current visitor IP with your custom IP address: https://mage2.pro/t/736