Hello!
Do you plan to add proxy settings for Unity Hub?
It will be good to set settings for proxy in one place.
It is always the problem for company with proxy to create rules for all services and licenses.
Hello!
Do you plan to add proxy settings for Unity Hub?
It will be good to set settings for proxy in one place.
It is always the problem for company with proxy to create rules for all services and licenses.
Hi there,
Thank you for using Unity Hub.
This feature is not in our immediate plan. I will add it to our feature requests. Thanks for the feedback.
If someone will have the same problem so here is the solution.
You have to setup few variables:
I’m trying this with Unity Hub (and also tried running Unity.exe manually for the version installed by Hub), but not getting it to work with Fiddler to view the requests and responses.
HTTP_PROXY=http://localhost:8888
HTTPS_PROXY=http://localhost:8888
NO_PROXY=localhost,127.0.0.1
UNITYNO_PROXY=localhost,127.0.0.1
Also tried in <system.net> to add this…
…to machine.config files for the Unity Editor version I am running:
C:\Program Files\Unity\Hub\Editor\2018.1.6f1\Editor\Data\Mono\etc\mono\2.0\machine.config
C:\Program Files\Unity\Hub\Editor\2018.1.6f1\Editor\Data\Mono\etc\mono\1.0\machine.config
And for the non-hub installed one:
C:\Program Files\Unity\Editor\Data\Mono\etc\mono\2.0\machine.config
I am now getting some Hub application requests in Fiddler, which I didn’t get before, but still nothing from the game scripts using HttpClient. I even tried Wireshark and from what I can tell nothing shows up there either, but not too familiar with that one. The requests do go through though, I know that much.
Any ideas?
I have not yet tried a non-Hub installed version, I guess that’s the only thing left to try.
Tried with non-hub installed Unity and still not getting anything in Fiddler. When I explicitly set the proxy on a HttpClient, though, I got the request in Fiddler. So I am still looking for a way to configure all http requests in all my game scripts running in Unity, without having to explicitly configure it in code.
Hi there,
Sorry for the inconvenience.
If the issue is not specific to the hub, I suggest sharing it on the editor forum or send an email to the Unity support.
If it is only happening when you install an editor through the hub, you can send me your log files with a direct message.
Best,
Afshin
Right, I just confirmed I cannot get proxy working with non-hub installed Editor so this is not related to Hub.
Any news for this? My company uses a proxy, can’t download any version with the Unity Hub …
Limiting the release of Unity 2019.1 to the Unity Hub is pretty bad. I’m behind a company proxy.
I am also behind a company proxy which requires authentication.
Unity 2018.3.10 is able to connect through the proxy (using the environment variable UNITY_PROXYSERVER).
The hub does not use the same environment variable and I cannot install 2019.1 using the Hub …
In other words, this is hub-specific
@afshinity : Is it really so hard to fix this? What does it mean this is not planned for now?
Auth Proxy support is the #1 most important feature that corporate users require … how come this isn’t your top priority?
I managed to install the Unity Editor 2019.1 manually and now I have to install each module (android, ios, uwp) manually and separately.
If you don’t care about fixing this, at least please bring back the download / installation assistant.
Another thing: the installation of the “Android Build Support and the Android SDK & NDK tools” via the the hub does not work as well.
I’ve tried using the latest, updated Android SDK components that got installed with Android Studio and they are not working.
On top of that, the “internal build” has been finally deprecated and guess what? Gradle does not cope well with our proxy as well …
What a mess.
It’s surprising and irritating. I thought game dev studios that use Unity also use proxies. Adding proxy support to the Hub before cancelling the online installers for 2019 should have been a priority.
Hello, I am not able to Login into Unity Hub because I am working behind a corporate Proxy.
I am very new to unity and its setup so where do I have to set this variable? Is there any config file where I can add these?
You need to set the node and npm proxy variables (you can look it up in the internet, it’s not unity specific)
For example:
npm config set proxy http://proxy.company.com:8080
npm config set https-proxy http://proxy.company.com:8080
Sure will try doing it
What for? I have set those on my system anyway, but I don’t think the package manager uses those.
The only thing that works with our proxy (with authentication) is setting UNITY_PROXYSERVER in the environment variables.
Its value is set to something like http://username: password@example.com:8080
That helps with the license and the assetstore here.
The Unity Hub and the Package Manager still don’t work, unless I connect to a non-intranet router
Thanks it’s working now ![]()
I indeed concur that this is a cluster f* . Found a solution to this prob if people indeed want to use the SDK and NDK installed by the Unity Hub.
After installation with Android Build checked, it times out and installs, just be patient. Then open Android Studio to set up the platforms. Android Studio has support for proxy settings and pushes it into the sdkmanager automatically.
Its possible to install it the manual way by running the bat file as well, then you have to input proxy setting flags manually.
Either way you do want to do this if you want to build Android apps through Unity.
Navigate to your sdk directory, e.g. “F:\Unitys\2019.1.14f1\Editor\Data\PlaybackEngines\AndroidPlayer\SDK\tools\bin”
sdkmanager.bat --no_https --proxy=http --proxy_host= --proxy_port=
As sdkmanager has support for proxy, the solution is to edit the bat file. YES I know, its unbelievable that we have to go through these steps.
Edit the following lines:


Note the whitespaces. Thus your sdkmanager.bat has proxy variables inside the actual bat-file. Would recommend to do a backup of the sdkmanager.bat before.
Anyone found a solution for gradle behind proxy yet?