Java Local Host Get getLocalHost()

Here you can find the source of getLocalHost()

Description

Gets the set localhost address

License

Open Source License

Return

The localhost address

Declaration

public static InetAddress getLocalHost() 

Method Source Code

//package com.java2s;

import java.net.InetAddress;

public class Main {
    private static InetAddress localhost = null;

    /**/*from   w  w  w  .  ja  va 2 s .co m*/
     * Gets the set localhost address
     * @return The localhost address
     */
    public static InetAddress getLocalHost() {
        return localhost;
    }
}

Related

  1. createLocalHostID(int size)
  2. getAllLocalHostNames()
  3. getCanonicalLocalHostName()
  4. getCanonicalLocalHostName()
  5. getLocalHost()
  6. getLocalhost()
  7. getLocalHost()
  8. getLocalHost()
  9. getLocalHost()