title: Connect to remote system through socket
body: <p>Am trying to connect to a remote system which is not in the same local area as mine through java sockets, can anyone share some sample code or docs to do so.</p>
  
  <p>I have created a server socket and is listening for connection at a port.how can i connect to that socket from my client program that is not in the same local area network as the server.</p>
  
  <p>Thanks in advance.. </p>