First, you must build a programming cable
P4 Remote Programmer version 1.1, Lyn-Com
Cellware 2.4 can program a variety of phones, including the NEC P4.