Such plug can be very useful when writing into serial connection write programme. This connection can receive and transmit data using one COM-port, the data sent will be immediately received.
Loopback Plug Wiring Diagram