Homebrew Question FTp Application

  • Thread starter Thread starter luius
  • Start date Start date
  • Views Views 68,395
  • Replies Replies 127
I have an update for anyone experiencing the "stat '/license-request.dat' : 2 No such file or directory" issue. Try scanning your microSD card from your PC and repairing any errors.

I've been transferring files manually all day and randomly my PC decides to tell me there's an error with the drive LONG after I started having issues with FTP. I thought, alright sure, scan - repair. Cool. Kept doing normal homebrew stuff. Then it hit me that this rando file everyone keeps talking about was probably the source of the corruption. Even now for all I know it might not have been, but one of the next things I tried was FTPD and it just works out of the blue... So... Maybe an alternative to formatting the entire drive is to just repair the drive.

I'd love to hear if this works consistently with anyone else experiencing the issue.
 
Last edited by radrom,
Just updated to that new file and am still getting the same error -

I was just telling my FTP client to goto specific folder instead of root, ie "/switch" to get around this.
Eventually I just popped the SD back into a PC and deleted the license-request file in Windows 10.
Glad to hear that Error Scan fixes it as well for those phantom files.
 
  • Like
Reactions: Specker and radrom
Any method for stay connected without online?

You can put in an unused ip address from your LAN in the DNS box. So if your router is 192.168.1.1 and your Switch is 192.168.1.3 , you can put 192.168.1.254 as the DNS entry assuming no other devices had already leased the address. Basically you force your Switch to use a nonexisting or nonresponsive gateway to the internet, without any ability to translate long urls to correct ip addresses. The end result is your Switch is stuck inside the LAN without a real entry to the internet, being force to continue knocking on a closed door when it wants to get out.
 
I just published a new build of ftpd that contains a fix by WinterMute and Hikari-chin to show the ip address, and a fix by DavidBuchanan314 to work around a send() bug in libnx. You can get it at https://github.com/shahmirn/ftpd/releases

All I did was fork existing code and merge in the fixes and then compiled it. None of the code is my own.
 
I just published a new build of ftpd that contains a fix by WinterMute and Hikari-chin to show the ip address, and a fix by DavidBuchanan314 to work around a send() bug in libnx. You can get it at https://github.com/shahmirn/ftpd/releases

All I did was fork existing code and merge in the fixes and then compiled it. None of the code is my own.
Curious, does it include the fix that is in this release which fixes the error on large file transfers as well?

Side note: Is SwitchBrew the main site to keep track of all the latest and greatest homebrew, or is there a more updated site?
 
You can put in an unused ip address from your LAN in the DNS box. So if your router is 192.168.1.1 and your Switch is 192.168.1.3 , you can put 192.168.1.254 as the DNS entry assuming no other devices had already leased the address. Basically you force your Switch to use a nonexisting or nonresponsive gateway to the internet, without any ability to translate long urls to correct ip addresses. The end result is your Switch is stuck inside the LAN without a real entry to the internet, being force to continue knocking on a closed door when it wants to get out.
Unfortunately this doesn’t seem to work on the Switch because it refuses to save a connection if it cannot connect to the internet.

It’s annoying because I would personally want the ability to use FTP with no ability to connect to the internet.
 
Curious, does it include the fix that is in this release which fixes the error on large file transfers as well?

Side note: Is SwitchBrew the main site to keep track of all the latest and greatest homebrew, or is there a more updated site?

I think that release is just a recompile with the latest libnx, so it should, but I'm not 100% certain.

I did push out a new release that basically disables logging, so it should be much faster.
 
  • Like
Reactions: hippy dave
Just recompiled try it

I just want to let you know that I have been using this version of FTPd that you compiled since you posted it and it has not crashed once in docked or handheld mode. Great job man. If you happen to update it in the future to help with an increase in transfer speed (I get about 5-8MB sec now) or to display the IP, please let me know. Thank you for your work.
 
That is expected for this homebrew. This app seems to be mostly abandoned. There is a patched version on page 5 you can use (posted by m4xw), but mostly people have been using the sys-ftpd module that's packaged with TomGer's SDFiles.
 
That is expected for this homebrew. This app seems to be mostly abandoned. There is a patched version on page 5 you can use (posted by m4xw), but mostly people have been using the sys-ftpd module that's packaged with TomGer's SDFiles.

And how does that one work? Is it a homebrew app like FTPD?
 
And how does that one work? Is it a homebrew app like FTPD?

It's an option in the most recent version of TomGer's files. You will boot with Hekate, then further down in the CFW list, you'll see CFW + FTP. Choose that and the FTP server will be always on in the background waiting for a connection.
 
It's an option in the most recent version of TomGer's files. You will boot with Hekate, then further down in the CFW list, you'll see CFW + FTP. Choose that and the FTP server will be always on in the background waiting for a connection.

Ah, interesting, i'l have to have a look
 
i have a router that is capable of wifi ac on 5hz, and im using it on a daily basis.. but recently i tried connecting to my switch via ftpd and the connection just hangs at "Connection established, waiting for welcome message..." It connects fine when i switch back to wifi type n, but i dont want to change the router configs everytime i want to connect to switch. Cant seem to find the problem.. I use filezilla as my ftp client. Any thoughts?
 
Can anyone port any other FTP program to the Switch? This ftpd build has very slow transfer speeds (sometimes bytes per second).
 
I just published a new build of ftpd that contains a fix by WinterMute and Hikari-chin to show the ip address, and a fix by DavidBuchanan314 to work around a send() bug in libnx. You can get it at https://github.com/shahmirn/ftpd/releases

All I did was fork existing code and merge in the fixes and then compiled it. None of the code is my own.

I tried out your ftpd build, and it's not much faster than the build from m4xw. It did work with a large file transfer, though, so there's that. Got my switch hooked up to a 5ghz ac access point.
 
I tried out your ftpd build, and it's not much faster than the build from m4xw. It did work with a large file transfer, though, so there's that. Got my switch hooked up to a 5ghz ac access point.

Are you using the v2.2.0-6524da52-switch release, the one that has the console.log removed.
 
I tried out your ftpd build, and it's not much faster than the build from m4xw. It did work with a large file transfer, though, so there's that. Got my switch hooked up to a 5ghz ac access point.
what cfw are you on? how large file exactly? and what sd do u use? i have sandisk 64gb, it doesn't seem to be faulty, i ran some tests and they didn't show any errors.. im on reiNX now but i had this libnx error before when i was on hekate as well... also using 5ghz ac wifi. Every time i try to transfer a large file or multiple files 300+mb i get this error 2345-0021. Tried hard reformatting, didnt work. Im surprised everything works for you since ive seen a lot of ppl have the same problem as me
 
Are you using the v2.2.0-6524da52-switch release, the one that has the console.log removed.

Yeah, that's the one I tried out.


what cfw are you on? how large file exactly? and what sd do u use? i have sandisk 64gb, it doesn't seem to be faulty, i ran some tests and they didn't show any errors.. im on reiNX now but i had this libnx error before when i was on hekate as well... also using 5ghz ac wifi. Every time i try to transfer a large file or multiple files 300+mb i get this error 2345-0021. Tried hard reformatting, didnt work. Im surprised everything works for you since ive seen a lot of ppl have the same problem as me

I'm using SX OS 1.4 atm. I don't remember how big the file was (larger than 500mb, at least), or what my sd is. Not gonna pull it, cause I don't want to have to reboot, but it's a 64gb card. I haven't had an error using the m4xw or this one.
 

Site & Scene News

Popular threads in this forum