I want to have a SSL encrypted TCP server on the android device and a client on the computer which will connect to the device.
I create a SSLServerSocket on the Android
You are right that there is a reverse DNS lookup that is timing out. In certain Java Runtime Environments, during the handshake with a raw IP address, the SSLContext unnecessarily performs a lookup of the server's IP address. This is to determine if the common name of the server certificate matches. Try using one of the solutions mentioned here:
How to disable Java's SSL Reverse DNS Lookup