title: How to make connection between two laptops at different location
body: <p>I have developed a chat application in java in which i want to connect with different peoples at different places. So how it can be done?
  As i have connected two laptops through adhoc network(wireless) in same room but now want to connect with friend where both are at different location.</p>