We recently switched some machines to a network that uses ipV6. Those machines are now unable to package our Unreal game for Android, due to gradle not being able to download as part of its build process. I’ve found a few references to this problem online. The most promising was the workaround described here:
https://github.com/gradle/gradle/issues/28642#issuecomment-2284849067
Namely, “Replace distributionUrl in wrapper/gradle-wrapper.properties.”
I tried https://gh-v6.com/gradle/gradle-distributions/releases/download/v6.1.1/gradle-6.1.1-all.zip
This file will download directly from a browser on the machine, but it fails when gradle tries to download it:
Has anyone run into this and solved it? I don’t know much about ipV6 or how to go about fixing this issue.
Thanks!
ubt> Exception in thread "main" java.net.SocketException: Network is unreachable: connect
ubt> at java.base/java.net.PlainSocketImpl.connect0(Native Method)
ubt> at java.base/java.net.PlainSocketImpl.socketConnect(PlainSocketImpl.java:101)
ubt> at java.base/java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399)
ubt> at java.base/java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242)
ubt> at java.base/java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224)
ubt> at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
ubt> at java.base/java.net.Socket.connect(Socket.java:609)