chas williams - CONTRACTOR wrote: if your fix is to remove the htons(), that is wrong. you should just remove the reference to sin_family. people get the impression that sin_family is actually used if you set it. I disagree. It may not be used in any implementation we care about today, but can you guarantee it will never be used?