Hello,
I have simple code in unity:
using(UnityWebRequest request = UnityWebRequest.Get("127.0.0.1:5000/api")) {
yield return request.SendWebRequest();
if(request.isNetworkError) {
Debug.LogError(request.error);
} else {
Debug.Log(request.downloadHandler.text);
}
}
And Unity doesn’t call to my API on 5000 port, just 80 with apache. So, How I can set port correctly?
Thanks for help in advance.