|
Java™ by example!
|
|
|
How do I get a list of network interfaces installed on my machine?
If you have multiple IP addresses on one machine, it may be useful to specify which one to use for your networking stuff. Since JDK1.4, you can enumerate them and select one with the class java.net.NetworkInterface. Main.java:
outputs on my Win2000 machine:
Further Information
Author of answer: Joris Van den Bogaert
Comments to this answer are only viewable by members. Login or become a member!
|
|
|
|
|