Code example for InetAddress

Methods: getHostName

0
	 * Get string representation of this proxy. 
	 *  
	 * @returns string in the form:proxyHost:proxyPort \t Version versionNumber 
	 */ 
	public String toString() {
		return ("" + proxyIP.getHostName() + ":" + proxyPort + "\tVersion " + version);
	} 
 
	// Public Static(Class) Methods 
	// ============================== 
 
	/** 
	 * Sets SOCKS4 proxy as default. 
	 *  
	 * @param hostName 
	 *            Host name on which SOCKS4 server is running. 
	 * @param port 
	 *            Port on which SOCKS4 server is running. 
	 * @param user 
	 *            Username to use for communications with proxy. 
Contextual code suggestions in your IDE  Get Codota for Java