Detect local ip after ras connection is established...

  • Thread starter Thread starter Ignacio Machin \( .NET/ C# MVP \)
  • Start date Start date
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,
 
Is there a.(vb.net) way to detect the local ip a pocket pc got after
connecting with a rasconnection ?

Best regards,
mobile Boy
 
Thank you Ignacio, that was exactly what I needed

Ignacio Machin ( .NET/ C# MVP ) said:
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,

--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation

Mobile Boy 36 said:
Is there a.(vb.net) way to detect the local ip a pocket pc got after
connecting with a rasconnection ?

Best regards,
mobile Boy
 
Back
Top