Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Access client PCs port from Server

 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers,

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 .

Any thoughts will be appreciated.
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ..

So what say, any inputs?
 
David O'Meara
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also consider JavaFX (may still be limited) and Web Start (can still be Swing, but reduces version and distribution concerns)
 
Sagar Rohankar
Ranch Hand
Posts: 2907
1
Java Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic