• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Access client PCs port from Server

 
Ranch Hand
Posts: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Rancher
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 2908
1
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Rototillers convert rich soil into dirt. Please note that this tiny ad is not a rototiller:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic