Is there any way to discover if a local network interface has it’s address assigned via DHCP or if it is statically set through Java?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
So, as you requested Win NT ‘solution’ only, here is my code.It lists network interfaces with current configured values.
Note EnableDHCP registry key value, I think this is the point.
As I already mentioned in comment under your question, you need as least simple JNI wrapper.
Hope this helps.
more info here : http://support.microsoft.com/kb/314053
Simple output: