Windows desktop screen sharing for Android via Wi-Fi How do I share desktop screen on Android, and control my Desktop PC through Android?

UPDATE based on OP's comments (geffchang): How do I program this? Which libraries can I use for this? I want to make my own server for this.
You can use TeamViewer for Remote Control for this. Download the app for your phone from the link and download the software for your PC from http://www.teamviewer.com

On screen tips will show you how to proceed with remote sharing.

Both the devices must be connected to WiFi.