Fairly easy to do. What you need for the pc is a usb to Ir adaptor.click here like this.
You install the software for the adaptor before you plug it into the PC. When the software is installed you plug the adaptor into the usb socket. It will find the new hardware and install the device. The device will now keep scanning for any Ir device with in direct range.
It will most probably need the phone software installed on the computer so the computer can recognise the phone. It will then tell you that the phone is in range. You will need to authorise your phone to accept the external Ir signal.