#98982 - bjoerngiesler - Fri Aug 18, 2006 10:05 pm
Hooray! DSFTP 1.9 is out. Main changes:
o Start of a GUI!
o NeoFlash competition entry
o More bugfixes (boot works again)
Get the zip file at http://giesler.biz/~bjoern/downloads/DSFTP-1.9.zip.
Screenshot: [Images not permitted - Click here to view it]
As usual, please report any bugs.
#98983 - HtheB - Fri Aug 18, 2006 10:10 pm
why not edit the old topic? (your first post)
well.. didnt tried yet.. so no comments :D
#98986 - tepples - Fri Aug 18, 2006 10:22 pm
HtheB wrote: |
why not edit the old topic? (your first post) |
A topic per significant version helps to keep topics from becoming too long; didn't read.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.
#98987 - bjoerngiesler - Fri Aug 18, 2006 10:39 pm
HtheB wrote: |
why not edit the old topic? (your first post) |
That was my intention... hit the wrong button. Sorry. Mods, can you re-route this thread under the DSFTP 1.8 one?
#98989 - TheRain - Fri Aug 18, 2006 10:43 pm
I like the GUI :) good stuff man. :) :)
_________________
DSMIDI and dSTAR sequencer brought to you by TheRain
http://www.collinmeyermusic.com/dev/
#98990 - tekknosk8er - Fri Aug 18, 2006 10:52 pm
YAY Love seeing new releases of DSFTP, I love that your adding a GUI nice touch. I think your going to win the NEOflash contest, most useful app ever!
#99000 - kevinc - Sat Aug 19, 2006 12:03 am
Can the server do multiple connections now?
*points to the "1 connections"*
_________________
http://akzeac.blogspot.com
#99046 - bjoerngiesler - Sat Aug 19, 2006 6:30 am
kevinc wrote: |
Can the server do multiple connections now?
*points to the "1 connections"* |
Yup.
#99103 - ArjanDotOrg - Sat Aug 19, 2006 3:44 pm
Does it support long filenames now?
And how about double extensions (for example: .nds.dsq/.nds.sav)?
Great work Bjoern!
#99122 - MaHe - Sat Aug 19, 2006 5:10 pm
Now the only thing left to do is moving to libFATDragon (since it natively supports lots of devices and also supports 'Rename' and 'Move') and add a configuration screen :P
This application is already great, this would only be the last finishing touch. ;)
_________________
[ Crimson and Black Nintendo DS Lite | CycloDS Evolution | EZ-Flash 3-in-1 | 1 GB Transcend microSD ]
#99132 - pkwong - Sat Aug 19, 2006 6:34 pm
sorry if this is a stupid question, but i get tons of error while linking
e.g.
BFTPConfigurator.cpp:(.text+0x378): undefined reference to `__gxx_personality_sj0'
BFTPConfigurator.cpp:(.text+0x454): undefined reference to `_Unwind_SjLj_Unregister'
BFTPConfigurator.cpp:(.text+0x5a2): undefined reference to `_Unwind_SjLj_Resume'
do u know what caused this problem and ,if possible, how to fix it?
many thanks for the great app!
#99134 - tepples - Sat Aug 19, 2006 7:02 pm
Are you making sure to compile and link .cpp files with g++ instead of gcc?
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.
#99147 - ArjanDotOrg - Sat Aug 19, 2006 8:06 pm
ArjanDotOrg wrote: |
Does it support long filenames now?
And how about double extensions (for example: .nds.dsq/.nds.sav)?
Great work Bjoern! |
Can anyone answer this question, please? Thanks!
#99160 - bjoerngiesler - Sat Aug 19, 2006 9:30 pm
ArjanDotOrg wrote: |
Does it support long filenames now?
And how about double extensions (for example: .nds.dsq/.nds.sav)? |
Code: |
ftp> ls
229 Entering Extended Passive Mode (|||9000|)
150 Here comes the directory listing
drwxrwxrwx 1 ftp ftp 0 Aug 13 2006 DATA
drwxrwxrwx 1 ftp ftp 0 Aug 13 2006 APPS
226 Data sent OK.
ftp> put File\ with\ long\ name.suffix.txt
local: File with long name.suffix.txt remote: File with long name.suffix.txt
229 Entering Extended Passive Mode (|||9000|)
150 File opened. Gimme!
100% |*************************************| 6 0.09 KB/s --:-- ETA
226 File stored.
6 bytes sent in 00:00 (0.00 KB/s)
ftp> ls
229 Entering Extended Passive Mode (|||9000|)
150 Here comes the directory listing
drwxrwxrwx 1 ftp ftp 0 Aug 13 2006 DATA
drwxrwxrwx 1 ftp ftp 0 Aug 13 2006 APPS
-rwxrwxrwx 1 ftp ftp 6 Aug 19 2006 File with long name.suffix.txt
226 Data sent OK.
ftp>
|
Looks like it does :-)
#99164 - bjoerngiesler - Sat Aug 19, 2006 10:03 pm
MaHe wrote: |
Now the only thing left to do is moving to libFATDragon (since it natively supports lots of devices and also supports 'Rename' and 'Move') and add a configuration screen :P |
Just tried libFATDragon. It's just a compile away, but for my SuperCard CF, it hangs in the FAT_InitFiles() routine.
As for the config screen: Apart from not being that important (IMHO), that requires a widget library. Which is what I'm currently working on. So you'll maybe see a config screen soon.
#99165 - doedill - Sat Aug 19, 2006 10:06 pm
can someone help out with this error.
501 Unhandled command
Port failed 501 Unhandled command
#99171 - bjoerngiesler - Sat Aug 19, 2006 10:29 pm
doedill wrote: |
501 Unhandled command
Port failed 501 Unhandled command |
DSFTP is passive-mode only. Look here: http://slacksite.com/other/ftp.html for an explanation what active / passive mode is and why active mode is bad.
The PORT command is a part of the active-mode FTP protocol and therefore not supported.
What client are you using that sends this?
#99177 - LS5 - Sat Aug 19, 2006 11:08 pm
I'm having some problems with DSFTP 1.9, patched with the moomshell patch to get it to work on my Supercard Lite.
This is my ftp.conf file:
Code: |
logfile /data/settings/ftplog.txt
loglevel 5
hostname localhost
screensaver 60
user DSFTP
pass *******
root /
home /
write true
boot true
end user
user anonymous
root /
end user |
Only the password is edited out. Connecting with FileZilla results in the following DSFTP log file:
Code: |
Server running.
Screensaver: 60 seconds
Wake on Log: ON
accept() returned 2
** New FTP control connection 2
** FTP conn 2 from 192.168.2.1.
<- 220-Nintendo DS FTP server module V1.9
<- 220-(c)2006 Bjoern Giesler <bjoern@giesler.de>
<- 220-Have fun!
<- 220
-> USER DSFTP
<- 331 Password required for DSFTP.
-> PASS *******
<- 230 User DSFTP logged in.
User DSFTP logged in (root=/, home=/, write=yes)
-> SYST
<- 215 UNIX (actually NintendoDS)
-> FEAT
<- 501 Unhandled command 'FEAT'
-> PWD
<- 257 "/"
-> TYPE A
<- 200 Type set to A.
-> PASV
<- 227 Entering Passive Mode (127,0,0,1,4,0).
-> LIST |
Again, only the password edited out. My problem is that directory listing isn't working at all. FileZilla tells me the following, after the LIST command:
Code: |
Error: Transfer channel can't be opened. Reason: No connection could be made because the target machine actively refused it.
Error: Could not retrieve directory listing |
Do you have any idea what the problem might be? I did have DSFTP working a few versions ago (I believe it was 1.5), but I don't have the ftp.conf file I used then anymore.
#99186 - FireflyII - Sat Aug 19, 2006 11:43 pm
I've got the exact same problem as LS5...it connects just fine, logs in, and then hangs up on the LIST command, and tells me that host actively refused the connection. What are we doing wrong? (I've tried FileZilla, SmartFTP, and command line by the way)
#99190 - vb_master - Sun Aug 20, 2006 12:21 am
FireflyII wrote: |
I've got the exact same problem as LS5...it connects just fine, logs in, and then hangs up on the LIST command, and tells me that host actively refused the connection. What are we doing wrong? (I've tried FileZilla, SmartFTP, and command line by the way) |
Same thing for me, I've tried just using FireFox anonymously, FireFTP, and FileZilla. Whats wrong with it?
_________________
Back.
#99193 - Waffle - Sun Aug 20, 2006 12:36 am
Your problem is with:
hostname localhost
Remove that line or replace localhost with the IP address of your DS.
#99194 - vb_master - Sun Aug 20, 2006 12:42 am
Waffle wrote: |
Your problem is with:
hostname localhost
Remove that line or replace localhost with the IP address of your DS. |
Works now!
_________________
Back.
#99201 - LS5 - Sun Aug 20, 2006 12:59 am
You were right, replacing localhost fixed it indeed. Makes a lot of sense, but the strange thing is I could've sworn it worked with localhost a few versions ago. Oh well, I'm probably just remembering it wrongly. Thank you for the help.
#99221 - kevinc - Sun Aug 20, 2006 3:44 am
bjoerngiesler wrote: |
doedill wrote: | 501 Unhandled command
Port failed 501 Unhandled command |
DSFTP is passive-mode only. Look here: http://slacksite.com/other/ftp.html for an explanation what active / passive mode is and why active mode is bad.
The PORT command is a part of the active-mode FTP protocol and therefore not supported. |
However, according to RFC 959 part 5.1, the PORT command is part of the "minimum implementation [that] is required for all servers". In fact, it's the passive mode that is the optional one.
_________________
http://akzeac.blogspot.com
#99222 - sinistergfx - Sun Aug 20, 2006 3:56 am
Could we get an option for DSFtp to set the hostname automatically to the ip it is assigned?
With the USB 802.11 adaptor I'm using for the DS, I have no way to control what IP the DS is assigned.
_________________
sinistergfx.com
robotdawn.com
Last edited by sinistergfx on Sun Aug 20, 2006 3:59 am; edited 1 time in total
#99223 - decrypt - Sun Aug 20, 2006 3:58 am
Anyone got dsftp working with m3 minisd v2?
I have a flashed ds.
My rounter is di-624+.
The ftp server start normally. But i cant seem to connect in.
#99228 - tekknosk8er - Sun Aug 20, 2006 4:28 am
decrypt wrote: |
Anyone got dsftp working with m3 minisd v2?
I have a flashed ds.
My rounter is di-624+.
The ftp server start normally. But i cant seem to connect in. |
Version 2? is there such a thing? I just got mine a couple of months ago so maybe I am using a M3 mini-SD v2... all I can tell you is i have a M3 mini-SD and it works perfectly! Just waiting on the guys in the DSdoom dev to make it compatiable with this card.
#99229 - pkwong - Sun Aug 20, 2006 4:33 am
tepples wrote: |
Are you making sure to compile and link .cpp files with g++ instead of gcc? |
yeah, i was using arm-eabi-g++ to compile my project.
was it about the way i include the lib files in the Makefile?
i need to add the path of the lib to let it link
LIBS := -lnds9 $(DEVKITPRO)/libnds/lib/libDSFTP.a ..............
actually, is it the right thing to do? i never tried to use Makefile before.
thanks!
#99235 - chishm - Sun Aug 20, 2006 5:43 am
MaHe wrote: |
Now the only thing left to do is moving to libFATDragon (since it natively supports lots of devices and also supports 'Rename' and 'Move') and add a configuration screen :P
This application is already great, this would only be the last finishing touch. ;) |
Actually, I'd recommend libfat, when DKP r20 comes out. libFATDragon is like gba_nds_fat with some of the device drivers from libfat added, which means it comes with all the downfalls of gba_nds_fat.
_________________
http://chishm.drunkencoders.com
http://dldi.drunkencoders.com
#99236 - bjoerngiesler - Sun Aug 20, 2006 5:50 am
kevinc wrote: |
However, according to RFC 959 part 5.1, the PORT command is part of the "minimum implementation [that] is required for all servers". In fact, it's the passive mode that is the optional one. |
Completely correct. But John Postel wrote RFC959 in 1985, when nobody knew what a firewall was, let alone NAT.
To support active mode is a lot of work, since it requires a very different server behavior. Plus, I haven't seen a single client in years that uses it by default, plus, it doesn't work behind firewalls. Therefore, it's not in DSFTP, and I'd like to know what client doedill is using. If someone really requires it, it may come in the future.
#99238 - bjoerngiesler - Sun Aug 20, 2006 5:52 am
decrypt wrote: |
Anyone got dsftp working with m3 minisd v2?
I have a flashed ds.
My rounter is di-624+.
The ftp server start normally. But i cant seem to connect in. |
Sigh. Logfiles? Client version? Where exactly does it hang?
#99243 - FireflyII - Sun Aug 20, 2006 7:37 am
vb_master wrote: |
Waffle wrote: | Your problem is with:
hostname localhost
Remove that line or replace localhost with the IP address of your DS. | Works now! |
Yes, removing the line did it, thank you!
#99244 - decrypt - Sun Aug 20, 2006 7:44 am
bjoerngiesler wrote: |
decrypt wrote: | Anyone got dsftp working with m3 minisd v2?
I have a flashed ds.
My rounter is di-624+.
The ftp server start normally. But i cant seem to connect in. |
Sigh. Logfiles? Client version? Where exactly does it hang? |
In my log, using dsftp 1.9, Client using fireftp.
Server running.
Screensaver: 30 seconds
Wake on Log: OFF
Can i check which port am i supposed to use?
#99245 - bjoerngiesler - Sun Aug 20, 2006 7:55 am
decrypt wrote: |
Server running.
Screensaver: 30 seconds
Wake on Log: OFF
Can i check which port am i supposed to use? |
You should use port 21, the FTP port. What loglevel do you use? If it's 5, the client is not even connecting. If it's not 5, please set it to 5 and post again :-)
#99248 - decrypt - Sun Aug 20, 2006 8:37 am
the log is level 5.
It appears that I cannot make a connection to my ds even the server is running
#99252 - bjoerngiesler - Sun Aug 20, 2006 9:42 am
decrypt wrote: |
the log is level 5.
It appears that I cannot make a connection to my ds even the server is running |
OK, strange. Haven't seen that one before. Could you try command-line ftp, or even telnetting to the DS, and see if you can get a connection? ("telnet MY.DS.IP.NO 21")
#99256 - decrypt - Sun Aug 20, 2006 9:53 am
could not open connection to host.
#99260 - doedill - Sun Aug 20, 2006 10:29 am
bjoerngiesler wrote: |
doedill wrote: | 501 Unhandled command
Port failed 501 Unhandled command |
DSFTP is passive-mode only. Look here: http://slacksite.com/other/ftp.html for an explanation what active / passive mode is and why active mode is bad.
The PORT command is a part of the active-mode FTP protocol and therefore not supported.
What client are you using that sends this? |
Using WS_FTP. This problem just popped when I was using version 1.8 as well.
no problems using WS_FTP when connecting to 1.7-1.8. Didn't change any settings at all.
I've tried it with FTP from a dos prompt and still get that error.
It connects fine, only when it tries to list the directory does it give that error.
#99263 - bjoerngiesler - Sun Aug 20, 2006 10:42 am
decrypt wrote: |
could not open connection to host. |
Can you ping it?
#99265 - bjoerngiesler - Sun Aug 20, 2006 10:43 am
doedill wrote: |
Using WS_FTP. ... It connects fine, only when it tries to list the directory does it give that error. |
Right, because that's the first time it opens a data connection. Is there anywhere in WS_FTP you can enable FTP passive mode? I don't have Windows, so I can't check myself...
#99272 - decrypt - Sun Aug 20, 2006 11:43 am
bjoerngiesler wrote: |
decrypt wrote: | could not open connection to host. |
Can you ping it? |
Ok i have no idea why.
Suddenly everything work.
Thanks for all the help
#99273 - decrypt - Sun Aug 20, 2006 11:54 am
The ftp does not list all the files on the sd card?
Because i got some mp3s on the disk, but they are not shown
#99274 - bjoerngiesler - Sun Aug 20, 2006 12:28 pm
decrypt wrote: |
The ftp does not list all the files on the sd card?
Because i got some mp3s on the disk, but they are not shown |
It should. FAT behavior is sometimes a bit erratic, though - have you tried chkdsk'ing the card?
#99312 - Thomas - Sun Aug 20, 2006 5:50 pm
Works great with both CuteFTP and FlashFXP, but I noticed something weird. Uploading a file to the DS (PC => DS) is quite fast, about 50 kB/s, but downloading a file (DS => PC) is a lot slower, somewhere around 6 kB/s. Is this normal?
#99314 - bjoerngiesler - Sun Aug 20, 2006 5:58 pm
Thomas wrote: |
Works great with both CuteFTP and FlashFXP, but I noticed something weird. Uploading a file to the DS (PC => DS) is quite fast, about 50 kB/s, but downloading a file (DS => PC) is a lot slower, somewhere around 6 kB/s. Is this normal? |
Well, no, it's not normal, but it's what the thing does :-)
I'm still trying to sort out what makes the download slow; the code looks the same for both up- and download. Since the main purpose of the thing is pushing homebrew code to the DS and booting it, that examination is low-priority though. I'm hoping the next DSWifi upgrade will make it a lot better without further work by me ;-)
#99319 - kevinc - Sun Aug 20, 2006 6:34 pm
bjoerngiesler wrote: |
I'm still trying to sort out what makes the download slow; the code looks the same for both up- and download. Since the main purpose of the thing is pushing homebrew code to the DS and booting it, that examination is low-priority though. I'm hoping the next DSWifi upgrade will make it a lot better without further work by me ;-) |
In my experiments with the lib I noticed the transmission buffer emptied itself far slower than the reception buffer. Probably the DS's transmission power is a bit weak compared to the reception capabilities.
_________________
http://akzeac.blogspot.com
#99340 - doedill - Sun Aug 20, 2006 9:24 pm
bjoerngiesler wrote: |
doedill wrote: | Using WS_FTP. ... It connects fine, only when it tries to list the directory does it give that error. |
Right, because that's the first time it opens a data connection. Is there anywhere in WS_FTP you can enable FTP passive mode? I don't have Windows, so I can't check myself... |
well it is set to passive mode. here's the output of WS_FTP
Code: |
Connecting to 192.xxx.xxx.xxx:21
Connected to 192.xxx.xxx.xxx:21 in 0.160230 seconds, Waiting for Server Response
220-Nintendo DS FTP server module V1.9
220-(c)2006 Bjoern Giesler <bjoern@giesler.de>
220
Host type (1): Automatic Detect
USER USERNAME
331 Password required for appleboy.
PASS (hidden)
230 User USERNAME logged in.
SYST
215 UNIX (actually NintendoDS)
Host type (2): Unix (Standard)
PWD
257 "/"
TYPE A
200 Type set to A.
PASV
227 Entering Passive Mode (192,zzz,zzz,zzz,0,1).
connecting data channel to 192.zzz.zzz.zzz:0,1(1)
PORT 192,yyy,yyy,yyy,18,174
501 Unhandled command 'PORT 192,yyy,yyy,yyy,18,174'
Port failed 501 Unhandled command 'PORT 192,yyy,yyy,yyy,18,174' |
xxx.xxx - NDS ip addy
zzz.zzz - router
yyy.yyy - PC addy[/code]
#99350 - bjoerngiesler - Sun Aug 20, 2006 10:46 pm
doedill wrote: |
well it is set to passive mode. here's the output of WS_FTP
Code: |
Connecting to 192.xxx.xxx.xxx:21
Connected to 192.xxx.xxx.xxx:21 in 0.160230 seconds, Waiting for Server Response
220-Nintendo DS FTP server module V1.9
220-(c)2006 Bjoern Giesler <bjoern@giesler.de>
220
Host type (1): Automatic Detect
USER USERNAME
331 Password required for appleboy.
PASS (hidden)
230 User USERNAME logged in.
SYST
215 UNIX (actually NintendoDS)
Host type (2): Unix (Standard)
PWD
257 "/"
TYPE A
200 Type set to A.
PASV
227 Entering Passive Mode (192,zzz,zzz,zzz,0,1).
connecting data channel to 192.zzz.zzz.zzz:0,1(1)
PORT 192,yyy,yyy,yyy,18,174
501 Unhandled command 'PORT 192,yyy,yyy,yyy,18,174'
Port failed 501 Unhandled command 'PORT 192,yyy,yyy,yyy,18,174' |
|
OK. It's still sending a PORT command, so it's trying active mode. My guess is that it's doing that because the reply to PASV ("227 Entering...") gives back a port number of 1, which is bullshit.
What are your settings for portrange? Could you post your ftp.conf?
#99364 - decrypt - Mon Aug 21, 2006 2:47 am
I just realised that i have to do a few things in order for the dsftp to work.
I am not sure whether it is because of my router.
I need to go into metriod prime hunters Wifi Settings and test connection a few time. Each time i need to make sure the ds can be pinged. Then only when i restart and start dsftp will work. Does anyone face this problem? Is it because of my DI-624+?
Btw my sd card is FAT32, is it better to use FAT?
#99380 - doedill - Mon Aug 21, 2006 5:22 am
bjoerngiesler wrote: |
OK. It's still sending a PORT command, so it's trying active mode. My guess is that it's doing that because the reply to PASV ("227 Entering...") gives back a port number of 1, which is bullshit.
What are your settings for portrange? Could you post your ftp.conf? |
Code: |
motd /ftp/motd.txt
logfile /data/logs/ftp.log
loglevel 4
hostname xxx.xxx.xxx.xxx
timeout 60
portrangestart 1
portrangeend 9999
screensaver 30
wakeonlog false
user *****
pass *****
root /
home /
write true
boot true
end user
user anonymous
root /ftp/anonymous
write false
end user |
I've set it portrangestart to 9000 and gives the same error.
Code: |
257 "/"
TYPE A
200 Type set to A.
PASV
227 Entering Passive Mode (192,xxx,xxx,xxx,35,40).
connecting data channel to 192.yyy.yyy.yyy:35,40(9000)
PORT 192,zzz,zzz,zzz,16,186
501 Unhandled command 'PORT 192,zzz,zzz,zzz,16,186'
Port failed 501 Unhandled command 'PORT 192,zzz,zzz,zzz,16,186'NOOP
200 OK
|
#99383 - bjoerngiesler - Mon Aug 21, 2006 5:58 am
doedill wrote: |
Code: |
257 "/"
TYPE A
200 Type set to A.
PASV
227 Entering Passive Mode (192,xxx,xxx,xxx,35,40).
connecting data channel to 192.yyy.yyy.yyy:35,40(9000)
PORT 192,zzz,zzz,zzz,16,186
501 Unhandled command 'PORT 192,zzz,zzz,zzz,16,186'
Port failed 501 Unhandled command 'PORT 192,zzz,zzz,zzz,16,186'NOOP
200 OK
|
|
I don't get it. Looks like it can't connect to port 9000... what does the DSFTP log (@loglevel 5) say to that?
#99400 - doedill - Mon Aug 21, 2006 10:08 am
bjoerngiesler wrote: |
doedill wrote: | Code: |
257 "/"
TYPE A
200 Type set to A.
PASV
227 Entering Passive Mode (192,xxx,xxx,xxx,35,40).
connecting data channel to 192.yyy.yyy.yyy:35,40(9000)
PORT 192,zzz,zzz,zzz,16,186
501 Unhandled command 'PORT 192,zzz,zzz,zzz,16,186'
Port failed 501 Unhandled command 'PORT 192,zzz,zzz,zzz,16,186'NOOP
200 OK
|
|
I don't get it. Looks like it can't connect to port 9000... what does the DSFTP log (@loglevel 5) say to that? |
Code: |
<- 257 "/"
-> TYPE A
<- 200 Type set to A.
-> PASV
<- 227 Entering Passive Mode (192,yyy,yyy,yyy,35,40).
-> PORT 192,zzz,zzz,zzz,13,191
<- 501 Unhandled command 'PORT 192,zzz,zzz,zzz,13,191'
-> QUIT
<- 221 Goodbye.
** Closing control connection 2.
|
this is the log (@loglevel 5) from the DS
Basically mirrors what WS_FTP outputs.
#99402 - bjoerngiesler - Mon Aug 21, 2006 11:26 am
doedill wrote: |
this is the log (@loglevel 5) from the DS
Basically mirrors what WS_FTP outputs. |
OK. So it tells the DS to do passive mode, but then starts doing active mode itself. That is strange behaviour indeed. I'll see what I can do; didn't actually want to implement active FTP, but if some clients just won't do passive...
I'll test with WS_FTP myself and see if I can fix that in the client. In the meantime, I suggest you download FireFTP or FileZilla, which are confirmed to work.
EDIT: You don't have a personal firewall running that might block port 9000 access to the DS, do you? If you don't: Is there a significant delay between the DS' response to the PASV command and the PORT command?
#99410 - tepples - Mon Aug 21, 2006 1:27 pm
Some firewalls that see an FTP transaction containing a PORT command will automatically open the relevant port.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.
#99413 - bjoerngiesler - Mon Aug 21, 2006 1:43 pm
tepples wrote: |
Some firewalls that see an FTP transaction containing a PORT command will automatically open the relevant port. |
I know. Just checking if WS_FTP is braindead or if it's trying to automatically fix something it sees as an error (namely, the PASV port not being reachable).
#99447 - doedill - Mon Aug 21, 2006 7:54 pm
bjoerngiesler wrote: |
doedill wrote: | this is the log (@loglevel 5) from the DS
Basically mirrors what WS_FTP outputs. |
OK. So it tells the DS to do passive mode, but then starts doing active mode itself. That is strange behaviour indeed. I'll see what I can do; didn't actually want to implement active FTP, but if some clients just won't do passive...
I'll test with WS_FTP myself and see if I can fix that in the client. In the meantime, I suggest you download FireFTP or FileZilla, which are confirmed to work.
EDIT: You don't have a personal firewall running that might block port 9000 access to the DS, do you? If you don't: Is there a significant delay between the DS' response to the PASV command and the PORT command? |
tried FireFTP and it hangs when trying the LIST command.
Don't have a firewall up. I've even open ports 9000-9999 to test if the router was the cause and it's not.
#99555 - bjoerngiesler - Tue Aug 22, 2006 11:30 am
doedill wrote: |
tried FireFTP and it hangs when trying the LIST command.
Don't have a firewall up. I've even open ports 9000-9999 to test if the router was the cause and it's not. |
OK, I'm at the end of my wits. No idea what's blocking for you. I'm working on active FTP support for V2.0, hopefully that will fix your problems.
_________________
DSFTP homepage
#99625 - bjoerngiesler - Tue Aug 22, 2006 7:08 pm
Please try http://giesler.biz/~bjoern/downloads/dsftp/DSFTP-2.0pre.zip. Changes are:
o Server port configurable with "listen PORTNUM"
o Passive mode supported (PORT and EPRT commands)
...and let me know if that works for you.
_________________
DSFTP homepage
#99642 - doedill - Tue Aug 22, 2006 9:35 pm
ok, now that works. able to connect and list directories.
output from WS_FTP
Code: |
TYPE A
200 Type set to A.
PASV
227 Entering Passive Mode (192,zzz,zzz,4,35,40).
connecting data channel to 192.zzz.zzz.4:35,40(9000)
PORT 192,yyy,yyy,yyy,19,86
200 Port opened.
LIST
150 Here comes the directory listing
# transferred 2367 bytes in < 0.001 seconds, 18492.188 Kbps ( 2311.523 Kbps), transfer succeeded.
226 Data sent OK. |
The thing I find weird (or not) is that when it enter passive mode the ip address isn't that of my router (zzz) instead of 192.zzz.zzz.1 it's a 4.
also this is what's on the DS when I disconnect
Code: |
accept() failed. Sockets exhausted?
Message was: accept(-1) failed with 0 (errno 22)
|
@log 4
#99685 - bjoerngiesler - Wed Aug 23, 2006 8:41 am
doedill wrote: |
ok, now that works. able to connect and list directories. |
Great.
Quote: |
Code: |
227 Entering Passive Mode (192,zzz,zzz,4,35,40).
connecting data channel to 192.zzz.zzz.4:35,40(9000)
|
The thing I find weird (or not) is that when it enter passive mode the ip address isn't that of my router (zzz) instead of 192.zzz.zzz.1 it's a 4.
|
Why would it be the address of your router? The PASV command instructs the FTP server to open a socket at a random port number and report the IP address and port number back. Therefore, the reply contains the IP of your Nintendo DS.
Quote: |
also this is what's on the DS when I disconnect
Code: |
accept() failed. Sockets exhausted?
Message was: accept(-1) failed with 0 (errno 22)
|
|
Will be fixed in 2.0.
Oh, BTW, there's no need to xxx and zzz out your IP addresses -- IPs in the 192.168/16 range are not routed anyway, so nobody can do anything with the information you're hiding. (It makes your reports a lot harder to read, though. :-))
_________________
DSFTP homepage
#99709 - doedill - Wed Aug 23, 2006 2:19 pm
bjoerngiesler wrote: |
Quote: |
Code: |
227 Entering Passive Mode (192,zzz,zzz,4,35,40).
connecting data channel to 192.zzz.zzz.4:35,40(9000)
|
The thing I find weird (or not) is that when it enter passive mode the ip address isn't that of my router (zzz) instead of 192.zzz.zzz.1 it's a 4.
|
Why would it be the address of your router? The PASV command instructs the FTP server to open a socket at a random port number and report the IP address and port number back. Therefore, the reply contains the IP of your Nintendo DS.
|
ok, I thought it was my router cause it's the closest match.
That's not the ip of my NDS either.
#99713 - bjoerngiesler - Wed Aug 23, 2006 2:45 pm
doedill wrote: |
ok, I thought it was my router cause it's the closest match.
That's not the ip of my NDS either. |
Well, it's either the IP of your NDS, or it's whatever your "hostname" entry in the ftp.conf file resolves to (if that entry exists and can be resolved). If it isn't either, we have a problem; but it would explain why passive mode doesn't work.
_________________
DSFTP homepage
#99836 - doedill - Thu Aug 24, 2006 5:00 am
bjoerngiesler wrote: |
doedill wrote: | ok, I thought it was my router cause it's the closest match.
That's not the ip of my NDS either. |
Well, it's either the IP of your NDS, or it's whatever your "hostname" entry in the ftp.conf file resolves to (if that entry exists and can be resolved). If it isn't either, we have a problem; but it would explain why passive mode doesn't work. |
omg. ok that was the problem all along. I have no idea how the hostname got changed in ftp.conf
that's why it's wasn't working with the earlier version too.