Socket s = new Socket ("123.112.221.111", 7777);

boolean result = s.isConnected();

if(result) System.out.println("서버에 연결됨");

else System.out.println("서버에 연결실패");

+ Recent posts