try { InetAddress ia = InetAddress.getByName("10.3.45.6"); } catch(UnknownHostException e) { System.out.println("This should never print."); e.printStackTrace(); }