Re: I want to get the wlan IP address for the PPC
- From: "mcruz" <mcruz@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 1 Aug 2005 12:46:05 -0700
this works. i get back 3 "IPaddresses". how can i tell which of these are
assoicated with the WLAN?
--
Maria Cruz
MTC Technologies.com
"Omar [MS]" wrote:
> instead of passing in "localhost" try passing in the string you get from
> gethostname.
>
>
> --
> This posting is provided "AS IS" with no warranties, and confers no rights.
> Please do not send
> email directly to this alias. This alias is for newsgroup purposes only.
>
>
>
> "mcruz" <mcruz@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> news:2717D342-A43C-4B7C-8995-75EA3279348B@xxxxxxxxxxxxxxxx
> >I am using C#, is there a way to get the IP for the PPC associated with the
> > WLAN? I tried
> >
> > // Get DNS host information.
> > IPHostEntry hostInfo = Dns.Resolve("localhost"); //VNETUSBA1
> > // Get the DNS IP addresses associated with the host.
> > IPAddress[] IPaddresses = hostInfo.AddressList;
> >
> > if (IPaddresses.Length > 0)
> > {
> > hostAddress = IPaddresses[0];
> > ipToUse = hostAddress.ToString();
> > }
> >
> > ---------------------
> > BUT all i get is "127.0.0.1". I am connected to an wireless access point
> > using dhcp. I know the address is 192.168.8.X but i want to programically
> > get it cause it could change.
> > thanks for any help
> > --
> > Maria Cruz
> > MTC Technologies.com
>
>
>
.
- Follow-Ups:
- Re: I want to get the wlan IP address for the PPC
- From: Omar [MS]
- Re: I want to get the wlan IP address for the PPC
- Prev by Date: WaitForMultipleObjects for Pocket PC
- Next by Date: Re: WaitForMultipleObjects for Pocket PC
- Previous by thread: WaitForMultipleObjects for Pocket PC
- Next by thread: Re: I want to get the wlan IP address for the PPC
- Index(es):
Relevant Pages
|
Loading