Pcap is a library to capture traffic coming in on a device for any port, not just a single one. It will even capture traffic to a TCP/UDP port that's not even open. This means that it won't bind to any single port, but will watch the traffic at a very low level. If you want to transfer data between two machines, use the OS networking routines (socket/bind/connect/...) instead of Pcap.