Simple TCP/IP Example (Send Class Object Over Network)

  Download Code
Downloads:674 Bookmark this code Bookmark and Share
Rank : 4/5
Rated by : 2 user(s)
Developer:Junaid Shabbir  |   35 submission(s)
Date Uploaded:November 07,2007
Level:Begginer
Size: 1.74 KB
Category:Java -> Network Applications
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();


User Reviews
There are no user reviews on this code
Leave a Comment
Age (Required, will not be shown)
Name
Email (Required, will not be shown)
Website (Optional, starting with http://)
 
Rate this code
Poor   1 2 3 4 5   Outstanding
Are you human ?

Enter the code shown above