Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
1
Question by dgoemans · May 03, 2011 at 02:21 PM · editorwwwmac

WWW call on MacBook pro times out

So i've been trying to work this one out, and i'm totally lost. We're working on a project with a few people, and one particular person is having this problem. What happens is that the WWW call in the following code times out. The call takes ages to resolve and then fails with Connection Timed out. The server in question is on our local network. Only on that MacBook. We can ping the given URL, we can go to it in the browser, but on the same machine, in the Unity editor and only the editor, we can't access the URL. I don't doubt that this is an issue specific to that particular Macbook, but was hoping someone had experienced this or had an idea about what might be causing this.

using UnityEngine; using System.Collections;

public class ServerTest : MonoBehaviour {

 // Use this for initialization
 void Start () 
 {

 }

 bool check = false;

 // Update is called once per frame
 void Update () 
 {
     if( !check )
     {
         check = true;
         StartCoroutine("getWebCall");

     }
 }


 IEnumerator getWebCall()
 {
     Debug.Log("About to start");

     WWW www = new WWW("http://SOMEKNOWNURLWITHNICERETURNVALUE");
     yield return www;


     if( www.error != null )
         Debug.Log("WWW fail: " + www.error);

     Debug.Log("Returned: " + www.text.ToString());
 }

}

EDIT: With some further investigation, even switching the player prefs to Mac/Standalone still gives the error. Oddly enough it gives this error for ANY url ( even Google.com and Microsoft.com ). We decided to attempt to hack around the issue just for this Mac, by adding our URL to the hosts file on the system, but all that did was get a response from that URL and no response from the other urls we need. Our developers and system admin are all stumped. It just looks like something on that mac is blocking only the Unity Editor ( since the webplayer works fine on his mac, but is not a workable solution since he needs to create and test assets for the game ).

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
1

Answer by AKAssassin · May 03, 2011 at 04:43 PM

Are you building as a webplayer or a standalone, with the webplayer selected as build type you can run into security sandbox issues with www requests due to the same domain restriction on them. Check that out as that was giving me a problem as well.

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image dgoemans · May 04, 2011 at 07:41 AM 0
Share

Sadly, that can't be it. Like i said, we're working in a $$anonymous$$m inside the same office, and it's only that $$anonymous$$acbook with that issue. Our project's editor settings are all the same with the same pretend hosting url. it's got us completely stumped, to the point where we were even trying to check firewall settings.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

No one has followed this question yet.

Related Questions

Black screen while launching editor on Mac (high sierra) 2 Answers

"MyDocuments" varies for editor vs. standalone (Mac) 1 Answer

Unity UI not refresh. 0 Answers

Mac Editor: Constant High CPU Usage 1 Answer

WWW doesn't work outside of editor. 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges