I'm making a Server/Client program that sends and receives data between them. The program is working perfectly on the emulator, but when testing it on a real android device through WIFI it can't connect to the server.
Server Side
ServerSocket serverSocket = new ServerSocket(44444);
Socket clientSocket = serverSocket.accept();
Client Side
Socket socket = new Socket("192.168.1.2", 44444);
The problem isn't in sending data, it's in the connection establishment. That Android phone doesn't see the server side !