|
Developer Says:
This sample code makes use of TCP/IP sockets to send an Object from sender to receiver (Sender and receiver can be on the same computer as in this example, or different computers with network connection between them). To run this code, open two instances of Command Prompt(Terminal), first to run the sender and the other for receiver. If you want to run this example on 2 different computers, then use InetAddress.getByName("pc-name") in the sender code in place of InetAddress.getLocalHost();
|