//network 연결시 예외public class ConnectMain { public static void main(String[] args) throws IOException { unknownHostEx1(); unknownHostEx2(); connectionRefused(); } //이상한 IP 접근 private static void unknownHostEx1() throws IOException { try { Socket socket = new Socket("999.999.999.999", 80); } catch (UnknownHostException e) { ..