How to differentiate between Ir transmitter/recv

I do not know what the parts you have in your hand look like, but the Transmitter is normaly a "LED" with 2 "legs" and on the "receiver" you can expect 3 legs: 2 for power and 1 for output signal.

Peter.