-----------------------------------------------------------
New Message on cochindotnet
-----------------------------------------------------------
From: Cenray
Message 4 in Discussion
Hello Dolly, I have tried that, but it gives only static IP address, I want the
Dynamic IP address. The code is
string HostName = Dns.GetHostName();
IPHostEntry ipEntry = Dns.GetHostByName (HostName);
IPAddress [] addr = ipEntry.AddressList;
textBox1.Text =HostName;
textBox2.Text = "";
for (int i = 0; i < addr.Length; i++)
{
if (textBox2.Text != "") textBox2.Text = textBox2.Text + " ## ";
textBox2.Text = textBox2.Text + addr[i].ToString();
} I am working in a Windows 2000 Network, When I tried to access the IP address it
gives the IP in the local network (eg: 10.0.0.20), it can be used to communicate in
the local network, but it cannot be used outside the local network. When I connected
to the internet, i think there is a unique IP address for me in the whole internet, to
identify me, it varies each time i connected to the internet( that's why i called
dynamic IP) Is it Correct or not? I want that IP address? Regards, Cenray
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/cochindotnet/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you received
this message by mistake, please click the "Remove" link below. On the pre-addressed
e-mail message that opens, simply click "Send". Your e-mail address will be deleted
from this group's mailing list.
mailto:[EMAIL PROTECTED]