Title: Can&#039;t update: firewall/proxy issues?
Last modified: August 21, 2016

---

# Can't update: firewall/proxy issues?

 *  Resolved [bg17aw](https://wordpress.org/support/users/bg17aw/)
 * (@bg17aw)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/cant-update-firewallproxy-issues/)
 * Our company uses a proxy to connect to the internet as part of our IT policy.
 * What ports/domains should I ask them to unblock to be able to update my WordPress
   from my local machine (WAMP)? I cannot even see that updates are available.
 * thanks!

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

 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [12 years, 10 months ago](https://wordpress.org/support/topic/cant-update-firewallproxy-issues/#post-4185819)
 * Ask them if you need to configure your application (in this case WordPress) to
   explicitly use the web proxy. It may be that your installation doesn’t know how
   to or can’t get out to the Internet for updates.
 *  Thread Starter [bg17aw](https://wordpress.org/support/users/bg17aw/)
 * (@bg17aw)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/cant-update-firewallproxy-issues/#post-4185837)
 * But where can proxies be configured in WordPress?
    I could do that myself if 
   I knew where. Should be in WP-CONFIG.PHP, right?
 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [12 years, 10 months ago](https://wordpress.org/support/topic/cant-update-firewallproxy-issues/#post-4185844)
 * It’s probably documented somewhere but from `wp-includes/class-http.php`
 * > Adds Proxy support to the WordPress HTTP API.
   > There are caveats to proxy support. It requires that defines be made in the
   > wp-config.php file to enable proxy support. There are also a few filters that
   > plugins can hook into for some of the constants.
   > Please note that only BASIC authentication is supported by most transports.
   > cURL MAY support more methods (such as NTLM authentication) depending on your
   > environment.
   > The constants are as follows:
    1. WP_PROXY_HOST – Enable proxy support and host for connecting.
    2. WP_PROXY_PORT – Proxy port for connection. No default, must be defined.
    3. WP_PROXY_USERNAME – Proxy username, if it requires authentication.
    4. WP_PROXY_PASSWORD – Proxy password, if it requires authentication.
    5. WP_PROXY_BYPASS_HOSTS – Will prevent the hosts in this list from going through
       the proxy. You do not need to have localhost and the blog host in this list,
       because they will not be passed through the proxy. The list should be presented
       in a comma separated list, wildcards usingare supported, eg. *.wordpress.org
 * An example can be as seen below.
 *     ```
       define('WP_PROXY_HOST', '192.168.84.101');
       define('WP_PROXY_PORT', '8080');
       define('WP_PROXY_BYPASS_HOSTS', 'localhost, www.example.com, *.wordpress.org');
       ```
   
 *  Thread Starter [bg17aw](https://wordpress.org/support/users/bg17aw/)
 * (@bg17aw)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/cant-update-firewallproxy-issues/#post-4186079)
 * Hi Jan,
 * I am not sure from your answer where I should put that code, in the end, I found
   a youtube video [http://www.youtube.com/watch?v=x5Jy9MBNSmM](http://www.youtube.com/watch?v=x5Jy9MBNSmM)
   
   saying this should go in WP-CONFIG.PHP:
 * define(‘WP_PROXY_HOST’, ‘hproxy.iitm.ac.in’);
    define(‘WP_PROXY_PORT’, ‘3128’);
   define(‘WP_PROXY_USERNAME’, ‘SV08V023’); define(‘WP_PROXY_PASSWORD’, ‘xxxxxxxxx’);
   define(‘WP_PROXY_BYPASS_HOSTS’,’localhos­t, [http://www.exapmle.com&#8217](http://www.exapmle.com&#8217););
 * Hope this will work, I will report back in case someone else finds it useful 
   in the future.
 * _[Moderator Note: Please ensure that you are embedding links correctly in your
   posts.]_
 *  Thread Starter [bg17aw](https://wordpress.org/support/users/bg17aw/)
 * (@bg17aw)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/cant-update-firewallproxy-issues/#post-4186081)
 * I can confirm the above code worked, I can now update WP on my local from behind
   the proxy.

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

The topic ‘Can't update: firewall/proxy issues?’ is closed to new replies.

## Tags

 * [ports](https://wordpress.org/support/topic-tag/ports/)
 * [proxy](https://wordpress.org/support/topic-tag/proxy/)
 * [unblock](https://wordpress.org/support/topic-tag/unblock/)
 * [WP updates](https://wordpress.org/support/topic-tag/wp-updates/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 5 replies
 * 2 participants
 * Last reply from: [bg17aw](https://wordpress.org/support/users/bg17aw/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/cant-update-firewallproxy-issues/#post-4186081)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
