Conclusion
This chapter presented the Intercom project, a fun application that uses its own connection over the Internet, as well as Java methods, to communicate.
All you have to do is to start up Intercom 1 on one machine. Intercom 1 functions as the server, and after you start it, it'll wait for a connection from Intercom 2 over the port the Intercom project uses (in this case, 8765, but you can change it simply by editing the code).
After Intercom 1 is running, start Intercom 2. Enter the IP address of Intercom 1 into the text field in Intercom 2 (if you're using broadband, you should have a fixed IP address; take a look in the Control Panel in Windows, for example, and open the Broadband icon, or ask your broadband ISP how to determine your ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access