[Solved] WWW on a Windows Box

Hello,

I have a Unity project that uses the WWW class to talk to a remote server. This works great on my Mac but it will not work from a Windows box and I am very lost as to why.

I have tried both a stand alone Windows build and a web client. The web client I then hosted on my web site. If I run this client from a Mac browser, it connects. If I run it from a Windows browser, it doesn’t.

To add some more info that may help give me ideas: I am looking at the other endpoint’s logs and it is not seeing any communications attempts incoming when I am on the Windows clients, so I’m pretty sure it’s a sending issue not a receiving one (ie, Firewall).

Also, from my Windows box, I can manually go to the endpoint and talk to it, so I know my Windows PC itself can get there.

But I am just at a complete loss since the web client is the same application running from the same location – just one under Windows browsers and the other a Mac one – oh, and I’ve tested both on Chrome on both platforms.

If anyone can supply me with any ideas, that’d be great!

Just in case it wasn’t clear, I thought I’d draw an ascii diagram:

     [Mac]
         \
          \
           +--> [Unity App on Web] <---> [Server Endpoint]
          /                          /
         /            Endpoint will not see comms from Unity
  [Windows]           App if accessing it from Windows browser

How do you go about talking to the server via your PC? Different methods use different ports, and I just wonder if the plugin, or the port being used is blocked somehow.

Check if the firewall interfers or if you run something on the corresponding port. Good chance for a blocking thing for example is apache, IIS and Skype, the top reasons I know for www related things not working in general

No firewalls are running on either endpoint.

There is no code running differently, unless Unity underneath is changing around things depending on what platform it’s running on.

I am just using Unity’s WWW class to get to “http://xyz:port/url”. I can open up a browser on my Windows box and manually talk to “http://xyz:port/url” and get the correct response, so I know the OS connection is fine.

The only thing I can’t check is if it’s because it’s a Windows or it’s because it’s another computer.

I am referring to it from it’s outside IP but there could still be something strange there.

And thanks for your replies :slight_smile:

shakes fist

False alarm (as 99.9999% is the case!). When I was building my app, my remote address was being changed to localhost by the Unity editor (I just changed the script’s value) which made it still work on one of my computers.

Thanks for your help though, got me thinking in a different direction!