Unity3D & HTTP/HTTPS proxy: problem solved! o/

GFX47 March 8, 2011 6
Unity3D & HTTP/HTTPS proxy: problem solved! o/

As I already mentioned in a previous post, accessing Unity3D Asset Store or checking for editor updates seemed impossible when working behind a web proxy (like most of people at work I guess)…

Well you can now forget it as Rob Rolleston has given me the solution in his reply on Unity3D “support” forum: you have to set the correct Windows user environment variables for Unity3D to know how to access the web (don’t know how it works for MacOS users…).

Those variables are the following and should match this pattern:

  • HTTP_proxy = <http proxy ip/url>:<http proxy port>
  • HTTPS_proxy = <https proxy ip/url>:<https proxy port>

If you wonder how to add user env variables, well… LMGTFY :D

Thanks again to Rob and enjoy asset store from work! o/

PS: don’t forget to restart Unity3D editor after setting up the user environment variables!

6 Comments »

  1. CyP April 13, 2011 at 12:42 am - Reply

    Hi can you please tell me how this might work if you have a .pac file to configure your proxy? I tried setting these enviroment variables and the Asset Store window says I am offline and the console gives me this error:

    “Failure when receiving data from the peer url: https://kharma.unity3d.com/

    but I get a different coulld not connect error in the console when there are no env variables set. Any ideas? (The pac file is needed for me to use different proxies for different sites)

    thanks

    • GFX47 April 13, 2011 at 6:40 am - Reply

      “Failure when receiving data from the peer url” error message reminds me the cURL library.
      I don’t know exactly how do the pac files work but I don’t think it’s used by Unity3D editor.
      If your need is to use different proxies for different sites, may be you should write a batch file (.bat) setting the environment variables values depending on your site conditions.

  2. Robert Fauver June 29, 2011 at 3:17 pm - Reply

    Has anyone attempted to do this on a MAC yet?

  3. Le Giang Anh October 4, 2011 at 8:47 am - Reply

    Hello,

    I created 2 Variable in User variables for like these:
    HTTP_proxy
    http:\\proxy.sai.gameloft.org:3128

    HTTPS_proxy
    https:\\proxy.sai.gameloft.org:3128

    But Unity still show that I’m offline.

    Could you please help me on this?

    Thanks,

  4. GFX47 October 7, 2011 at 3:43 pm - Reply

    Try to remove the https:\\ prefix (WTF with the double backslash anyway?).

  5. unitydude October 10, 2011 at 11:35 pm - Reply

    Thank you for this post! It helped me use the Asset store when behind our corporate proxy…

Leave A Response »