We want to build an web based application, The details are:
We have to create web based Java application, where the server
is able to access the clients PC's port, like say, If we want to show
his/her webcam to other people, we need to access his webcam, drivers.
So once he's is logged in to our web application, I want to show the video to
other logged person, using his web cam.
So in short, can I access a user/clients machine port/driver/adapter from my web server?
So, you can say that, its an web based chatting application , where users can see each other using his/her web cam .
In general, no, you can't do this. Many if not most clients are going to be behind a firewall or NAT box, anyway, right? The general solution: you have to turn the problem around, and put some software on the client that connects back to the server.
Ernest Friedman-Hill wrote: The general solution: you have to turn the problem around, and put some software on the client that connects back to the server.
After much thought and as per your suggestion, we are ready to develop a desktop Swing application. which our client downloads with JRE and all the required drivers. Then its able to get the data from clients PCs USB port and send to central DB server which is on internet ..
David O'Meara wrote:Also consider JavaFX (may still be limited) and Web Start (can still be Swing, but reduces version and distribution concerns)
hmm, JavaFX heard a lot but never read about it.. I think its for RIA (like an applet ??), but Is it possible to access a client PC using JavaFX code running on browser ??
And about Web Start, Its a .jnlp file which fetch the application from server side but execute at clients JVM ?
Please correct me If I'm wrong somewhere.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.