Hi Ciju, The errno Connection refused will be prompted when nobody is listening on the port to which u sent your data using sendto on the other end. So bind a socket with the port number on which you are about to sendto and make a try. This will work. Thanks, Ramesh Ciju John wrote: > Hi all, > I am using kernel 2.2.14-5.0smp. I keep getting " Connection > refused" on repeated 'sendto' calls. > Am I correct in saying that the only reason for this error is > 'non-availability of ports'. I have tested for data being sent to > non-listening ports, but cannot reproduce the error. Any help would be > greatly appreciated. > sincerely, > Ciju > > - > : send the line "unsubscribe linux-net" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html - : send the line "unsubscribe linux-net" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html