UtilWebGeoLocate(String) Method

Estimates the real-world geographic location of a host name.

Definition

Namespace: DevCase.Core.Networking.Common
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static GeoInfo GeoLocate(
	string hostname
)

Parameters

hostname  String
The host name to geolocate (eg. "http://google.com").

Return Value

GeoInfo
A GeoInfo instance that represents the geographic location info.

Remarks

About Geolocation: http://en.wikipedia.org/wiki/Geolocation

This geolocation service is powered by: http://geoiptool.com/

Example

This is a code example.
C#
No code example is currently available or this language may not be supported.

Exceptions

HttpListenerException The returned gegraphic location info is empty due to an unknown error. or The server cannot properly process the request. Please, ensure the host name or IP address is valid.

See Also