public static String getLocalIPFromServerSocketAsString ( ) throws UnknownHostException , IOException { InetAddress inetAddress = null ; inetAddress = IPResolver . getLocalIPFromServerSocket ( 10000 , 20000 ) ; return IPResolver . getIP ( inetAddress ) ; }
Gets the ip address from the local host as String . It use a ServerSocket object to get it .