Hi I am doing android development, and found something weird while using socket API.
Between sockets that I created from
ServerSocket server = new ServerSocket(4444);
Socket client = server.accept();
and
client.getPort();
is not 4444.
Since the port number is almost random, the client cannot communicate with server application. Any piece of information or advice will be helpful!
The full sample project is here.
http://vext.eclipselabs.org.codespot.com/files/SocketTest.zip
Thanks in advance!