서버쪽

import java.io.InputStream;
import java.io.OutputStream;
import java.net.ServerSocket;
import java.net.Socket;

public class Server1 {
 public static void main(String[] args) {
  ServerSocket ss = null;
  Socket s = null;
  try {
   ss = new ServerSocket(8000);
   s = ss.accept();
   
   InputStream is = s.getInputStream();
   OutputStream os = s.getOutputStream();
   byte arr[] = new byte[100];
   is.read(arr);
   System.out.println(new String(arr));
   
   String str = "Hello Client";
   os.write(str.getBytes());
  } catch (Exception e) {
   System.out.println(e.getMessage());
  } finally {
   try {
    s.close();
    ss.close();
   } catch (Exception e) {
    
   }
  }
 }
}


클라이언트쪽

import java.io.InputStream;
import java.io.OutputStream;
import java.net.Socket;

public class Client1 {
 public static void main(String[] args) {
  Socket s = null;
  try {
   s = new Socket("127.0.0.0", 8000);
   InputStream is = s.getInputStream();
   OutputStream os = s.getOutputStream();
   
   String str = "hello server";
   os.write(str.getBytes());
   
   byte arr[] = new byte[100];
   is.read(arr);
   System.out.println(new String(arr));
  } catch (Exception e) {
   System.out.println(e.getMessage());
  } finally {
   try {
    s.close();
   } catch (Exception e) {
  
   }
  }
 }
}


서버 실행시키고 클라이언트 실행시키면 된다는데 실행하니까

Connection timed out: connect
이렇게 떠요 뭐가 잘못된거죠?