안드로이드 프로젝트에서
 
Socket socket = new Socket(host, ip);
이렇게 하면 소켓생성?을 못하구요..
ㅈㅏ바프로젝트에서는 문제없이 되는데 왜 안드로이드 프로젝트에서는 안되는지 모르겠어용..
 
그리고
InetSocketAddress socketAddress = new InetSocketAddress(hostName, portNumber);
Socket socket = new Socket();
socket.connect(socketAddress, 3000);
이렇게 바꾸면 connect부분이 안됩니다. ㅠㅠ
 
도와주세요.. ㅠㅠㅠㅠㅠㅠㅠㅠㅠ