Socket EndConnect problem

Tech-Archive recommends: Speed Up your PC by fixing your registry

From: Joshua Frank (jfrank_at_removeluncheonmeat-archimetrics.com)
Date: 11/02/04


Date: Tue, 02 Nov 2004 14:01:22 -0500

Hi All,

I'm having a strange Socket problem. I wrote a little FTP tool using
asynchronous sockets. While connecting to a certain FTP server
(actually a printer to which I print by FTP'ing a control file) I get a
weird error when I call EndConnect:

"No connection could be made because the target machine actively refused it"

But the strange thing is that if I don't call EndConnect at all, it
works and I can upload just fine. I guess I don't understand what
EndConnect really does. I have hunted all over the web and find lots of
documentation that says basically that it ends the connection that you
start with BeginConnect, but what does it really DO? And why would I
get an error when calling it but have the FTP server work anyway if I
just omit the call? Any ideas here? TIA.

Cheers,
Josh



Relevant Pages

  • Microsoft FTP Server problem on W2K?
    ... We have a mainframe at work that FTPs file to a Microsoft W2K FTP server ... Microsoft FTP server can create both teh control and data ports for the ... connection; rather than requiring the mainframe to create the data port. ... the data connection MUST use the same IP address as the ...
    (microsoft.public.inetserver.iis.security)
  • Re: Microsoft FTP Server problem on W2K?
    ... Please note that both the Mainframe and Microsoft FTP Server is on same ... > connection; rather than requiring the mainframe to create the data port. ... the data connection MUST use the same IP address as ...
    (microsoft.public.inetserver.iis.security)
  • Re: .NET CF Socket are behaving very strangely
    ... Set the PASV range for the FTP server to 1027 - 3500. ... My data connection works for ports ...
    (microsoft.public.pocketpc.developer)
  • Re: Remote rebooting
    ... I'll bet you need to make a connection as administrator to the PC (using IPC$ as shown above) ... The machine is running under admin and I can add/modify/delete any files in any folder with either VNC or CuteFTP Pro. ... I can log in with CuteFTP PRO and do what I want with files etc. Seems odd to me that the ftp server is running yet apparently the Windows task manage isn't starting scheduled tasks. ... Even if I can't recover from this hang I need to setup a fool proof way to reboot this system. ...
    (microsoft.public.win2000.cmdprompt.admin)
  • Re: IPSwitch, Inc. WS_FTP Server
    ... > bounce attack as well as PASV connection hijacking. ... > The FTP bounce vulnerability allows a remote attacker to cause the ... > anonymously along with any internal addresses that the FTP server has ... That means it's got to handle a PORT ...
    (Bugtraq)