string ip = "128.186.4.192"; XmlDocument doc = new XmlDocument(); doc.Load("http://freegeoip.appspot.com/xml/"+ip); string citta = doc.GetElementsByTagName("City").Item(0).InnerText;