Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
End Users
Pocket PCActiveSyncMultimediaEBooksWirelessSmartPhones
Developers
Windows MobileSmartPhonesWinCE ProgrammingVB for WinCEVC++ for WinCEPlatform BuilderTest Tools
PocketPC DirectoryFree SoftwareWeb Resources
Related Topics
PalmMobile PhonesMore Topics ...

Pocket PC Forum / Developers / Windows Mobile / July 2008

Tip: Looking for answers? Try searching our database.

Problem with retrieving address of dns server

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
badzio - 31 Jul 2008 15:40 GMT
Hi,
Hi,

I want to get address of dns server which is used on pda.
I tried many ways and:
1) GetAdaptersAddresses() works fine on smartphone, doesn't work on
pocketpc (returns 'dns disabled', dns address is empty or 127.0.0.1)
2) OpenNETCF.Net.NetworkInformation.IPInterfaceProperties doesn't work
at all. On PocketPC
OpenNETCF.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces()
returns no interfaces, for smartphone only one and dns is 127.0.0.1.
3) On PocketPC I can read registry key "HKEY_LOCAL_MACHINE\Comm\VEM
\Parms\TcpIp", value "DNS" and there is information about dns. But
this key doesn't exist on Smartphone

So does it mean that is no common api function to read address of dns
server?
Unfortunetly I don't have now any PDA, so I've tested my code on
emulators. Do you know if GetAdapterAddresses() works fine on each
smartphone and if each pocketpc contans mentioned registry key?

I've tested vxipconfig and vxutil and these applications works fine on
ppc and smartphone. So my problems are not related with device or
network configuration. Something wrong with API and calling
getnetworkparams.

Could you help me?

Regards
Chris Tacke, eMVP - 31 Jul 2008 16:04 GMT
What sort of network interface are you testing with?
GetAllNetworkInterfaces() should return anything registered with NDIS, which
includes even things like a USB connection.  Admittedly we've done very
little testing on emulators (largely becasue I don't trust them and no one
is using one in the field anyway, so real iron is where tests should be
run).

Signature

Chris Tacke, Embedded MVP
OpenNETCF Consulting
Giving back to the embedded community
http://community.OpenNETCF.com

> Hi,
> Hi,
[quoted text clipped - 25 lines]
>
> Regards
badzio - 31 Jul 2008 20:15 GMT
I test opennetcf on emulator which is connected via activesync (dma)

On 31 Lip, 17:04, "Chris Tacke, eMVP" <ctacke.at.opennetcf.dot.com>
wrote:
> What sort of network interface are you testing with?
> GetAllNetworkInterfaces() should return anything registered with NDIS, which
[quoted text clipped - 38 lines]
>
> > Regards
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.