Skip to contentSkip to conversation

interesting tftp experiments

Qemu-devel CoMiKe 3 participants 3 messages Jun 28, 2005 – Jun 30, 2005

lore
Share & tools
lore

CoMiKe

author
#0 lore raw
Quoted 4 lines

since I was able on a windows host to connect (but no transfer) on a ftp server over slirp, I thought I could do the same:
over slirp, connect to a true tftp server, not the layer provided in slirp/tftp.c

Hi!

I've never got problems connecting to an FTP server placed on my host computer.

Probably your problem is a port problem.
You have to options:

- If connecting on PORT mode in your FTP client, port 20 should be redirected to your QEmu session through the -redir option.
- If you use passive mode on your FTP client (PASV) you don't need to redirect any ports to QEmu, because in passive mode, the server is the one that opens the port for data communication.

I'm using an small FTP server for Windows (SlimFTPd,
http://www.whitsoftdev.com/slimftpd/). It has an Apache like config file, and total size is 51 Kb. It supports both PORT and PASV mode.

Probably you already knew about all this FTP topics, excuse me in that case.

Best Regards.
CoMiKe

#1 lore raw
Quoted 1 line

Probably your problem is a port problem.

this was a possibility

Quoted 4 lines

You have to options:

- If connecting on PORT mode in your FTP client, port 20 should be redirected to your QEmu session through the -redir option.

interesting, never heard of it. Makes sense.

Quoted 3 lines

- If you use passive mode on your FTP client (PASV) you don't need to redirect any ports to QEmu, because in passive mode, the server is the one that opens the port for data communication.

I already tried that, no success.

Quoted 4 lines

I'm using an small FTP server for Windows (SlimFTPd,
http://www.whitsoftdev.com/slimftpd/). It has an Apache like config file, and total size is 51 Kb. It supports both PORT and PASV mode.

we've a winner here! this ftpd for windows host is working fine. I don't even need to redirect the port. Thanks alot :))))))

Christian

#2 lore raw
In reply to CoMiKe
Quoted 2 lines · CoMiKe

- If connecting on PORT mode in your FTP client, port 20 should be redirected to your QEmu session through the -redir option.

This is supposed to work "automagically". Sounds like the slirp FTP "emulation" code has gone missing somehow...

Quoted 3 lines

- If you use passive mode on your FTP client (PASV) you don't need to redirect any ports to QEmu, because in passive mode, the server is the one that opens the port for data communication.

If you FTP to the virtual host address (10.0.2.3) then the slirp FTP "emulation" code still needs to fix up the addresses used..

I haven't used the user-net networking of qemu much as I have my qemu:s running with tun/tap networking to the host, but a lot of this worked just fine when I used slirp in it's original form some years ago for providing dialup access.

Regards
Henrik