solve the port confliction problem and the pcap buffer problem