GithubHelp home page GithubHelp logo

Comments (6)

picrap avatar picrap commented on August 30, 2024

Hi, there is an event named Request (and a lot of other events) in the FtpClient class. You can subscribe to them and see the issued commands.
Let me know if you need some help.

from ftp.

bzuidgeest avatar bzuidgeest commented on August 30, 2024

Hello,

Wow, very fast reply. I used the events you suggested and got this

Reply:220 WARNING: Unauthorized access to this system is forbidden and will be prosecuted by law. By accessing this system, you agree that your actions may be monitored if unauthorized usage is suspected.
Request:AUTH TLS
Reply:234 AUTH command ok. Expecting TLS Negotiation.
Request:USER ***
Reply:331 Password required
Request:PASS ****
Reply:230 Welcome to the FTP Server of ****, User logged in.
Request:FEAT
Reply:211 Extended features supported:, LANG EN
, UTF8, AUTH TLS;TLS-C;SSL;TLS-P;, PBSZ, PROT C;P;, CCC, HOST, SIZE, MDTM, REST STREAM, END
Request:PBSZ 0
Reply:200 PBSZ command successful.
Request:PROT P
Reply:200 PROT command successful.
Request:TYPE I
Reply:200 Type set to I.
Request:PORT 10,60,8,101,228,170
Reply:501 Server cannot accept argument.

I'm guessing here, but my current thinking is that this is a local network configuration issue. They changed the server and they might have forgotten some networking config in a firewall somewhere.
Thanks for the quick assist.

from ftp.

picrap avatar picrap commented on August 30, 2024

Apparently you are using active connections, which work only if your client has a public IP that the server can reach. Otherwise, you should stick to passive transfers (FtpClientParameters.Passive=true).

from ftp.

bzuidgeest avatar bzuidgeest commented on August 30, 2024

You are right, I recheck previous code and the server requires passive to be true. I must have changed that while testing. unfortunately it just gives me another error:

Reply:220 WARNING: Unauthorized access to this system is forbidden and will be prosecuted by law. By accessing this system, you agree that your actions may be monitored if unauthorized usage is suspected.
Request:AUTH TLS
Reply:234 AUTH command ok. Expecting TLS Negotiation.
Request:USER ***
Reply:331 Password required
Request:PASS ****
Reply:230 Welcome to the FTP Server of IT-Workz, User logged in.
Request:FEAT
Reply:211 Extended features supported:, LANG EN*, UTF8, AUTH TLS;TLS-C;SSL;TLS-P;, PBSZ, PROT C;P;, CCC, HOST, SIZE, MDTM, REST STREAM, END
Request:PBSZ 0
Reply:200 PBSZ command successful.
Request:PROT P
Reply:200 PROT command successful.
Request:TYPE I
Reply:200 Type set to I.
Request:PASV
Reply:227 Entering Passive Mode (,,127,18,19,160).
Exception thrown: 'ArxOne.Ftp.Exceptions.FtpTransportException
Socket error to ..127.18

I can reach the server from local desktop, but I'm debugging on a remote server. On the remote server also cannot connect using filezilla. Should have tested that first :(. So must be a local network problem. Thanks again for the support.

p.s. It worked before and only started to malfunction after server upgrade to use TLS, the admins over here must have made a mistake.

from ftp.

picrap avatar picrap commented on August 30, 2024

Not sure it's their fault, unfortunately. We had trouble with FileZilla server and I never really understood why. If you have time for tests and fix, you are welcome :)

from ftp.

bzuidgeest avatar bzuidgeest commented on August 30, 2024

Sorry, must be a translation error. We are mostly doing development work on remote desktops/machines (rdp) over here. So server and client lines get blurred somewhere sometimes. I was referring to testing with the filezilla client on local and on a remote machine, and then connecting to the same Microsoft ftp server. We are not using FileZilla server so I cannot help diagnose that. I have now verified that the code works on local but not remote clients. That means fire walling somewhere. So you are not saving our network guys :) from work :)

from ftp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.