View Single Post
  #2 (permalink)  
Old 07-14-2007, 07:57 PM
Erel
Pupil
Join Date: Nov 2007
Posts: 29

When using Activesync the pc host name is always "PPP_PEER".
So you could get the IP with:
Code:
IPHostEntry host = Dns.GetHostByName("PPP_PEER");
string IP = host.AddressList[0].ToString();
 
Reply With Quote