Click here to Skip to main content
15,890,897 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hey all, I'm coding a Dns program so I have a question that how to get all Ip Address of computer. Such as, Ip Lan, IP Wan, Ip wireless, Ip local, Ip VmWare..v..vv.. I doing in Windows form c#. I need example to reference.Thank for help.
Posted
Comments
Sergey Alexandrovich Kryukov 25-Oct-12 13:59pm    
Of which computer? On the only one, the one running your application? Or something else?
--SA

1 solution

Have a look at this: Retrieving IP and MAC addresses for a LAN[^] - it does more than you need, but if you look at GetIPAddress and GetMacAddress they restrict the list of valid addresses for this PC to a single - you just need to use a less restrictive filter.
 
Share this answer
 
Comments
fjdiewornncalwe 25-Oct-12 15:34pm    
+5. Nice link.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900