I highly recommend the ESi MIDIMATE eX:
Fair price for its class, reliable, and each port automatically senses what it's plugged into and toggles the function between either input or output. Can also be used as a 2x in or 2x out.
J