Find IP of Desktop PC from PPC Activesync Connected

G

Guest

Hello All,

I have a web service running on my machine through which PPC connects and
data synchronization happens.

I am passing the computername/IP address of desktop PC to the web service
constructor in Reference.cs reading from an XML settings file.
The problem is if the IP address is DHCP configured, PPC could not resolve
the DNS. If IP address is non static the user has to update XML Settings file
frequently.
I tried with GetHostByName() where IP address is given by Activesync and not
the original one.

My question Is there a way we can find out the IP address of the desktop PC
from PPC connected via ActiveSync.
Is anybody have faced a similar problem, how to go about to solve this
problem.

Please somebody throw some light on this.

Thanks in advance,
Arunkumar.
 
G

Guest

Hello All,

I am yet to solve this problem, Is anyone from Microsoft, MVPs can help me
in this.

Thanks in advance,
Arunkumar
 
G

Guest

It just worked fine, Thanks a lot Sergey, you are simply great. But pp_peer
will give the IP address assigned by Active Sync internally to the machine
that it connects to right. So if we switch to WLAN this will not work right?
Anyway this works for me now, thanks again.

Arunkumar.
 
S

Sergey Bogdanov

Yes, you are right for WLAN it won't work. However, in that case you
should use either domain or static IP...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top