Here you can find the source of parseInetAddressFromString(String input)
public static InetAddress parseInetAddressFromString(String input)
//package com.java2s; //License from project: Open Source License import java.net.InetAddress; public class Main { public static InetAddress parseInetAddressFromString(String input) { try {/*from w ww . jav a 2 s .c o m*/ InetAddress address = InetAddress.getByName(input); return address; } catch (Exception ex) { return null; } } }