Unity in browser works locally but not on server

Started by
0 comments, last by Dan Violet Sagmiller 11 years, 1 month ago

For some reason I cannot connect to a web service when running the client on a web site, but it works just fine from my machine.

The first step it does is try to connect to the server and get its version. It is using HttpWebClient. C#/.Net, to connect to an web service returning JSON data. The service is running live on the net. I'll just call it "http://myService.com/api/Version"

When I build, it works just fine when I execute the HTML file from my local computer. This means it is connecting to the remote server, and gathering version info then displaying it.

When I copy the HTML file and the Unity3D file to my website (the same one that is running the web service) the game client no longer works. It does load and display the graphics, but it cannot connect to get the version. It reports the URL it tried to connect to, and when I connect to it, it works without issue.

Any thoughts as to what is going on?

Moltar - "Do you even know how to use that?"

Space Ghost - “Moltar, I have a giant brain that is able to reduce any complex machine into a simple yes or no answer."

Dan - "Best Description of AI ever."

Advertisement

I'm freezing this topic, I misquoted the issue in the title. I'll ask in a separate thread. (I can't actually freeze it in anyway I know how, but there is no issue here)

Moltar - "Do you even know how to use that?"

Space Ghost - “Moltar, I have a giant brain that is able to reduce any complex machine into a simple yes or no answer."

Dan - "Best Description of AI ever."

This topic is closed to new replies.

Advertisement