Working with Network Interfaces
in Java |
Prof. David Bernstein
|
Computer Science Department |
bernstdh@jmu.edu |
java.net.NetworkInterface
ClassNetworkInterface
Objects:
NetworkInterface.getNetworkInterfaces()
methodgetSubinterface()
and getParent()
retrieve subinterfaces (a.k.a., virtual interfaces) and
parent interfaces respectivelygetHardwareAddress()
returns the hardware
(e.g., MAC for Ethernet) addressgetMTU()
returns the maximum transmision unitisLoopback()
isUp()
isVirtual()
supportsMulticast()