# Download Modules through proxy with password

**URL:** https://discourse.processing.org/t/download-modules-through-proxy-with-password/10968
**Category:** Processing
**Created:** [May 6, 2019, 12:41pm UTC](https://discourse.processing.org/t/download-modules-through-proxy-with-password/10968 "2019-05-06T12:41:02Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![MichaelHecht](https://avatars.discourse-cdn.com/v4/letter/m/edb3f5/32.png) [@MichaelHecht](https://discourse.processing.org/u/MichaelHecht)
#### Post date: [May 6, 2019, 12:41pm UTC](https://discourse.processing.org/t/download-modules-through-proxy-with-password/10968/1 "2019-05-06T12:41:02Z")

</div>

Hi,

I’m working behind a company proxy with user and password. Customizing preferences.txt does’nt help because I cannot set user and password. Without appropriate proxy settings I cannot install any modules. I didn’t find any helpful answers neither in the web nor here.

For programs like python it helps to set http\_proxy with user and pass but for processing I don’t know how to solve this.

Thank you in advance.

---

<div class="post-metadata">

### Author: ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)
#### Post date: [May 6, 2019, 1:08pm UTC](https://discourse.processing.org/t/download-modules-through-proxy-with-password/10968/2 "2019-05-06T13:08:25Z")

</div>

sorry / i might have a different idea,  
so you not install on that company PC,

- install at home to USB stick
- 
  - and setup also your sketchbook path to the stick,

- 
  - update modes and libs ( will be at the sketchbook path too )

and try to run it on the company computer  
( but possibly USB is blocked too ?)

---

<div class="post-metadata">

### Author: ![MichaelHecht](https://avatars.discourse-cdn.com/v4/letter/m/edb3f5/32.png) [@MichaelHecht](https://discourse.processing.org/u/MichaelHecht)
#### Post date: [May 6, 2019, 1:18pm UTC](https://discourse.processing.org/t/download-modules-through-proxy-with-password/10968/3 "2019-05-06T13:18:16Z")

</div>

Ok, good idea. USB works and since there is no real “installation” i.e. all modules are in the subdirectories, this solution should work (even if proxy support would be better):

Thank you.

---

<div class="post-metadata">

### Author: ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)
#### Post date: [May 6, 2019, 1:26pm UTC](https://discourse.processing.org/t/download-modules-through-proxy-with-password/10968/4 "2019-05-06T13:26:33Z")

</div>

hope you got lucky,  
still want you to know:  
there is at first start a install:  
( here on win7 PC )

> c:\Users\ \< user \> \AppData\Roaming\Processing\

see also IDE / File / Preferences

and lots of garbage i only know to clean manually as usual tools not see it, at

> c:\Users\ \< user \> \AppData\Local\Temp\

---

<div class="post-metadata">

### Author: ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)
#### Post date: [May 12, 2019, 7:25am UTC](https://discourse.processing.org/t/download-modules-through-proxy-with-password/10968/5 "2019-05-12T07:25:11Z")

</div>

I believe that you can configure proxy settings for Contributions manager as per the answer here (comments says it also works on Processing 3)

> The solution is given in this document: https:[Processing’s default settings](https://github.com/processing/processing/blob/master/build/shared/lib/defaults.txt)

> <https://github.com/processing/processing/blob/master/build/shared/lib/defaults.txt#L340-L348>

> The proxy settings for Processing (the application itself) can be set in the file _Users → [username] → AppData → Roaming → Processing → preferences.txt_ (Windows 7 and higher) You have to add the values for the keys _proxy.host_ and _proxy.port_ .

> <https://stackoverflow.com/questions/30703182/processing-2-behind-a-proxy/30755030#30755030>

as a historical note, looks like these proxy preferences were first added in Processing 2:

> <https://github.com/processing/processing/issues/1476>
>
> \_Original author: eoin.ros...@gmail.com (December 04, 2012 16:47:50)\_
> 
> Or maybe …this is a feature request for a processing.exe flag to use system proxy, I have no idea what I'm doing.
> 
> Also would be awesome if the library updater could consider those unfortunate souls behind corporate proxies when it is implemented.
> 
> \<b\>What steps will reproduce the problem?\</b\>
> When behind an auth'd proxy, simply opening a blank sketch and waiting for the built-in delay you get the error below
> 
> \<b\>What is the expected output? What do you see instead?\</b\>
> java.net.ConnectException: Connection timed out: connect
> at java.net.PlainSocketImpl.socketConnect(Native Method)
> at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
> at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
> at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
> at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
> at java.net.Socket.connect(Socket.java:525)
> at java.net.Socket.connect(Socket.java:475)
> at sun.net.NetworkClient.doConnect(NetworkClient.java:163)
> at sun.net.www.http.HttpClient.openServer(HttpClient.java:394)
> at sun.net.www.http.HttpClient.openServer(HttpClient.java:529)
> at sun.net.www.http.HttpClient.&lt;init&gt;(HttpClient.java:233)
> at sun.net.www.http.HttpClient.New(HttpClient.java:306)
> at sun.net.www.http.HttpClient.New(HttpClient.java:323)
> at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:860)
> at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:801)
> at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:726)
> at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1049)
> at java.net.URL.openStream(URL.java:1010)
> at processing.app.UpdateCheck.readInt(UpdateCheck.java:131)
> at processing.app.UpdateCheck.updateCheck(UpdateCheck.java:93)
> at processing.app.UpdateCheck$1.run(UpdateCheck.java:63)
> at java.lang.Thread.run(Thread.java:619)
> 
> \<b\>What version of the product are you using? On what operating system?\</b\>
> 2.0b6
> 
> \<b\>Please provide any additional information below.\</b\>
> 
> \<b\>Note: Please do not link to locations on other sites, such as your own\</b\>
> \<b\>image site, video site, blog, etc. Include the relevant information here\</b\>
> \<b\>with the report.\</b\>
> 
> \_Original issue: http://code.google.com/p/processing/issues/detail?id=1438\_

---

<div class="post-metadata">

### Author: ![MichaelHecht](https://avatars.discourse-cdn.com/v4/letter/m/edb3f5/32.png) [@MichaelHecht](https://discourse.processing.org/u/MichaelHecht)
#### Post date: [May 13, 2019, 7:21am UTC](https://discourse.processing.org/t/download-modules-through-proxy-with-password/10968/6 "2019-05-13T07:21:22Z")

</div>

Well the proxy settings are not complete since one can not enter username and password for protected proxies. This is my problem.

---

<div class="post-metadata">

### Author: ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)
#### Post date: [May 13, 2019, 6:08pm UTC](https://discourse.processing.org/t/download-modules-through-proxy-with-password/10968/7 "2019-05-13T18:08:42Z")

</div>

> <https://github.com/processing/processing/issues/5203>

Looks like this is already listed as a help-wanted enhancement by the devs.

---

<div class="post-metadata">

### Author: ![MichaelHecht](https://avatars.discourse-cdn.com/v4/letter/m/edb3f5/32.png) [@MichaelHecht](https://discourse.processing.org/u/MichaelHecht)
#### Post date: [May 14, 2019, 6:37am UTC](https://discourse.processing.org/t/download-modules-through-proxy-with-password/10968/8 "2019-05-14T06:37:00Z")

</div>

Ok, so I wait until it’s eventually implemented.

---

<div class="post-metadata">

### Author: ![neilcsmith](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/neilcsmith/32/144_2.png) [@neilcsmith](https://discourse.processing.org/u/neilcsmith)
#### Post date: [May 14, 2019, 10:00am UTC](https://discourse.processing.org/t/download-modules-through-proxy-with-password/10968/9 "2019-05-14T10:00:09Z")

</div>

You’d better hope there’s not a PAC file involved too! Then things get really interesting to support from Java. [https://en.m.wikipedia.org/wiki/Proxy\_auto-config](https://en.m.wikipedia.org/wiki/Proxy_auto-config) Why on earth all this is not done on an OS level! 🤨

---

<div class="post-metadata">

### Author: ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)
#### Post date: [May 14, 2019, 2:12pm UTC](https://discourse.processing.org/t/download-modules-through-proxy-with-password/10968/10 "2019-05-14T14:12:25Z")

</div>

> [@MichaelHecht](#):
>
> wait until it’s eventually implemented

Well, if it is important to you then you might want to work on it, or put up a bounty or hire a developer to contribute it. “Help wanted” in the Processing repo often means the core developers have no schedule to work on that feature – ever – but are open to someone else helping to add it.

This makes some sense – they are a small team with a big request workload, and as far as they know very few of their users have authenticated proxies.
