- Home /
Network issue. Weird problem resolving host
Hi, I have an issue with some forms that I'm sending to the server. It's a weird problem because this script were made months ago and work fine. I checked the server and it's working fine too, in fact, it works fine the first time I run unity but after this is not able to connect again. It's working every time I reboot unity or the computer but I get this error later: "Resolving host timed out: myhost.myhost"
I'm using Unity4.6.4 pro and my code is:
public void Login(string nickname, string password)
{
string url = urlBase + "login.php";
WWWForm form = new WWWForm();
form.AddField("username",nickname);
form.AddField("password", password);
WWW www = new WWW(url, form);
StartCoroutine(WaitForRequest(www, QueryType.Login));
}
Of course it's a problem that I'm having with unity, a bug. is there a patch that maybe could resolve this issue?
The IP address of you server remains the same after all this time? $$anonymous$$aybe you should check it and change urlBase or if you are using dynamic DNS then take a look at that settings and change the IP.(If you are using public urlBase, then don't forget to change it in the Inspector too)
I have the game in the same place. In fact I hace a web version of the game in the same server and I'm using the same php files in both versions (Editor and Web). Web version works fine
hmm. I've never met this problem. Do you dispose the form after successful Login? www.Dispose() Also. Do you use the same C# code for Editor and Web?
I'm using the same C# code for both version and I don't dispose. I'm trying to reproduce the issue in another project and I didn't get it yet.