I
Ignacio Machin \( .NET/ C# MVP \)
Hi,
You can know the IP of the device you do that in the same way you do it on
the desktop:
Dns.GetHostByName( Dns.GetHostName() ).AddressList[0];
I typed the above line, so be careful !
Now what I don't know if you can do is detect a RAS connection be
established. of course if you do it fmor your application you have no
problem, otherwise what you can do is use a worker thread to detect when it
change and rise an event.
Cheers,
You can know the IP of the device you do that in the same way you do it on
the desktop:
Dns.GetHostByName( Dns.GetHostName() ).AddressList[0];
I typed the above line, so be careful !
Now what I don't know if you can do is detect a RAS connection be
established. of course if you do it fmor your application you have no
problem, otherwise what you can do is use a worker thread to detect when it
change and rise an event.
Cheers,