Code example for InetAddress

Methods: getHostName

0
		}.start();
		 
		 
	} 
 
	private void prepareScan(){ 
 
		try{ 
			targetAddress = InetAddress.getByName(targetHost);
		} 
		catch(UnknownHostException e){
			e.printStackTrace();
		} 
		try{ 
			targetHostName = targetAddress.getHostName();
		} 
		catch(Exception e){
			targetHostName = targetHost;    
		} 
	} 
Connect your IDE to all the code out there  Get Codota for Java