P
Pascal Berger
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
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