Title: Warning LOCALHOST
Last modified: December 24, 2017

---

# Warning LOCALHOST

 *  [egofit](https://wordpress.org/support/users/egofit/)
 * (@egofit)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/warning-localhost/)
 * Hi!
 * I’ve got “Warning: the plugin is not working while you are in a localhost environment.”
 * What i should to do?

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Thread Starter [egofit](https://wordpress.org/support/users/egofit/)
 * (@egofit)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/warning-localhost/#post-9809606)
 * I found, that warning appears when server behind Proxy
 * May be you should use this command to fix server ip $ip = getHostByName(php_uname(‘
   n’)); ?
 *  Thread Starter [egofit](https://wordpress.org/support/users/egofit/)
 * (@egofit)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/warning-localhost/#post-9809625)
 * change by myself, works fine.
 * thanks for great plugin!!!
 *  [evgenyem](https://wordpress.org/support/users/evgenyem/)
 * (@evgenyem)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/warning-localhost/#post-9829249)
 * have the same error …
    PHP7.0.4, as CGI, ngnix how to fix???
 *  Thread Starter [egofit](https://wordpress.org/support/users/egofit/)
 * (@egofit)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/warning-localhost/#post-9829281)
 * Edit file settings.php
 * Line 3 – <?php if ( getHostByName(php_uname(‘n’)) == ‘127.0.0.1’ ) {
 * Line 13 – if ( isset($_GET[‘settings-updated’]) && getHostByName(php_uname(‘n’))!
   = ‘127.0.0.1’ ) {
 *  [evgenyem](https://wordpress.org/support/users/evgenyem/)
 * (@evgenyem)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/warning-localhost/#post-9843882)
 * Thank you! Working.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Warning LOCALHOST’ is closed to new replies.

 * ![](https://ps.w.org/telegram-bot/assets/icon-256x256.png?rev=2981438)
 * [Telegram Bot & Channel](https://wordpress.org/plugins/telegram-bot/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/telegram-bot/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/telegram-bot/)
 * [Active Topics](https://wordpress.org/support/plugin/telegram-bot/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/telegram-bot/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/telegram-bot/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [evgenyem](https://wordpress.org/support/users/evgenyem/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/warning-localhost/#post-9843882)
 * Status: not resolved