using
System;
using
ForAspNet.IPInfo;
namespace
example
{
class
Class1
{
[STAThread]
static
void
Main(
string
[]
args)
{
ForAspNet.IPInfo.License.LicenseKey =
"<put license code here>"
;
IPInfo ipi =
new
IPInfo();
CountryInfo ci = ipi.GetInfoByHostAddress(
"67.123.175.17"
);
Console.WriteLine(
"Country Code:\t{0}\n"
+
"Country Code:\t{1} (3 letters)\n"
+
"Country Name:\t{2}\n"
+
"Currency Code:\t{3}\n"
+
"Currency Name:\t{4}\n"
+
"Currency:\t{5}\n"
+
"Capital:\t{6}\n"
+
"Region:\t\t{7}"
,
ci.CountryCode, ci.CountryCode3,
ci.CountryName, ci.CurrencyCode, ci.CurrencyName,
ci.CurrencyName, ci.Capital, ci.Region);
Console.WriteLine(
"\nPress Enter to exit..."
);
Console.ReadLine();
}
}
}