What socket number are you trying to connect on. It may be intercepted by other protocol daemons eg. SMTP etc., or may be rejected by firewall if > 1000 (nonsecure socket numbers). Antivirus software also blocks certain sockets because of the threat of trojan software that is floating around like Back Orifice.
And you better not be using 139 either.
Sorry I can't be of anymore help,
BigBird.