D-Sub ports are used for connecting external devices to a computer. They are an older method of connection, but some modern computers still contain them. These ports are gradually being replaced by more efficient connection technology, such as USB and Thunderbolt.