Results 1 to 16 of 16
  1. #1
    raeesaa is offline Member
    Join Date
    Sep 2012
    Location
    Pune
    Posts
    10
    Rep Power
    0

    Question Java Remote desktop Controller

    Hi. This is Raeesaa. I am an MCS sudent and doing a project called Remote Desktop Controller in java. In this, a server machine accesses a remote client machine and performs different events on client machine. I know the basics of core and advanced java. I would like to know what technologies should I use in order to access the contents of remote machine. Thank you.

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,255
    Rep Power
    25

    Default Re: Java Remote desktop Controller

    How are the client and server connected? What protocol(s) can they use to communicate?


    server machine accesses a remote client machine and performs different events on client machine.
    Normally its done the other way. The client asks the server to do things.
    If you don't understand my response, don't ignore it, ask a question.

  3. #3
    raeesaa is offline Member
    Join Date
    Sep 2012
    Location
    Pune
    Posts
    10
    Rep Power
    0

    Default Re: Java Remote desktop Controller

    yeah normally client asks server to do things. But in this project server machine will control or I can say access the contents of client machine. When the connection is established between server and client, the screenshots of client will be sent on server machine continuously and whatever mouse or key events server will perform on this screenshot should be instantly reflected on client machine. It should appear as if server is accessing client machine remotely. What classes should I use to do so other than Robot class?
    Thanks for replying. :)

  4. #4
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,255
    Rep Power
    25

    Default Re: Java Remote desktop Controller

    How are the server and client connected? For example via the internet and IP addresses
    What protocol will they use to communicate? For example: HTTP or FTP
    If you don't understand my response, don't ignore it, ask a question.

  5. #5
    raeesaa is offline Member
    Join Date
    Sep 2012
    Location
    Pune
    Posts
    10
    Rep Power
    0

    Default Re: Java Remote desktop Controller

    they are connected via internet.. I l b using socket programming to establish the connection..
    And protocol HTTP..

  6. #6
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,255
    Rep Power
    25

    Default Re: Java Remote desktop Controller

    You could use Socket and ServerSocket classes and other classes in the java.net package. Also the Apache project has packages that could be useful.
    If you don't understand my response, don't ignore it, ask a question.

  7. #7
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,255
    Rep Power
    25

    Default Re: Java Remote desktop Controller

    If you don't understand my response, don't ignore it, ask a question.

  8. #8
    raeesaa is offline Member
    Join Date
    Sep 2012
    Location
    Pune
    Posts
    10
    Rep Power
    0

    Default Re: Java Remote desktop Controller

    Ya, it is the same project. I m aware of Socket and ServerSocket. I'm facing problems in sending the right mouse coordinates to the client machine.

  9. #9
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,255
    Rep Power
    25

    Default Re: Java Remote desktop Controller

    What is the problem? Can you explain in more detail? Aren't mouse coordinates just pairs of numbers: X & Y?
    If you don't understand my response, don't ignore it, ask a question.

  10. #10
    raeesaa is offline Member
    Join Date
    Sep 2012
    Location
    Pune
    Posts
    10
    Rep Power
    0

    Default Re: Java Remote desktop Controller

    yeah mouse coordinates are pair of numbers : x and y but the screen resolutions of client desktop and server desktop may differ. Wont that affect the events to be performed on client machine? The events may not be synchronized.

  11. #11
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

    Default Re: Java Remote desktop Controller

    Quote Originally Posted by raeesaa View Post
    the screen resolutions of client desktop and server desktop may differ.
    Then you need to apply a scaling transform.

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  12. #12
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,255
    Rep Power
    25

    Default Re: Java Remote desktop Controller

    Yes different screen sizes will be a problem.
    If you don't understand my response, don't ignore it, ask a question.

  13. #13
    raeesaa is offline Member
    Join Date
    Sep 2012
    Location
    Pune
    Posts
    10
    Rep Power
    0

    Default Re: Java Remote desktop Controller

    Quote Originally Posted by DarrylBurke View Post
    Then you need to apply a scaling transform.
    Thanks for your reply. What logic should I use for transformation? Sorry, I am not understanding how to do it.

  14. #14
    raeesaa is offline Member
    Join Date
    Sep 2012
    Location
    Pune
    Posts
    10
    Rep Power
    0

    Default Re: Java Remote desktop Controller

    Quote Originally Posted by Norm View Post
    Yes different screen sizes will be a problem.
    Yeah. What can I do to synchronize events?

  15. #15
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,188
    Rep Power
    19

    Default Re: Java Remote desktop Controller

    Quote Originally Posted by raeesaa View Post
    Thanks for your reply. What logic should I use for transformation? Sorry, I am not understanding how to do it.
    How would you do it without a computer? Take a sheet of paper and draw two rectangles of different sizes. Make a dot in one of the rectangles. How would you calculate the position of a dot in the other rectangle that corresponded, proportionally, to the position of the first dot?

    db
    If you're forever cleaning cobwebs, it's time to get rid of the spiders.

  16. #16
    raeesaa is offline Member
    Join Date
    Sep 2012
    Location
    Pune
    Posts
    10
    Rep Power
    0

    Default Re: Java Remote desktop Controller

    Thank you! I'll try to do it.

Similar Threads

  1. remote desktop hanldling
    By Animesh123 in forum Networking
    Replies: 9
    Last Post: 02-23-2012, 04:17 PM
  2. Remote Desktop sharing (java)
    By ravitejvaranasi in forum Networking
    Replies: 8
    Last Post: 04-13-2011, 06:34 AM
  3. Replies: 2
    Last Post: 08-10-2010, 05:15 PM
  4. Remote Desktop Application
    By Drango in forum CLDC and MIDP
    Replies: 2
    Last Post: 05-17-2010, 11:22 PM
  5. How to read a .EML file present on Remote Desktop?
    By anil@prokarma in forum New To Java
    Replies: 0
    Last Post: 06-12-2008, 02:05 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •