Fixed a few bugs in the client and server code.

Fixed exception when creating ServerSocket.
Fixed bug with command line arguments on ChatClient.