Is it possible to create a LAN connection between clients, with a browser application and a running program as a "server"?

Suppose I create a client application in html and javascript. Each user in the same building, on the same Local Area Network (LAN), has a client application on his computer. The web application runs in the browser, for example, you can open the html file in your browser. (An example of what you could enter in the address bar C: //users/username/.../app.htm)

Then one client is a server, as in a multiplayer game, where you can play together on a local network. Javascript can send HTTP requests or connect via a socket, but you need something like an http address to get a connection to another device on the local network via a LAN network. This can be easily done in the application java*. My idea is to create a java program that processes the connection through the local network. The application running in the browser must communicate with the java program, and the java program communicates with the server / clients via the local network.

Is it possible to create something like this? I think this is about the connection between the browser and the Java executable.

  • [*] Java should not be confused with javascript

So, is it really possible to create something that works in a browser, and can it communicate with an independent program on one device?

+4
source share

All Articles