I'm trying to upload a file via FTP. Actually it works fine via Editor but when I make a build and push it to my Quest, I get "The remote name could not be resolved." error when I try to call FtpWebRequest.GetRequestStream().
var request = WebRequest.Create(address) as FtpWebRequest;
request.Credentials = ...
request.KeepAlive = false;
request.UseBinary = false;
request.Method = WebRequestMethods.Ftp.UploadFile;
request.ContentLength = fileInfo.Length;
Then I call request.GetRequestStream() within a try/catch and it throws the timeout exception.
I tried adding <uses-permission android:name="android.permission.INTERNET" /> line to my AndroidManifest.xml thinking this might be the issue, but alas no change.
Perhaps related but my attempts to get Leaderboard/Achievement data also has errors:
Unable to resolve host "graph.oculus.com": No address associated with hostname
Both Leaderboards and Achievements work fine via Editor - only when I push a build to my device.
Does anyone have any idea?
Solved! Go to Solution.