Java InetAddress Create getFullHostName(InetAddress netAddress)

Here you can find the source of getFullHostName(InetAddress netAddress)

Description

get Full Host Name

License

Open Source License

Declaration

private static String getFullHostName(InetAddress netAddress) 

Method Source Code


//package com.java2s;
import java.net.*;

public class Main {
    private static String getFullHostName(InetAddress netAddress) {
        if (null == netAddress) {
            return null;
        }//www  . ja v  a2  s  . com
        String name = netAddress.getCanonicalHostName(); // get full host address
        return name;
    }
}

Related

  1. getExternalAddresses(InetAddress[] addresses)
  2. getFQDN(final InetAddress addr)
  3. getFreePort(InetAddress ipAddress)
  4. getFreeSocket(InetAddress bindAddress, int portRangeStart, int portRangeEnd)
  5. getFreeTCPPort(InetAddress ipAddress)
  6. getHashFromAddress(final InetAddress address)
  7. getHostAddress(InetAddress address)
  8. getHostAddress(InetAddress anAddress)
  9. getHostAddress(InetAddress host)