Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

What does "NetworkInterface getDisplayName()" refer to in windows server 2008 ?

Onabu-OracleOct 22 2013 — edited Oct 23 2013

Hi experts,

I want to know what file "NetworkInterface getDisplayName()" refer to in Windows Server 2008 when running java program.

Device Manager doesn't show all network interface like "RAS Async Adapter".

I run the following program.

===========Program================

import java.util.*;

import java.net.NetworkInterface;

import java.net.SocketException;

public class TEST1 {

  public static void main(String[] args) throws SocketException {

  // TODO Auto-generated method stub

  for (Enumeration<NetworkInterface> interfaces = NetworkInterface.getNetworkInterfaces(); interfaces.hasMoreElements();) {

  final NetworkInterface networkInterface = interfaces.nextElement();

  final String displayName = networkInterface.getDisplayName();

  final String name = networkInterface.getName();

      System.out.println("-[DisplayName]:" + displayName+" [Name]:"+name);

      }

   }

}

==========Result===================

-[DisplayName]:Software Loopback Interface 1 [Name]:lo

-[DisplayName]:WAN Miniport (SSTP) [Name]:net0

-[DisplayName]:WAN Miniport (IKEv2) [Name]:net1

-[DisplayName]:WAN Miniport (L2TP) [Name]:net2

-[DisplayName]:WAN Miniport (PPTP) [Name]:net3

-[DisplayName]:WAN Miniport (PPPOE) [Name]:ppp0

-[DisplayName]:WAN Miniport (IPv6) [Name]:eth0

-[DisplayName]:WAN Miniport (Network Monitor) [Name]:eth1

-[DisplayName]:WAN Miniport (IP) [Name]:eth2

-[DisplayName]:RAS Async Adapter [Name]:ppp1

-[DisplayName]:Intel(R) PRO/1000 MT Network Connection [Name]:eth3

-[DisplayName]:Microsoft ISATAP Adapter [Name]:net4

-[DisplayName]:Teredo Tunneling Pseudo-Interface [Name]:net5

-[DisplayName]:Microsoft Loopback Adapter [Name]:eth4

-[DisplayName]:Microsoft ISATAP Adapter #2 [Name]:net6

-[DisplayName]:Intel(R) PRO/1000 MT Network Connection-QoS Packet Scheduler-0000 [Name]:eth5

-[DisplayName]:Intel(R) PRO/1000 MT Network Connection-WFP LightWeight Filter-0000 [Name]:eth6

-[DisplayName]:Microsoft Loopback Adapter-QoS Packet Scheduler-0000 [Name]:eth7

-[DisplayName]:Microsoft Loopback Adapter-WFP LightWeight Filter-0000 [Name]:eth8

-[DisplayName]:WAN Miniport (IPv6)-QoS Packet Scheduler-0000 [Name]:eth9

-[DisplayName]:WAN Miniport (IP)-QoS Packet Scheduler-0000 [Name]:eth10

-[DisplayName]:WAN Miniport (Network Monitor)-QoS Packet Scheduler-0000 [Name]:eth11

Best regards,

Keita

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 20 2013
Added on Oct 22 2013
3 comments
725 views