The paper introduces the classical communication method used by computer and how to realize the communication by virtual parallel and serial port based on the USB port and Windows operation system. It also gives out the hardware design to create the virtual port and the detail to use the virtual port.