doing little network projects for identification interfaces of computer.
Id like to just use Ping, DNS, TCP to achieve it.
Eg. I give google.pl as hostname, I obtain ip.
string host = "google.pl";
IPAddress[] address = Dns.GetHostAddresses(host);
Ok iv got IP. Now how can I check witch interface it use to communicate?
If I understand what you want to do correctly, then it’s impossible. There are thousands of different protocols the computer could be using to communicate, many of them proprietary. And even if you somehow managed to detect all of the protocols used today, new ones are going to come into existence.