Java Loopback Address Get getLoopBackAddress()

Here you can find the source of getLoopBackAddress()

Description

get Loop Back Address

License

Open Source License

Declaration

public static InetAddress getLoopBackAddress() throws UnknownHostException 

Method Source Code


//package com.java2s;

import java.net.InetAddress;

import java.net.UnknownHostException;

public class Main {
    public static InetAddress getLoopBackAddress() throws UnknownHostException {
        return InetAddress.getByName("127.0.0.1");
    }//from ww  w . j a va 2 s  .c o m
}

Related

  1. getLoopbackAddress()
  2. getLoopbackAddress()