Windows

NAVIGATION
CATEGORIES
REFERRENCE
LINKS
  • FTP as system service: Cannot convert port 'ftp-data'

    9 answers - 332 bytes - related search similar search Add To My Delicious Add To My Stumble Upon Add To My Google Mark Add To My Facebook Add To My Digg Add To My Reddit

    I'm trying to port the ftp server demo to a system service, however when I connect I get this error in the ftp client:
    451: Failed: connect: WSocketResolvePort: Cannot convert port 'ftp-data'. Error #11004
    Unable to complete transfer
    Any idea why it gets that error when running as a system service ?
  • No.1 | | 1536 bytes | |

    Do you have a firewall "rule" that used to allow the server (as an
    application) run, but does not allow the server (as a service) run for port
    20
    (Sygate can have advanced rules like this)

    'ftp-data' is typically port 20 (see system32\drivers\etc\services)
    lines 1880, 1926, 2216, 2279, 3245 of FtpSrv.pas for example are where the
    data port gets bound as 'ftp-data'
    Perhaps your client or service does not have security privileges to the
    system32\drivers\etc\services list and therefore cannot work out that
    ftp-data is 20 ?
    Try logging the service on (temporarily, for testing purposes only) as the
    administrator (you can do this in the service manager)
    and also make sure your client is logged on with full privileges

    I'm only guessing, since I have never come across this error before
    hth, David

    Message
    From: "brian" <ics (AT) dreaminghost (DOT) com>
    To: "ICS support mailing" <twsocket (AT) elists (DOT) org>
    Sent: Friday, August 12, 2005 12:15 PM
    Subject: [twsocket] FTP as system service: Cannot convert port 'ftp-data'

    I'm trying to port the ftp server demo to a system service, however when I
    connect I get this error in the ftp client:

    451: Failed: connect: WSocketResolvePort: Cannot convert port 'ftp-data'.
    Error #11004
    Unable to complete transfer
    >
    >
    >

    Any idea why it gets that error when running as a system service ?
  • No.2 | | 1045 bytes | |

    I'm trying to port the ftp server demo to a system service,
    however when I connect I get this error in the ftp client:

    451: Failed: connect: WSocketResolvePort: Cannot
    convert port 'ftp-data'. Error #11004
    Unable to complete transfer
    Any idea why it gets that error when running as a system service ?

    This error is from winsock when the component try to get the port number corresponding to the port
    name "ftp-data". You either have your <WindowsDir>\System32\Drivers\Etc\Services file missing or
    corrupted, or the account on which your service run has no permission to that system file and
    winsock can't resolve protocol names to protocol port numbers. If this error also occur with normal
    applications, then you ahve probably been hacked by a virus. Some of them mess the tcp/ip settings
    up.

    A quick hack would be to replace all occurences of 'ftp-data' by '20' in the component source code.
    course it is better to fix your system configuration.
  • No.3 | | 2310 bytes | |

    I checked the file, it seems to be ok, and there's no viruses in my system
    either. Running admin account
    Where else can I check for what's wrong ?

    Thanks.

    # Copyright (c) 1993-1999 Microsoft Corp.
    #
    # This file contains port numbers for well-known services defined by IANA
    #
    # Format:
    #
    # <service name<port number>/<protocol[aliases] [#<comment>]
    #

    echo 7/tcp
    echo 7/udp
    discard 9/tcp sink null
    discard 9/udp sink null
    systat 11/tcp users #Active users
    systat 11/tcp users #Active users
    daytime 13/tcp
    daytime 13/udp
    qotd 17/tcp quote #Quote of the day
    qotd 17/udp quote #Quote of the day
    chargen 19/tcp ttytst source #Character generator
    chargen 19/udp ttytst source #Character generator
    ftp-data 20/tcp #FTP, data
    ftp 21/tcp #FTP. control

    Message
    From: "Francois Piette" <francois.piette (AT) overbyte (DOT) be>
    To: "ICS support mailing" <twsocket (AT) elists (DOT) org>
    Sent: Friday, August 12, 2005 08:40
    Subject: Re: [twsocket] FTP as system service: Cannot convert port
    'ftp-data'


    >I'm trying to port the ftp server demo to a system service,
    >however when I connect I get this error in the ftp client:
    >>

    >451: Failed: connect: WSocketResolvePort: Cannot
    >convert port 'ftp-data'. Error #11004
    >Unable to complete transfer
    >Any idea why it gets that error when running as a system service ?
    >

    This error is from winsock when the component try to get the port number
    corresponding to the port
    name "ftp-data". You either have your
    <WindowsDir>\System32\Drivers\Etc\Services file missing or
    corrupted, or the account on which your service run has no permission to
    that system file and
    winsock can't resolve protocol names to protocol port numbers. If this
    error also occur with normal
    applications, then you ahve probably been hacked by a virus. Some of them
    mess the tcp/ip settings
    up.

    A quick hack would be to replace all occurences of 'ftp-data' by '20' in
    the component source code.
    course it is better to fix your system configuration.
  • No.4 | | 475 bytes | |

    Sometimes the files is K but not at the right place. The virus change the
    location of the file specified in the registry, so the system doesn't find
    it.
    But to be sure, just run the program (or ICS demo) as a normal program and
    see if you have the error also.
    If you have Norton Security, disable it, at least for testing. IM it's a
    bad product.
    Disable any firewall or security system you may have (disconnect from the
    internet to be safe).
  • No.5 | | 1287 bytes | |

    You are right. I tried to run the ftp server demo as a normal app and it
    failed to resolve "ftp" port. Something happened in the last few days since
    it was working earlier. I am quite sure I haven't been infected by a virus
    though, I keep a good security profile on my system. I don't have norton,
    don't like it either. As for an antivirus I use Kaspersky.

    How could I debug this problem to find where the error lies in the system ?
    Maybe some registry setting ?

    Thanks

    Message
    From: "Francois PIETTE" <francois.piette (AT) overbyte (DOT) be>
    To: "ICS support mailing" <twsocket (AT) elists (DOT) org>
    Sent: Friday, August 12, 2005 18:22
    Subject: Re: [twsocket] FTP as system service: Cannot convert port
    'ftp-data'

    Sometimes the files is K but not at the right place. The virus change the
    location of the file specified in the registry, so the system doesn't find
    it.
    But to be sure, just run the program (or ICS demo) as a normal program and
    see if you have the error also.
    If you have Norton Security, disable it, at least for testing. IM it's a
    bad product.
    Disable any firewall or security system you may have (disconnect from the
    internet to be safe).
  • No.6 | | 4993 bytes | |

    Hello Brian,

    The folder where the file is in a registry key. It is mentioned once a
    while in this group. Eventually try the searchable archive.

    Rgds, Wilfried
    http://www.mestdagh.biz

    Friday, August 12, 2005, 19:04, brian wrote:

    You are right. I tried to run the ftp server demo as a normal app and it
    failed to resolve "ftp" port. Something happened in the last few days since
    it was working earlier. I am quite sure I haven't been infected by a virus
    though, I keep a good security profile on my system. I don't have norton,
    don't like it either. As for an antivirus I use Kaspersky.

    How could I debug this problem to find where the error lies in the system ?
    Maybe some registry setting ?

    Thanks

    Message
    From: "Francois PIETTE" <francois.piette (AT) overbyte (DOT) be>
    To: "ICS support mailing" <twsocket (AT) elists (DOT) org>
    Sent: Friday, August 12, 2005 18:22
    Subject: Re: [twsocket] FTP as system service: Cannot convert port
    'ftp-data'


    >Sometimes the files is K but not at the right place. The virus change the
    >location of the file specified in the registry, so the system doesn't find
    >it.
    >But to be sure, just run the program (or ICS demo) as a normal program and
    >see if you have the error also.
    >If you have Norton Security, disable it, at least for testing. IM it's a
    >bad product.
    >Disable any firewall or security system you may have (disconnect from the
    >internet to be safe).
    >--
    >francois.piette (AT) overbyte (DOT) be
    >http://www.overbyte.be
    >>

    >Message
    >From: "brian" <ics (AT) dreaminghost (DOT) com>
    >To: "ICS support mailing" <twsocket (AT) elists (DOT) org>
    >Sent: Friday, August 12, 2005 5:42 PM
    >Subject: Re: [twsocket] FTP as system service: Cannot convert port
    >'ftp-data'
    >>
    >>

    I checked the file, it seems to be ok, and there's no viruses in my system
    either. Running admin account
    Where else can I check for what's wrong ?

    Thanks.

    # Copyright (c) 1993-1999 Microsoft Corp.
    #
    # This file contains port numbers for well-known services defined by IANA
    #
    # Format:
    #
    # <service name<port number>/<protocol[aliases] [#<comment>]
    #

    echo 7/tcp
    echo 7/udp
    discard 9/tcp sink null
    discard 9/udp sink null
    systat 11/tcp users #Active users
    systat 11/tcp users #Active users
    daytime 13/tcp
    daytime 13/udp
    qotd 17/tcp quote #Quote of the day
    qotd 17/udp quote #Quote of the day
    chargen 19/tcp ttytst source #Character generator
    chargen 19/udp ttytst source #Character generator
    ftp-data 20/tcp #FTP, data
    ftp 21/tcp #FTP. control

    Message
    From: "Francois Piette" <francois.piette (AT) overbyte (DOT) be>
    To: "ICS support mailing" <twsocket (AT) elists (DOT) org>
    Sent: Friday, August 12, 2005 08:40
    Subject: Re: [twsocket] FTP as system service: Cannot convert port
    'ftp-data'

    I'm trying to port the ftp server demo to a system service,
    however when I connect I get this error in the ftp client:

    451: Failed: connect: WSocketResolvePort: Cannot
    convert port 'ftp-data'. Error #11004
    Unable to complete transfer
    Any idea why it gets that error when running as a system service ?

    This error is from winsock when the component try to get the port number
    corresponding to the port
    name "ftp-data". You either have your
    <WindowsDir>\System32\Drivers\Etc\Services file missing or
    corrupted, or the account on which your service run has no permission to
    that system file and
    winsock can't resolve protocol names to protocol port numbers. If this
    error also occur with normal
    applications, then you ahve probably been hacked by a virus. Some of
    them
    mess the tcp/ip settings
    up.

    A quick hack would be to replace all occurences of 'ftp-data' by '20' in
    the component source code.
    course it is better to fix your system configuration.

    --
    francois.piette (AT) overbyte (DOT) be
    http://www.overbyte.be

    --
    To unsubscribe or change your settings for TWSocket mailing list
    please goto
    Visit our website at http://www.overbyte.be

    --
    To unsubscribe or change your settings for TWSocket mailing list
    please goto
    Visit our website at http://www.overbyte.be
    >>

    >--
    >To unsubscribe or change your settings for TWSocket mailing list
    >please goto
    >Visit our website at http://www.overbyte.be
    >>

    >
  • No.7 | | 5359 bytes | |

    I found the folder in the registry, under

    HKEY_LCAL_MACHINE\SYSTEM\CurrentControlSet\Service s\Tcpip\Parameters
    DataBasePath: %SystemRoot%\System32\drivers\etc

    Message
    From: "Wilfried Mestdagh" <wilfried (AT) mestdagh (DOT) biz>
    To: "ICS support mailing" <twsocket (AT) elists (DOT) org>
    Sent: Friday, August 12, 2005 19:29
    Subject: Re: [twsocket] FTP as system service: Cannot convert port
    'ftp-data'

    Hello Brian,

    The folder where the file is in a registry key. It is mentioned once a
    while in this group. Eventually try the searchable archive.

    Rgds, Wilfried
    http://www.mestdagh.biz

    Friday, August 12, 2005, 19:04, brian wrote:
    >
    >You are right. I tried to run the ftp server demo as a normal app and it
    >failed to resolve "ftp" port. Something happened in the last few days
    >since
    >it was working earlier. I am quite sure I haven't been infected by a
    >virus
    >though, I keep a good security profile on my system. I don't have norton,
    >don't like it either. As for an antivirus I use Kaspersky.
    >
    >How could I debug this problem to find where the error lies in the system
    >?
    >Maybe some registry setting ?
    >
    >Thanks
    >
    >Message
    >From: "Francois PIETTE" <francois.piette (AT) overbyte (DOT) be>
    >To: "ICS support mailing" <twsocket (AT) elists (DOT) org>
    >Sent: Friday, August 12, 2005 18:22
    >Subject: Re: [twsocket] FTP as system service: Cannot convert port
    >'ftp-data'
    >
    >

    Sometimes the files is K but not at the right place. The virus change
    the
    location of the file specified in the registry, so the system doesn't
    find
    it.
    But to be sure, just run the program (or ICS demo) as a normal program
    and
    see if you have the error also.
    If you have Norton Security, disable it, at least for testing. IM it's
    a
    bad product.
    Disable any firewall or security system you may have (disconnect from
    the
    internet to be safe).
    --
    francois.piette (AT) overbyte (DOT) be
    http://www.overbyte.be

    Message
    From: "brian" <ics (AT) dreaminghost (DOT) com>
    To: "ICS support mailing" <twsocket (AT) elists (DOT) org>
    Sent: Friday, August 12, 2005 5:42 PM
    Subject: Re: [twsocket] FTP as system service: Cannot convert port
    'ftp-data'

    I checked the file, it seems to be ok, and there's no viruses in my
    system
    either. Running admin account
    Where else can I check for what's wrong ?

    Thanks.

    # Copyright (c) 1993-1999 Microsoft Corp.
    #
    # This file contains port numbers for well-known services defined by
    IANA
    #
    # Format:
    #
    # <service name<port number>/<protocol[aliases] [#<comment>]
    #

    echo 7/tcp
    echo 7/udp
    discard 9/tcp sink null
    discard 9/udp sink null
    systat 11/tcp users #Active users
    systat 11/tcp users #Active users
    daytime 13/tcp
    daytime 13/udp
    qotd 17/tcp quote #Quote of the day
    qotd 17/udp quote #Quote of the day
    chargen 19/tcp ttytst source #Character
    generator
    chargen 19/udp ttytst source #Character
    generator
    ftp-data 20/tcp #FTP, data
    ftp 21/tcp #FTP. control

    Message
    From: "Francois Piette" <francois.piette (AT) overbyte (DOT) be>
    To: "ICS support mailing" <twsocket (AT) elists (DOT) org>
    Sent: Friday, August 12, 2005 08:40
    Subject: Re: [twsocket] FTP as system service: Cannot convert port
    'ftp-data'

    I'm trying to port the ftp server demo to a system service,
    however when I connect I get this error in the ftp client:

    451: Failed: connect: WSocketResolvePort: Cannot
    convert port 'ftp-data'. Error #11004
    Unable to complete transfer
    Any idea why it gets that error when running as a system service ?

    This error is from winsock when the component try to get the port
    number
    corresponding to the port
    name "ftp-data". You either have your
    <WindowsDir>\System32\Drivers\Etc\Services file missing or
    corrupted, or the account on which your service run has no permission
    to
    that system file and
    winsock can't resolve protocol names to protocol port numbers. If this
    error also occur with normal
    applications, then you ahve probably been hacked by a virus. Some of
    them
    mess the tcp/ip settings
    up.

    A quick hack would be to replace all occurences of 'ftp-data' by '20'
    in
    the component source code.
    course it is better to fix your system configuration.

    --
    francois.piette (AT) overbyte (DOT) be
    http://www.overbyte.be

    --
    To unsubscribe or change your settings for TWSocket mailing list
    please goto
    Visit our website at http://www.overbyte.be

    --
    To unsubscribe or change your settings for TWSocket mailing list
    please goto
    Visit our website at http://www.overbyte.be

    --
    To unsubscribe or change your settings for TWSocket mailing list
    please goto
    Visit our website at http://www.overbyte.be

    --
  • No.8 | | 778 bytes | |

    You are right. I tried to run the ftp server demo as a normal app and it
    failed to resolve "ftp" port. Something happened in the last few days
    since
    it was working earlier. I am quite sure I haven't been infected by a virus
    though, I keep a good security profile on my system. I don't have norton,
    don't like it either. As for an antivirus I use Kaspersky.

    Sorry but the symptoms make me really think you have been infested at one
    time by a virus. It has probably been eradicated, but his effect are still
    there.

    How could I debug this problem to find where the error lies in the system
    ?
    Maybe some registry setting ?

    It is probably easier to completely remove TCP/IP protocol from your system
    and reinstall it.
  • No.9 | | 60 bytes | |

    And what about the value ? Does it point where the file is ?

Re: FTP as system service: Cannot convert port 'ftp-data'


max 4000 letters.
Your nickname that display:
In order to stop the spam: 1 + 0 =
QUESTION ON "Windows"

EMSDN.COM