# Using slicer behind proxy

**URL:** https://discourse.slicer.org/t/using-slicer-behind-proxy/6545
**Category:** Support
**Created:** [April 19, 2019, 6:09pm UTC](https://discourse.slicer.org/t/using-slicer-behind-proxy/6545 "2019-04-19T18:09:51Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)
#### Post date: [April 19, 2019, 6:09pm UTC](https://discourse.slicer.org/t/using-slicer-behind-proxy/6545/1 "2019-04-19T18:09:51Z")

</div>

We are behind a corporate proxy, and more and more this creates issues with sample set downloads though slicer. E.g., this is the contents of the mrhead.nrrd when I use the sample data:  
This windows workstation is already configured to use specified proxy. Is there way to set this proxy explicitly from .slicerrc.py?

> Proxy Server Use Required
> 
> | **Internet Access requires the use of a web proxy server.** | |
> 
> Please configure your web browser to automatically detect web proxy settings.  
> For assistance, please refer to the Proxy Configuration page.
> 
> In some cases it may be necessary to re-apply the settings. To do this in Internet Explorer, go in to Tools, Internet Options, Connections, LAN Settings. Uncheck "Automatically detect settings", hit Ok, then go back in and re-check the box.
> 
> For additional questions, please contact Service Desk at x71111. \</HT

---

<div class="post-metadata">

### Author: ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)
#### Post date: [April 20, 2019, 3:21pm UTC](https://discourse.slicer.org/t/using-slicer-behind-proxy/6545/2 "2019-04-20T15:21:31Z")

</div>

Is your `http_proxy` environment variable set? I’ve never had to use a proxy, but from what I can tell that’s [what’s needed](https://docs.python.org/3.6/library/urllib.request.html) so that the proxy would be used [in SampleData](https://github.com/Slicer/Slicer/blob/master/Modules/Scripted/SampleData/SampleData.py#L653).

---

<div class="post-metadata">

### Author: ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)
#### Post date: [April 21, 2019, 5:42am UTC](https://discourse.slicer.org/t/using-slicer-behind-proxy/6545/3 "2019-04-21T05:42:13Z")

</div>

I never had to set the http\_proxy on windows boxes, only on Linux. But I can give it a try and report back.

---

<div class="post-metadata">

### Author: ![muratmaga](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/muratmaga/32/3622_2.png) [@muratmaga](https://discourse.slicer.org/u/muratmaga)
#### Post date: [April 22, 2019, 4:23pm UTC](https://discourse.slicer.org/t/using-slicer-behind-proxy/6545/4 "2019-04-22T16:23:21Z")

</div>

Worked great. Thank you!
