Here you can find the source of createSocketAddrForHost(String hostName, int port)
public static InetSocketAddress createSocketAddrForHost(String hostName, int port)
//package com.java2s; //License from project: Apache License import java.net.InetSocketAddress; public class Main { public static InetSocketAddress createSocketAddrForHost(String hostName, int port) { // TODO Auto-generated method stub return null; }/*from ww w .j av a2 s. co m*/ }