Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6850779
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:10:00+00:00 2026-05-27T01:10:00+00:00

Going to try and be brief I’ve written a custom FTP implementation using c#

  • 0

Going to try and be brief

I’ve written a custom FTP implementation using c# .net 3.5. The system uses TcpClient (TcpListener for active mode) for managing connections. Been getting strange behavior in a single instance and I would like to ask for possible causes.

The client itself works great in house and a good percentage of our clients are satisfied with it. However, we have one that I can’t figure out. I’ve been sent wireshark traces to poke around in but no real joy. The client machine is behind what I believe (from client description) to be a big network infrastructure. From outside the network, the connection to the same server works like a charm. Here is what I’m seeing.

With my client, operating in passive mode, tcp handshake request goes is sent out for the data connection (server enters passive mode and specifies port), but is never acknowledged. This causes retries and eventual timeout.

With the Filezilla (and windows explorer, and IE…) client, again using passive mode, the connection goes through without issue. Annoyingly, this is causing the client and my boss to point fingers at the code.

Going through the wireshark traces I can’t see any differences between TCP frames. All control connections hit port 21 and are acknowledged in both scenarios. Flags are similar. Same applies to the data connection except it is a high numbers port 52000+ (but not the same in the traces i have) in this instance.

I’m no expert in network programming when we start getting into lower level protocol issues and my understanding of larger network caveats is very limited. As the developer I immediately cry “FIREWALL ISSUE” but that doesn’t really solve anything for anyone.

To finalise, does anyone know what sort of hardware / firewalling that can cause this sort of behavior? I’m suspecting something blocking traffic on an application level but you never know.

Thanks for reading.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T01:10:01+00:00Added an answer on May 27, 2026 at 1:10 am

    Well shine my shoe. Would you believe it, turns out this is probably user error after all.

    The big question hanging over this is ‘why does filezilla and windows work but your software does not’. Well I finally got a trace from the server side of things to tell me what is going on.

    Seems filezilla and windows fall back to active mode but fail to tell you. Due to port 20 (passive mode, control host port) and 21 (active mode, client data port) being well known, networking hardware may allow it (and often does, regardless of firewall settings).

    Our software however, does not fall back automatically to active mode because as a feature it is not recommended by FTP circles. Instead, active mode is a seperate option to pick when setting up the connection. Curiously, it is the outgoing client handshake request that is being zapped by the firewall but stranger things have happened. I’m going to wash my hands of this one and potentially put and automatic fallback into our client.

    EDIT: Yeh, the user has a proxy on their network that they didn’t tell us about. Sound the pebcak alert!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm going to try to explain what I mean using a few examples: socket()
I was going to try using JDBC and an sqlite driver to save information
I am going to try to build a PHP website using a framework for
I am going to try using NHibernate, the reason I stayed away from NHibernate
I'm going to try to use the WebClient object in .NET to grab the
I'm going to try to rephrase and genericize these two questions: Custom Android OS
I'm going to try to ask my question in the context of a simple
I'm going to try to explain the problem. I am getting a string containing
Leading on from my previous questions I am going to try and clarify one
Ok, I'm going to try to make this more clear because my last question

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.