Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6232227
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T10:04:52+00:00 2026-05-24T10:04:52+00:00

I want to write a Simple P2P RDP Client and Server in Python. This

  • 0

I want to write a Simple P2P RDP Client and Server in Python.
This is how I Sketched it out.

  1. Take Screenshots in short Interval
  2. Compress them and send to the server application
  3. Get Keyboard, Mouse events from server application. Serialize them and send to client. Client will unserialize them and will use SendInput Calls to reflect them

and What I need to know is

  1. Do there exist and rdp library in Python that I can use to simplify my Job ?
  2. How to get Keyboard or Mouse Event from Server Operator with Python ?
  3. Whats the easiest and simplest way of serialization of events ?
  4. How can I measure the relative X,Y coordinates of Mouseevent ?
  5. can you provide any example thats easy to follow ?
  6. and the Final question I’ve heard it will be easier to do it in .net if both the platforms are using Microsoft derivative OS. Is it true ?

My Client Application will run in Windows XP,Vista,7 and the server Application will run on Windows/Linux
and also Please mention If I am missing something.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T10:04:53+00:00Added an answer on May 24, 2026 at 10:04 am

    Some time ago I wrote something called easyrfb which, too, is based on python-vnc-viewer, but I never published it. It does not cover exactly what you asked, but it is very similar. In the hope it might be helpful, parts of it now can be found at http://hydra.geht.net/easyrfb/

    Note that the files there are not always in a working state, because the files are directly linked to my working copy. But I am not editing often.

    It’s now available on GitHub, too: https://github.com/hilbix/pyrfb/tree/easyrfb

    This it what it does at my side:

    • Connect to a locally running Xvnc (technically any VNC server will do)
    • Continuously write the current screen contents to a highly compressed test.jpg
    • Some web page grabs that using AJAX and updates an image
    • Mouse clicks on that image are forwarded to the VNC server as mouse clicks
    • Keyboard input can be simulated using forms
    • And one can take lossless PNG screenshots
    • There is an edit.html to do fuzzy matching based on the PNG screenshots (called templates)
    • Shell scripts can check if such templates are matched or wait for them to match.

    The internal communication is done using TCP, Unix-Sockets and some files, so it’s not difficult to change it such, that every component runs at a different location:

    • The VNC server (the screen to show)
    • rfbimg.py (which does VNC -> image and offers the control .sock)
    • The shell scripts (if needed, using sendsock.py to talk to .sock)
    • The web service (AJAX, and GET image) with stubs (forwarding commands to .sock)
    • The controlling web client (any browser, even lynx or telnet can do)

    Please do not ask me for documentation! Use the source, Luke!

    Mental health warning! The complete picture is a big and ugly grown unclean pile of headache-inducing-facepalm creating bits of mostly unrelated randomly placed complex scripts with wrong and misleading names, unclean copies, uncommented and unfinished half-edits, everything hardcoded to exactly one single machine, probably needing some undocumented local 10 year old tweaks to nonupgraded packages, or even older stuff. So I will not hand out everything. (And even if this sounds familiar, nope, I am not working for Microsoft.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to write a simple SSL HTTP client in Python and have heard
I want to write a simple server socket in Ruby, which, when a client
I want to write a simple client-server application using corba and java. I'm using
I want to write a simple chat-client in Ruby for the terminal. The Problem
I want to write a simple P2P test app which uses HTTP as underlying
I want to write a simple python web application to provide a gui to
I just want to write a simple text file: ofstream test; test.clear(); test.open(test.txt,ios::out); float
I am doing some simple programs with opencv in python. I want to write
i'm trying to write simple C openssl client and server. Here is client's code:
I want to write a simple, dumb, X terminal emulator in C on a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.