Ok, lets turn this around.

You have computer running an internal NIC, no DNS configured, and an
external one - from your provider. You log into the internet.

Will you get both IP addresses using GetHostByName? Is actually your
DnsHostName valid?

What about when you are NOT connected to the internet and run this on
one of this automated networks?

Regards

Thomas Tomiczek
THONA Consulting Ltd.
(Microsoft MVP C#/.NET)



-----Original Message-----
From: Duncan Godwin [mailto:[EMAIL PROTECTED]] 
Sent: Freitag, 19. April 2002 18:44
To: [EMAIL PROTECTED]
Subject: Re: [DOTNET] Finding out the IP-Address of a PC


There was a thread back in feb with some other issues relating to this,
here's a code sample:

http://discuss.develop.com/archives/wa.exe?A2=ind0202D&L=DOTNET&P=R53001
&m=3
8243

----- Original Message -----
From: "Thomas Tomiczek" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 19, 2002 5:22 PM
Subject: Re: [DOTNET] Finding out the IP-Address of a PC


Duncan,

He had a solution using WMI.

The problem is that this has to work on Windows 98 - WMI is not
available there :-) Just exploded in our face.


Regards

Thomas Tomiczek
THONA Consulting Ltd.
(Microsoft MVP C#/.NET)



-----Original Message-----
From: Duncan Godwin [mailto:[EMAIL PROTECTED]]
Sent: Freitag, 19. April 2002 18:20
To: [EMAIL PROTECTED]
Subject: Re: [DOTNET] Finding out the IP-Address of a PC


Search through the archives there are quite a few examples of this
without using WMI.

Duncan
----- Original Message -----
From: "Reggie Burnett" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 19, 2002 5:00 PM
Subject: Re: [DOTNET] Finding out the IP-Address of a PC


> I've heard of people capturing the output of ping of ipconfig.  Ugly 
> but works.
>
> -----Original Message-----
> From: dotnet discussion [mailto:[EMAIL PROTECTED]]On Behalf 
> Of Jan Dropczynski
> Sent: Friday, April 19, 2002 8:02 AM
> To: [EMAIL PROTECTED]
> Subject: [DOTNET] Finding out the IP-Address of a PC
>
>
> Hi everyone,
> does anyone know, how can I read the ip addresses from PC's network
adapter
> if I can NOT use WMI.
> My WinApplication should display the addresses. That's works fine in
WinXP,
> but on Win98 I cannot use WMI!
> Is there's a solution??
>
> Regards,
> Jan
>
> You can read messages from the DOTNET archive, unsubscribe from 
> DOTNET, or subscribe to other DevelopMentor lists at 
> http://discuss.develop.com.
>
> You can read messages from the DOTNET archive, unsubscribe from 
> DOTNET, or subscribe to other DevelopMentor lists at 
> http://discuss.develop.com.

You can read messages from the DOTNET archive, unsubscribe from DOTNET,
or subscribe to other DevelopMentor lists at http://discuss.develop.com.

You can read messages from the DOTNET archive, unsubscribe from DOTNET,
or subscribe to other DevelopMentor lists at http://discuss.develop.com.

You can read messages from the DOTNET archive, unsubscribe from DOTNET,
or subscribe to other DevelopMentor lists at http://discuss.develop.com.

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to