I'm a newcomer to this whole scenario - I have a JavaScript web app up and running on a Windows 7 machine using Google Chrome, as well as an Android app. I'd like to establish an offline connection between the two to exchange data, keeping in mind that they'll both be connected to the same router or switch.
Unfortunately, changing the Windows 7 OS is not an option.
The burning question here is: what's the best web server for me to install in this case so that my web app (running on Chrome) and the Android app can communicate effectively?
Potentially workable solution:
- I'll go ahead and set up a Node.js server on the Windows machine, creating an event listener that will monitor a specific port within the local network for incoming or outgoing data.
- The Android app can then send new data directly to the designated port of the Node.js server, which will subsequently store the information.
- And lastly, my JavaScript web app in the Chrome browser can periodically query the local server operated by Node.js to check for any new data stored within it.