hi when iam trying to connect to the server an exception occurs.it occurs in the statement gethostbyname(host) the exception that occured states that as invalid argument.when iam first connecting its works.when iam trying to connect for second time it throws an exception.so anybody help me regarding this regards suresh