Win a copy of Java by Comparison (eBook) this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

NetworkInterface getNetworkInterfaces() method lists 40+ interfaces when I have just two.  RSS feed

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is the code that I'm running.



I have just 2 of them. I don't know where is the code getting those interfaces from. What do I do?
Thanks in advance.
 
author
Sheriff
Posts: 23381
128
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Perhaps it would help if you tell us what the 40 interfaces are? Can you quote the printout?

Additionally, can you run "ifconfig" (or "ipconfig" for windows) to show us the full listing?

Henry
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!