Title: adjc98's Replies | WordPress.org

---

# adjc98

  [  ](https://wordpress.org/support/users/adjc98/)

 *   [Profile](https://wordpress.org/support/users/adjc98/)
 *   [Topics Started](https://wordpress.org/support/users/adjc98/topics/)
 *   [Replies Created](https://wordpress.org/support/users/adjc98/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/adjc98/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/adjc98/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/adjc98/engagements/)
 *   [Favorites](https://wordpress.org/support/users/adjc98/favorites/)

 Search replies:

## Forum Replies Created

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

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Simple Custom Post Order] php notice: Notice: Function is_search was called incorrectly.](https://wordpress.org/support/topic/php-notice-notice-function-is_search-was-called-incorrectly/)
 *  [adjc98](https://wordpress.org/support/users/adjc98/)
 * (@adjc98)
 * [11 months ago](https://wordpress.org/support/topic/php-notice-notice-function-is_search-was-called-incorrectly/#post-18596159)
 * I second this. This is the same issue I submitted a few days ago. [https://wordpress.org/support/topic/new-is_search-on-line-602-causing-warnings/](https://wordpress.org/support/topic/new-is_search-on-line-602-causing-warnings/)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[All-In-One Security (AIOS) – Security and Firewall] Login IP not an external IP](https://wordpress.org/support/topic/login-ip-not-an-external-ip/)
 *  [adjc98](https://wordpress.org/support/users/adjc98/)
 * (@adjc98)
 * [4 years, 1 month ago](https://wordpress.org/support/topic/login-ip-not-an-external-ip/#post-15727351)
 * I had the same problem with Azure sending the wrong external IP address. The 
   new update to this plugin doesn’t deal with the port number coming from ‘HTTP_X_FORWARDED_FOR’
   and therefore tries to get the external IP address from the wrong place. In order
   to fix this on Azure, I put the lines below in my wp-config.php file. They remove
   the port number from the end of the IP address Azure serves up in the ‘HTTP_X_FORWARDED_FOR’
   before it gets to the Security plugin so that the external IP address function
   in the plugin is never fired off and pulling the wrong IP address.
 *     ```
       $_SERVER['REMOTE_ADDR'] = current(explode(',', current(explode(':', $_SERVER['HTTP_X_FORWARDED_FOR']))));
       $_SERVER['HTTP_X_FORWARDED_FOR'] = current(explode(',', current(explode(':', $_SERVER['HTTP_X_FORWARDED_FOR']))));
       ```
   
 * Before the update to 4.4.12, the plugin removed the port number itself, now it
   just ignores the port number.
 * Try throwing those two lines into wp-config.php and it should work nicely with
   Azure.

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