Current IP is 127.0

From: Pascal Berger (pascal.berger_at_timeware.dontspamme.ch)
Date: 02/14/05


Date: Mon, 14 Feb 2005 20:12:17 +0100

I use the following code to get the IP address of a pocket pc device:

string HostName = Dns.GetHostName();
IPHostEntry thisHost = Dns.GetHostByName(HostName);
string thisIpAddr = thisHost.AddressList[0].ToString();

Unfortunatly sometimes this reports 127.0.0.1, when connected with the
craddle.

VxUtil also reports 127.0.0.1 for the curent IP, but also an adapter
(ppp1 or USB Cable, depending on Pocket PC version) with an valid IP
adress. Other applications, like PocketIE are also working fine.

Thanks in advance
Pascal



Relevant Pages

  • Current IP is 127.0
    ... I use the following code to get the IP address of a pocket pc device: ... string HostName = Dns.GetHostName; ... string thisIpAddr = thisHost.AddressList.ToString; ... Unfortunatly sometimes this reports 127.0.0.1, ...
    (microsoft.public.dotnet.framework.compactframework)
  • Current IP is 127.0
    ... I use the following code to get the IP address of a pocket pc ... string HostName = Dns.GetHostName; ... string thisIpAddr = thisHost.AddressList.ToString; ... Unfortunatly sometimes this reports 127.0.0.1, ...
    (microsoft.public.pocketpc.developer.networking)
  • Re: Write File to Network Drive using Wi Fi connection
    ... print Crystal Reports from my app, and writing a file to the Server ... > PC for the users I try to access a shared map. ... The Pocket PC then asks me ...
    (microsoft.public.dotnet.framework.compactframework)
  • Design Patterns for managing Forms
    ... manipulation on a pocket PC ... I have an app that presents the user with a list of reports, ...
    (microsoft.public.pocketpc.developer)
  • Re: better today tasks list
    ... > just reports that you have tasks? ... I was fiddling with Pocket ... Breeze yesterday and posted some screenshots if you want to see what it's ... Dowload Achieve-IT!: http://www.pocketpcaddict.com/Achieve.htm ...
    (microsoft.public.pocketpc)