Results 1 to 1 of 1
- 10-13-2009, 05:12 PM #1
Member
- Join Date
- Oct 2009
- Posts
- 1
- Rep Power
- 0
NetworkInterface returns only ports that are up
Hi,
I need to list all the Ethernet ports on the system where my application is running?
I'm using the NetworkInterface class to get all the interfaces and then filtering out the Ethernet ports.
But, it seems that:
only returns ports that are configured & up.Java Code:NetworkInterface.getNetworkInterfaces()
Is there any way I could get all the ports including ones that are down (like ifconfig -a for e.g. on UNIX)?
Thanks,
GP
Similar Threads
-
What's the need for co-variant returns ?
By ajeeb in forum New To JavaReplies: 0Last Post: 03-23-2009, 09:56 AM -
opening ports
By prashant in forum NetworkingReplies: 2Last Post: 03-22-2009, 08:23 PM -
Looking for servers on ports
By Java Tip in forum Java TipReplies: 0Last Post: 12-13-2007, 09:28 AM -
Ports In Java
By Peter in forum Advanced JavaReplies: 2Last Post: 07-02-2007, 06:44 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks