Here you can find the source of getLoopBackAddress()
public static InetAddress getLoopBackAddress() throws UnknownHostException
//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 }