public static String getLocalHostName() throws UnknownHostException, SocketException { try { InetAddress localhost = InetAddress.getLocalHost(); return localhost.getHostName(); } catch (UnknownHostException e) { return getLocalAddressAsString(); } }
public static String getLocalHostName() throws UnknownHostException, SocketException { try { InetAddress localhost = InetAddress.getLocalHost(); return localhost.getHostName(); } catch (UnknownHostException e) { return getLocalAddressAsString(); } }
public static String getLocalHostName() throws UnknownHostException, SocketException { try { InetAddress localhost = InetAddress.getLocalHost(); return localhost.getHostName(); } catch (UnknownHostException e) { return getLocalAddressAsString(); } }
public static String getLocalHostName() throws UnknownHostException, SocketException { try { InetAddress localhost = InetAddress.getLocalHost(); return localhost.getHostName(); } catch (UnknownHostException e) { return getLocalAddressAsString(); } }
public static String getLocalHostName() throws UnknownHostException, SocketException { try { InetAddress localhost = InetAddress.getLocalHost(); return localhost.getHostName(); } catch (UnknownHostException e) { return getLocalAddressAsString(); } }