Jump to content

  • Log In with Google      Sign In   
  • Create Account

Unity in browser works locally but not on server


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 Dan Violet Sagmiller   Members   -  Reputation: 897

Like
0Likes
Like

Posted 11 March 2013 - 08:49 AM

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."

My Game(s), Warp Wars is in early development and can be found here: http://blog.WarpWars.Net.


Sponsor:

#2 Dan Violet Sagmiller   Members   -  Reputation: 897

Like
0Likes
Like

Posted 11 March 2013 - 09:02 AM

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)


Edited by Dan Violet Sagmiller, 11 March 2013 - 09:04 AM.

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."

My Game(s), Warp Wars is in early development and can be found here: http://blog.WarpWars.Net.





Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS