Hi,
in vb.net
Dim localEndPoint As New
IPEndPoint(Dns.Resolve(Dns.GetHostName()).AddressList(0), 0)
localEndPoint.Address.ToString will give you the IP
Pete
--
Pete Vickers
Microsoft Windows Embedded MVP
HP Business Partner
http://www.gui-innovations.com
Do have an opinion on the effectiveness of Microsoft Windows Mobile and
Embedded newsgroups? Let us know!
https://www.windowsembeddedeval.com/...ity/newsgroups
"Naveen Mukkelli" <(E-Mail Removed)> wrote in
message news:5DB5A78C-A705-4B49-AC85-(E-Mail Removed)...
> Hi,
>
> I want to detect the IP address of my Pocket PC at run time.
> I am using C#, obviously .NET Compact Framework.
> Could any one let me know the procedure,
> Example code would be great.
>
> Cheers,
>
> Naveen.