hello everyone!
i'm new here, and not very expert in web languages, my job is actually product design and 3D applications.
i'm writing here because i need a few help with a "ajax server" or at least this is what autodesk says.
first a little introduction..
basically, i'm using autodesk showcase, which is a 3D realtime rendering software used for presentations and design review.
This software has a built in "ajax based" web server to allow the user to remotely control the software via LAN.
In our example, we control a powerful workstation which runs showcase with a tablet.
The user interface is browser based, so is made out of HTML, CSS, javascript etc, and uses the XMLHttpRequest to send specific messages that showcase converts into commands (change point of view, change object color etc).
when you run the autodesk showcase software it automatically starts this "server", which uses the 5555 port.
the user interface is placed in a specific folder in the machine running the software/server, and it works just by naming the first page index.html, like any other website/hypertext.
showcase adds an environment variable to the system to specify the adress of the folder containing the interface.
to make the two devices communicate, you basically type XXX.XXX.XXX.XXX:5555 in the browser adress bar (where xxx is the IP of the machine running showcase) of the remote controller (tablet in this case) after starting showcase; or you can use the user interface directly on the machine running showcase by typing localhost:5555 in the PC's browser.
and here comes the problem i have:
the communication in localhost is fast, as it should be.
when it comes to lan communication, to retrieve a page it takes seconds.. lots of seconds.
every command has at least 1 second latency.
and somehow, every source the page uses (images, scripts, fonts) is considered a command as soon as it must be retrieved using the server.
so, for example, a page with 3 javascript and 7 images can take up to 10-15 seconds to load even if the images are 2Kb.
there's no way to bypass the server since pages must load from it to make showcase recieve commands.
The only way i've found to speed up the process, is having all the resources in a www adress, like "www.website.com/interface". in this way you still load pages from the server, but resources come from the web, reducing the actual number of commands to only a few (page retrieve, initial showcase commands etc).
This can work pretty well in a closed office environment, in which we know we have a wifi network which serves both as lan and internet connection.
But as soon as we bring the system to possible customers or exhibitions, things get complicated.
i absolutely need to understand how to solve this, my idea was to make the sources load via lan using the "//machine/interface" adress, but chorme, safari and firefox blocks these adresses due to security reasons.
or, maybe, i'm just doing something wrong with interface setup, but this happens with the simplyest of the pages.
hope someone have an idea.
also, i'm not sure this is the proper folder for this topic, if it's in the wrong sections i apologize
thank you all