How can I get the local machine's IP address in a Windows app ?
-
How can I get the local machine's IP address in a Windows app ?
-
How can I get the local machine's IP address in a Windows app ?
-
How can I get the local machine's IP address in a Windows app ?
-
How can I get the local machine's IP address in a Windows app ?
System.Net.IPAddress[] MyIPs = System.Net.Dns.GetHostAddresses(Environment.MachineName);
Harvey Saayman - South Africa Software Developer .Net, C#, SQL
you.suck = (you.Occupation == jobTitles.Programmer && you.Passion != Programming)
1000100 1101111 1100101 1110011 100000 1110100 1101000 1101001 1110011 100000 1101101 1100101 1100001 1101110 100000 1101001 1101101 100000 1100001 100000 1100111 1100101 1100101 1101011 111111 -
How can I get the local machine's IP address in a Windows app ?
Hi, All previous replies lead to your local IP address, i.e. the address as seen on your LAN; when connecting to the Internet, the outside world may see you at a different address though, and you need an external server to tell you that address, have a look here[^]. :)
Luc Pattyn
Have a look at my entry for the lean-and-mean competition; please provide comments, feedback, discussion, and don’t forget to vote for it! Thank you.
Local announcement (Antwerp region): Lange Wapper? Neen!
-
How can I get the local machine's IP address in a Windows app ?