VGA connector pinout

Female Male
Pin Signal
1 Red Video
2 Green Video
3 Blue Video
4 Monitor ID Bit 2
5 Ground
6 Red Ground
7 Green Ground
8 Blue Ground
9 Not Used
10 Sync Ground
11 Monitor ID Bit 0
12 Monitor ID Bit 1
13 Horizontal Sync
14 Vertical Sync
15 Monitor ID Bit 3

Shown from wiring side