Hi Mone,
Thanks for your reply.
My environment is that the demo is running in external web server on same machine.
Under this environment, I can't use IP address directly for accessing from Internet, right?
Hi Mone,
Thanks for your reply.
My environment is that the demo is running in external web server on same machine.
Under this environment, I can't use IP address directly for accessing from Internet, right?
Sorry, you can't.
If you can access the client machine's hosts file you can map there your IP to something like www.mysite.com.
Moreover note that use two server (web & LS) on the same machine is not compatible with Opera browser: http://www.lightstreamer.com/vb/showthread.php?t=28
Yes, you're right.
Thanks for your answer.
Please help! I have been following this and a few other threads concerning the binding of domain and host. And have been unsuccessful getting a test environment up and running.
I am successful when accessing Lightstreamer directly on port 8080, but my setup fails when I try with webpages on my webserver.
I have Windows XP
I have Lightstreamer running on port 8080.
I have IE as my client.
I have Netbeans with Tomcat as my webserver.
Lightstreamer config I have.
My HOSTS file containsCode:<http_server name="laptop">
My computer is called 'laptop' with domain suffix 'mycompany.net'Code:192.168.1.88 mycompany.net
My HTML code contains
I look forward to someone pointing out my obvious mistake!Code:page.context.setDomain( "mycompany.net" ); // (set the domain when deploying on web server) page.onEngineCreation = function( engine ) { engine.context.setDebugAlertsOnClientError(true); // (set false in production) engine.connection.setLSHost( "laptop.mycompany.net" ); // (set the hostname when deploying on web server) engine.connection.setLSPort( 8080 ); // (set the port when deploying on web server)
DN
hi,
it seems correct, how do you access tomcat (ie which address do you write in the address bar to access your web page)?
Which browser/s are you testing?
on a second thought I noticed something (my colleague Dario pointed me on it)
you say
but you're writing on the "Unable to find the Engine" thread. Which is exactly your problem? Do you see the "unable to find the engine...." message or you can't just connect?the binding of domain and host.
you wrote in your hosts file
and then set the LSHost as laptop.mycompany.net. Are you sure that with such setting you can access your local servers through the laptop.mycompany.net address?192.168.1.88 mycompany.net
Note that the name of the http_server element of the lightstreamer conf is just an helper used for logging purposes and has no effect on the system.
HTH
Bookmarks