View Single Post
  #2 (permalink)  
Old 11-16-2007, 12:09 PM
JavaBean's Avatar
JavaBean JavaBean is offline
Moderator
 
Join Date: May 2007
Posts: 1,272
JavaBean is on a distinguished road
1. Check this tutorial. It is very clear and has simple examples. For handling multiple clients you will need to modify single client code a little bit. The basic idea is handling each connected client with a separate thread but you define what you will do in that thread..

2. Yes you can obtain IP/hostname. Check javadoc of ServerSocket class. Details are there.
Reply With Quote