Which IR chip are you using? Are you using Ethernet or wifi?
I had trouble with some chips that were sensitive to a very clean power supply (which I gather the RPi does not provide) and did not work well with Ethernet cable removed. Ended up using TSOP38238 successfully.