using System;
using System.Net;
namespace Test
{
public class TestClass
{
public static void Main()
{
IPAddress address =
Dns.GetHostByName(Dns.GetHostName()).AddressList[0];
Console.WriteLine(address.ToString());
}
}
}
-Brian
-----Original Message-----
From: Chinh Tran [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 28, 2010 5:59 AM
To: [EMAIL PROTECTED];
[EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [C#.NET] How to get dynamic IP
Hi all,
My computer is connected to internet by ADSL.
When my modem turn on, ISP will provide a IP ( dynamic IP) for me
I want to know how to get the IP?
Please help me.
Thanks
Chinh Tran
| Yahoo! Groups Sponsor |
| Get unlimited calls to U.S./Canada |
Yahoo! Groups Links
- To visit your group on the web, go to:
http://groups.yahoo.com/group/CSharpNET/
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
