public static string GetHostName ()
{
#if TARGET_JVM
return java.net.InetAddress.getLocalHost ().getHostName ();
#else
string hostName;
bool ret = GetHostName_internal(out hostName);
if (ret == false)
throw new SocketException(11001);
return hostName;
#endif
}