I'm doing some experimentation with sending/getting data from internet using PcapDotNet, starting with this example.
What bothers me is, that here you've got to select a device to send your packets through. When I was doing some higher level (even socket) programming, I've never had to deal with this issue. Is there any way to auto select network device to use, except pinging the server you want to contact using each of the devices? How is this normally done?