title: Using SSL with server client socket communication on android-j2se
body: <p>I am making a very small scale application with server - client model where server is a j2se application and client is a android application.</p>
  
  <p>The server would be hosted with Dynamic DNS and needs to be portable as in changing domain name.</p>
  
  <p>Now with SSL this could be problematic as the certificate is required to have a identifiable server address , either domain name or IP , both of which might change. I assume it is to prevent someone from masquerading as the server sending the same public key from a different location.</p>
  
  <p>So how should I cope with this situation?</p>