Accessing a service running on localhost using Javascript

The case is pretty straightforward (in my opinion). The client has their own application running on their machine that generates value pairs. What I am trying to accomplish is when this service is started and the user visits my web service, I want to get these value pairs with JavaScript code in the clients browser. I haven't decided because I'm not sure which server should create pairs or how to capture them using JS. I tried using pubnub to set up a communication channel, but round trips are slow. Any suggestions?

+3


source to share


1 answer


You can access your local HTTP server (LAMP / WAMP) for AJAX calls with javascript via addresses 127.0.0.1

or localhost

.



+2


source







All Articles