Hello,
I have a project where I want to download XML file.
I know there are many ways to do this, I tried both UnityWebRequest and WWW .
Both methods works with URL like: “OLS Tutorial”
but are unable to download: “http://192.168.0.118/update/data.xml”;
I get “request timeout” on both PC in Unity Editor and on Android phone.
What is even more crazy, is that when I copy the mentioned LAN URL, the one with 192.168.0.118, to web browser, on both PC and Android phone I get that XML file open correctly.
So that rules out wrong LAN/wrong IP/http server not running/firewall.
Is that really an HTTP server that you host, or is it a shared folder?
If it’s the later, please use file:// or smb:// protocol for it (IIRC file will only work on Windows).
Try smb://192.168.0.118/update/data.xml
If you try file, you need 5 (five) slashes after file: