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!

How to get the active network interface name?

807580Nov 23 2007 — edited Nov 5 2009
Hi All,

Can any one tell me how to get the currently active network interface name (Local Area Connection/ Wireless Network Connection/ other) either by using java SDK or win32 API.

Is there any function to get the active network interface name in java/win32?
Is there any procedure for it to get from observing registry keys.

I found NetworkInterface class in java but not yet succesful in getting the display name of active network interface.

Can anyone help me with partial code?

Please help me.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 3 2009
Added on Nov 23 2007
9 comments
2,005 views