networking - How to determine which Interface belongs to each Network Destination - Java? -
If my host is connected to several subnets (through different routes), how do I interface the same for the given IP Can I get it?
In other words, when you are trying to use another host (or network destination, if you use the root print in Windows, CMD), then I How can I read the actual interface?
Right now I am considering opening a CMD window, using the root print, parsing the output and writing your own method to determine whether the IP address xxx.xx.xx.xxx Network Destination Xxx.xx.0.0, related to the mask. .] And then to read this interface value, but definitely there should be an easy way.
The short answer is that there is no real answer to this.
I have to check how my interface with the device is communicated with 11.135.20.30 (for example).
What did I do, the device I want to reach and then strip it and want to read feedback packages there I found the destination IP and hence the interface address which I had searched.
Comments
Post a Comment