Unity www class connect to https ip; Unknown Error.
Hi everyone. Just a quick question. Does anybody know that if Unity WWW class is able to connect to an address like "https://1.1.1.1" ?
I have a rather tricky problem. I have a server and it's ip address. While I can connect through a web browser using https://ip directly and can get the results easily, Unity WWW returns unknown error.
using (WWW x = new WWW("https://95.211.XXX.XXX/testMe.php")) //TEMP)
{
yield return x;
if (!String.IsNullOrEmpty(x.error))
{
Debug.Log(x.error + " : " + x.text);
}
else
{
Debug.Log("done: " + x.text);
responseData = x.text;
}
}
So anyone knows anything about this or is it server based?
FYI; unity actually can connect to the non-ssl version but the non-ssl (http://ip) version redirects me to a cgi-sys/defaultwebpage.cgi on both browser and unity.
Your answer
![](https://koobas.hobune.stream/wayback/20220612145333im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
In my URL, when using http, its working. When using https, its not working. Why? code attached below 1 Answer
Need help converting code from Java to Unity's C# 1 Answer
WWW class and UnityWebRequest no longer working in Unity 2017.3.0 5 Answers
HTTP GET Method in C# Unity 3D - How to target specific text or header 1 Answer
App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure 3 Answers