3
Reply

Get IP address and dns IP of network card

mike Delvotti

mike Delvotti

Dec 13 2013 8:19 AM
3.7k
Guys,

I have seen a lot of examples of how to get the IP addressses of the local network card but they only get the local IP and not default gateway etc. I would like to get the following info and display onto labels on the form:

IP
Subnet mask
Gateway

Preffered DNS server
Alternative DNS

Is it possible? I would run this on form load event.

Answers (3)