File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes General Computing and the fly likes Access client PCs port from Server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » General Computing
Bookmark "Access client PCs port from Server" Watch "Access client PCs port from Server" New topic
Author

Access client PCs port from Server

Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

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.


[LEARNING bLOG] | [Freelance Web Designer] | [and "Rohan" is part of my surname]
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

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.


[Jess in Action][AskingGoodQuestions]
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

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

Joined: Mar 06, 2001
Posts: 13459

Also consider JavaFX (may still be limited) and Web Start (can still be Swing, but reduces version and distribution concerns)
Sagar Rohankar
Ranch Hand

Joined: Feb 19, 2008
Posts: 2902
    
    1

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://aspose.com/file-tools
 
subject: Access client PCs port from Server