Re: [Freedos-user] VirtualBox and FTP
Am 01.09.2014 um 21:51 schrieb Michael Brutman : > On 9/1/2014 12:30 PM, Tom Ehlert wrote: >> any good reason mTCP and DHCP can't update/use WATTCP.directly ? >> >> imho there should be a *single* network configuration file, used by >> *all* network stuff on the machine. >> >> changing mTCP to understand WATTCP.CFG is trivial. (WATTCP.CFG has >> been around for ages, and mTCP is under active development, so mTCP >> should learn to understand WATTCP.CFG) > > I took a look at the WATTCP configuration file once and I found some > extra things in there that could complicate things, so I moved along. The idea to add a "/W" option to DHCP.EXE sounds really nice. At first glance. But after the "/W" for WATTCP.CFG, a "/N" option might also be a good idea - why not translate the same network values into environment settings for NTCPDRV programs? And then add a "/MS" option, to put them into Microsofts PROTOCOL.INI too (nobody understood "DisableDHCP=0" anyway). :-) This was irony. > I wrote mTCP from scratch before I was aware of WATTCP. I can count on > my fingers the number of times I've used WATTCP apps since I've become > aware of it. I needed a working WATTCP.CFG because I wanted a working FDNPKG. VirtualBox uses NAT networking per default. The WATTCP.CFG in FreeDOS 1.1 configures DHCP per default. WATTCP programs do not seem to recognize the DHCP server used by VirtualBox NAT. So FDNPKG will not work in VirtualBox. At least not out of the box. :-) FDNPKG is a promising idea how to get, install and update FreeDOS programs. It is a WATTCP app. So if it goes into FreeDOS 1.2, you might need more fingers in the future. ;-) > Another option would be to just fix the WATTCP code so that it handles > DHCP better. Has anybody looked into that? Maybe it's the other way around? The problem wouldn't occur, if FDNPKG would use mTCP HTGET (or at least the code) to download the packages instead of the old WATTCP stack. Why fix old code, when there's brilliant new code for brilliant new programs? But this might be just a users point of view. Anyway: For the moment the problem seems to be solved. VirtualBox users can use M2WAT.COM and maybe it also goes into a future FreeDOS version, so most users will never have to think about WATTCP.CFG again. Ulrich -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] VirtualBox and FTP
On 9/1/2014 12:30 PM, Tom Ehlert wrote: > any good reason mTCP and DHCP can't update/use WATTCP.directly ? > > imho there should be a *single* network configuration file, used by > *all* network stuff on the machine. > > changing mTCP to understand WATTCP.CFG is trivial. (WATTCP.CFG has > been around for ages, and mTCP is under active development, so mTCP > should learn to understand WATTCP.CFG) I took a look at the WATTCP configuration file once and I found some extra things in there that could complicate things, so I moved along. If somebody else wants to pick up the mTCP DHCP source code and change it they are welcome to do so. I've contributed quite a bit the last few years. I wrote mTCP from scratch before I was aware of WATTCP. I can count on my fingers the number of times I've used WATTCP apps since I've become aware of it. While I am happy that people are using my code, I code for my own enjoyment. And WATTCP is not on the RADAR at the moment. Another option would be to just fix the WATTCP code so that it handles DHCP better. Has anybody looked into that? Mike -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] VirtualBox and FTP
Hi, > I don't want to brag too much, but M2WAT shows the absolute brilliance > of separating the DHCP process from the programs. ;-0 The mTCP programs > do not know or care about DHCP; they behave the same whether they have a > static IP address or a DHCP obtained one. M2WAT helps the WATTCP > programs behave the same way; they can run as though they are on a fixed > address and only M2WAT knows the difference. any good reason mTCP and DHCP can't update/use WATTCP.directly ? imho there should be a *single* network configuration file, used by *all* network stuff on the machine. changing mTCP to understand WATTCP.CFG is trivial. (WATTCP.CFG has been around for ages, and mTCP is under active development, so mTCP should learn to understand WATTCP.CFG) > For FreeDOS the installer can place M2WAT wherever it makes the most sense. there is no good reason to add, document, or even discuss another program (even if it is open source) with little reason to exist in the first place Tom -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] VirtualBox and FTP
On Mon, Sep 1, 2014 at 2:44 PM, Mateusz Viste wrote: > DHCP separation can be nice, but it has also its downsides. > > It's definitely a nice choice because it makes programs a bit smaller. > However, a problem might appear in the (unlikely?) situation where a > user plays with a network-enabled program while his lease expires. On home routers I've used, you can associate a device with an IP address and have the router always assign the same one. You can also set the time for a lease. While the above mentioned issue can be irritating, it's easy enough to work around, and anyone trying to attach a FreeDOS machine to a home network should be able to do it. FreeDOS *is* a techie toy, and making actual use of it requires various sorts of knowledge. I'm all in favor of separating DHCP from TCP. The FTP program needs an IP address. It should neither know nor care whether it was assigned by DHCP or is a static address. The question on the mentioned downside is "How likely is it to happen?" and the answer is "Not likely enough to justify efforts to work around it." If the user gets bit, they can change their router configuration. If they don't know how to do that, they are unlikely to be running FreeDOS in the first place. > Mateusz __ Dennis -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] VirtualBox and FTP
The expiring lease problem is irritating. My answer to that is have people choose reasonable lease times and to run DHCP before doing something that might run a while. "Reasonable" generally means at least 8 hours ... If 8 hours is too long a nice work around is to configure the DHCP server to assign the same address each time to a given MAC address. This allows the DOS machine to use DHCP while having the benefits of a fixed address. It is also possible to just configure things statically and avoid the problem entirely. For the very long running programs (the web server or the FTP server) I've thought about including the DHCP and SNTP code in them; that would allow them to refresh their lease and keep the system time accurate for extended periods of time. (Days or weeks ...) The DHCP portion would not be necessary if using one of the two work-arounds above. Mike -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] VirtualBox and FTP
DHCP separation can be nice, but it has also its downsides. It's definitely a nice choice because it makes programs a bit smaller. However, a problem might appear in the (unlikely?) situation where a user plays with a network-enabled program while his lease expires. Say, my DHCP router provides leases of 1h. Then I run the MTCP FTP program and move files back and forth on various servers for a long time - after 1h my lease expires, and depending on the implementation of the local DHCP server, havoc may start if it attributes "my" IP to another client. This is of course an extremal case, since usually DHCP servers provide longer leases, but who knows. DHCP clients are supposed to renew their IP as soon as their lease expire - or sooner (many times they do it halfway). Using an external DHCP process makes this impossible (unless written as a TSR, which is not the case here, and would probably end up being a memory hog anyway). But for any "reasonable" use, an external DHCP tool is very fine, yes. Just wanted to provide a 'full' picture on the subject :) cheers, Mateusz On 09/01/2014 08:30 PM, Michael Brutman wrote: > I don't want to brag too much, but M2WAT shows the absolute brilliance > of separating the DHCP process from the programs. ;-0 The mTCP programs > do not know or care about DHCP; they behave the same whether they have a > static IP address or a DHCP obtained one. M2WAT helps the WATTCP > programs behave the same way; they can run as though they are on a fixed > address and only M2WAT knows the difference. > > If David does not mind I would provide a link to M2WAT or even host a > self-contained ZIP of the source code and executable on my mTCP home > page. But I don't think I am going to put it in with the other mTCP > programs; those are pretty much 100% my authorship and I don't want to > mix things in. > > For FreeDOS the installer can place M2WAT wherever it makes the most sense. > > > Mike -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] VirtualBox and FTP
I don't want to brag too much, but M2WAT shows the absolute brilliance of separating the DHCP process from the programs. ;-0 The mTCP programs do not know or care about DHCP; they behave the same whether they have a static IP address or a DHCP obtained one. M2WAT helps the WATTCP programs behave the same way; they can run as though they are on a fixed address and only M2WAT knows the difference. If David does not mind I would provide a link to M2WAT or even host a self-contained ZIP of the source code and executable on my mTCP home page. But I don't think I am going to put it in with the other mTCP programs; those are pretty much 100% my authorship and I don't want to mix things in. For FreeDOS the installer can place M2WAT wherever it makes the most sense. Mike -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] VirtualBox and FTP
> Am 01.09.2014 um 17:05 schrieb Ulrich : > > Mike, what do you think - would it be a good idea to ship it with your mTCP > package? If this is Ok with Dave, I should have written of course. -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] VirtualBox and FTP
Hi Thanks a lot, Dave, for the program. I was eager to try it, so I downloaded OpenWatcom and compiled my first DOS program :-)) Had some time, while my son listened to some audiobook called "Mama Muh". :-) I copied the program lines to a file m2wat.c and used these settings: wcc m2wat /ms wlink system com file m2wat (Maybe anyone has better/more appropriate compile options??) The resulting binary is m2wat.com which can be downloaded here, in case anyone else wants to test it. http://lazybrowndog.net/freedos/M2WAT.COM I tested it and everything seems to work. I like a lot that M2WAT.COM looks for the environment settings SET MTCPCFG=C:\FDOS\MTCP.CFG SET WATTCP.CFG=C:\FDOS in AUTOEXEC.BAT which allows me to use it from any directory. And also allows to change the directories for the config files of WATTCP and mTCP programs in the future. The program works as expected. Everything else in WATTCP.CFG stays intact and the settings are made in the original lines in WATTCP.CFG (and not at the beginning, as my batchfile did it). The two variations of the IP setting ("my_ip = n.n.n.n or "IP = n.n.n.n") are also correctly interpreted - M2WAT.COM uses the original name and just exchanges the IP address. So this is also working fine. The only thing I'd put on the wishlist would be a backup of the original WATTCP.CFG to WATTCP.BAK. As the results of M2WAT.COM are trivial to review (just the four settings for IP/my_ip, netmask, nameserver and gateway in WATTCP.CFG) I would say the program is ready and working. Mike, what do you think - would it be a good idea to ship it with your mTCP package? It would help DOS users who have a DHCP server and use mTCP programs but also WATTCP programs that need fixed IPs. (Or like in my case, use the DHCP server built in VirtualBox which is not recognized by WATTCP programs). I know this might not be a big number of users ;-) Thanks again to Dave for this little program! Ulrich -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] VirtualBox and FTP
On 8/31/2014 1:36 PM, Rugxulo wrote: > Hi, > > On Sat, Aug 30, 2014 at 10:10 PM, Michael Brutman > wrote: >> It pains me to see this much effort going into what should be a small >> utility that takes the relevant mTCP obtained network parameters and >> writes them into the WATTCP file. There are 15 invocations of the >> mt.exe program in that script. > I agree it could maybe be more optimal, but as long as it works, it's > no deal breaker. Just calling it 15 times isn't really a direct > problem, nor necessarily slow either. Sure. My 4.77Mhz floppy based systems are going to do well with this. Let's not speculate. There are lots of different use cases out there. Loading and executing a program 15 times to do some simple string manipulation is slow and painful on a low end system. You would do faster to type it in by hand using edlin. Even on a fast system it is still much slower than it should be. Cordata's program seems reasonable. I would get rid of the multiple printfs at the end and just use a large block quote. Somebody who uses WATTCP might want to step up, test it, and see if there are any bugs. Mike -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] VirtualBox and FTP
>I suggest that somebody write a small program that takes the current >>configuration parameters from the mTCP configuration file and updates a >WATTCP >configuration file. It should not be a terribly complicated program - >you just >have to do some light string processing. Here' you go: /* M2WAT - Convert mTCP configuration file to WATTCP format. Copyright (C) 2011 by Cordata This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. This program uses the environment variable MTCPCFG to find an mTCP configuration file. This file is interesting to the WATTCP user because it may contain IP address information from DHCP. */ #include #include #include #include #include #include #ifdef __WATCOMC__ #define mktemp _mktemp #endif #define MAX_CFG 4 /* increase this if more data from mTCP goes to WATTCP */ #define MAX_ALIAS 2 /* increase if a WATTCP parameter has more names */ #define NO_ALIAS "" #define LINE_LEN 81 typedef struct cfg_dat { char *mtcp_name;/* how does mTCP refer to parameter */ char *wattcp_name[MAX_ALIAS]; /* how does WATTCP refer to parameter */ char mtcp_value[LINE_LEN]; /* what is the mTCP value for parameter */ int written_2_wat; /* has parameter been written to WATTCP file */ } cfg_dat_type; /* the following table can be used to add items from mTCP to push into the WATTCP file. To add new items just add entries to this table. We account for WATTCP having multiple names for parameters. In particular the IP address can be called "IP" or "MY_IP". */ cfg_dat_type cfg_data[MAX_CFG] = { { "IPADDR","MY_IP","IP","",0}, { "GATEWAY","GATEWAY",NO_ALIAS,"",0}, { "NETMASK","NETMASK",NO_ALIAS,"",0}, { "NAMESERVER","NAMESERVER",NO_ALIAS,"",0}, }; /* function prototypes */ void adjust_wat_line (char *wat_line, char *dst); void store_mtcp_line(char *); void strip(char *); void usage(void); void main(int argc, char *argv[]) { char *mtcp, *wattcp; /* environment variable pointers */ char str[LINE_LEN],w_fname[LINE_LEN],tmp_fname[LINE_LEN]; FILE *m_file, *w_file, *new_w_file; int l,p,new_file=0; if (argc != 1) usage(); if (!(mtcp=getenv("MTCPCFG"))) { fprintf(stderr,"ERROR: must set MTCPCFG environment variable\n"); exit(1); } m_file = fopen(mtcp,"r"); if (!m_file) { fprintf(stderr,"Error opening mTCP config file %s\n",mtcp); exit(1); } while (fgets(str,LINE_LEN -1,m_file)) { str[LINE_LEN -1]='\0'; strip(str); store_mtcp_line(str); } fclose(m_file); if (!(wattcp=getenv("WATTCP.CFG"))) { printf("No WATTCP.CFG Environment variable. Using current directory.\n"); wattcp="."; } strcpy(w_fname,wattcp); w_fname[LINE_LEN -1 ]='\0'; l=strlen(w_fname); if (l > (LINE_LEN - 12)) { fprintf(stderr,"ERROR: WATTCP directory too long.\n"); exit(1); } if ((w_fname[l-1] != '\\') && (w_fname[l-1] != '/')) strcat(w_fname,"\\"); strcpy(tmp_fname, w_fname); /* same directory for temp file */ strcat(tmp_fname,"XX"); strcat(w_fname,"WATTCP.CFG"); if (!(w_file=fopen(w_fname,"r"))) { char ch; printf("WATTCP config file %s does not exist.\n",w_fname); printf("Do you want to create it? (Y/N)"); do ch=toupper(getch()); while ((ch != 'Y') && (ch != 'N')); if (ch == 'N') exit(0); new_file=1; } if (!mktemp(tmp_fname)) { printf("Error: Unable to create temporary file.\n"); exit(1); } new_w_file= fopen(tmp_fname,"w"); if (!new_file) { while (fgets(str,LINE_LEN -1,w_file)) /* read lines from WATTCP file */ { char buf[LINE_LEN]; str[LINE_LEN -1]='\0'; strip(str); adjust_wat_line(str,buf); /* add mTCP info to line, comment out or do nothing*/ fprintf(new_w_file,"%s\n",buf); /* write to new file*/ } fclose(w_file); } /* now check to see if we missed anything */ for (p=0;p-- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] VirtualBox and FTP
Hi, On Sat, Aug 30, 2014 at 10:10 PM, Michael Brutman wrote: > > It pains me to see this much effort going into what should be a small > utility that takes the relevant mTCP obtained network parameters and > writes them into the WATTCP file. There are 15 invocations of the > mt.exe program in that script. I agree it could maybe be more optimal, but as long as it works, it's no deal breaker. Just calling it 15 times isn't really a direct problem, nor necessarily slow either. What I didn't understand was that Ulrich says "I used sed on *nix", but for some reason he seems to only prefer MiniTrue for DOS. Not sure why. Maybe he's unfamiliar with the various DOS ports: http://ftp.ibiblio.org/pub/micro/pc-stuff/freedos/files/util/file/sed/ Obviously sed can use a script file via "-f" and/or separate commands via "-e": sed -e "s/^red/blue/" -e "/green/d" -f script.sed myfile.txt > I suggest that somebody write a small program that takes the current > configuration parameters from the mTCP configuration file and updates a > WATTCP configuration file. It should not be a terribly complicated > program - you just have to do some light string processing. I see little use for writing a one-off compiled program to do this. Maybe you think it'll be faster, smaller, less clunky to do it directly instead of lots of manual search and replace? Not sure what the benefit would be here. (Although, IMO, Turbo Pascal or even FreePascal would be a good fit with its string support.) > Then one > would be able to run the mTCP DHCP program, run the utility, and have > both mTCP and WATTCP apps configured and ready to go. I'm not familiar with MiniTrue syntax, so I'm not exactly sure what needs to be changed here. > As an alternative you can contact David Dunfield and see if he would > license his code in a way that FreeDOS could use it. Or just simply use > it, but don't distribute it with FreeDOS. (A readme file or the wiki > can point to it as a useful utility no matter what the license is, or if > source is not even available.) Well, who wants to email him? I doubt he needs ten of us asking the same thing. But again, I don't think it's a horrible dealbreaker "as is". -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] VirtualBox and FTP
If you're really concerned about a bunch of other parameters in WATTCP.CFG, the more elegant solution (in my opinion of course) is this: Do my original bat file. At the end of the bat file put this: echo "include c:\otherwat.cfg" >> wattcp.cfg Keep all your other stuff in "otherwat.cfg" ... Most (likely all) of that other stuff is not needed anyway. Dave -Original Message- From: Ulrich To: Discussion and general questions about FreeDOS. Sent: Sun, Aug 31, 2014 12:15 pm Subject: Re: [Freedos-user] VirtualBox and FTP I am sorry, there were some errors in my previous post: The batchfile has to be called like this in AUTOEXEC.BAT, right after the line DHCP: DHCP CALL C:\FDOS\M2WAT.BAT Otherwise it wouldn't return to AUTOEXEC.BAT. There were also errors in the batchfile itself. I made some changes, now it seems to work. Sorry for the inconvenience. @echo off rem convert MTCP config file to WATTCP format rem 1. Make a backup of WATTCP.CFG copy /y c:\fdos\wattcp.cfg c:\fdos\wattcp.bak rem 2. Preserve the settings of WATTCP.CFG copy /y c:\fdos\wattcp.cfg c:\fdos\wattcp.mtr rem 3. Delete the settings we need to get from MTCP.CFG C:\MTR202B\mt.exe -b- -c -n c:\fdos\wattcp.mtr ^my_ip.*\n = \z C:\MTR202B\mt.exe -b- -c -n c:\fdos\wattcp.mtr ^IP.*\n = \z C:\MTR202B\mt.exe -b- -c -n c:\fdos\wattcp.mtr ^netmask.*\n = \z C:\MTR202B\mt.exe -b- -c -n c:\fdos\wattcp.mtr ^gateway.*\n = \z C:\MTR202B\mt.exe -b- -c -n c:\fdos\wattcp.mtr ^nameserver.*\n = \z C:\MTR202B\mt.exe -b- -c -n c:\fdos\wattcp.mtr ^hostname.*\n = \r C:\MTR202B\mt.exe -b- -c -n c:\fdos\wattcp.mtr \r = \z rem 4. Get the settings from MTCP.CFG copy /y c:\fdos\mtcp.cfg c:\fdos\wattcp.cfg rem 5. First comment out every line with a '#' C:\MTR202B\mt.exe -b- -c -n c:\fdos\wattcp.cfg (^) = # rem 6. Now uncomment the ones we want, add equal sign and change if needed C:\MTR202B\mt.exe -b- -c -n c:\fdos\wattcp.cfg #ipaddr = my_ip= C:\MTR202B\mt.exe -b- -c -n c:\fdos\wattcp.cfg #netmask = netmask= C:\MTR202B\mt.exe -b- -c -n c:\fdos\wattcp.cfg #gateway = gateway= C:\MTR202B\mt.exe -b- -c -n c:\fdos\wattcp.cfg #nameserver = nameserver= C:\MTR202B\mt.exe -b- -c -n c:\fdos\wattcp.cfg #hostname = hostname= rem 7. Remove all lines leftover from MTCP.CFG C:\MTR202B\mt.exe -b- -c -n c:\fdos\wattcp.cfg #.*\n = C:\MTR202B\mt.exe -b- -c -n c:\fdos\wattcp.cfg # = rem 8. Append all the other settings from the original WATTCP.CFG type c:\fdos\wattcp.mtr >> c:\fdos\wattcp.cfg rem 9. Clean up. del c:\fdos\wattcp.mtr -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] VirtualBox and FTP
Am 31.08.2014 um 05:31 schrieb dmccunney : > it looks like > > mt -b- -c -n wattcp.cfg #ipaddr = my_ip= #netmask = netmask= #gateway > = gateway= #nameserver = nameserver= #hostname = hostname= > > would do the same thing. Hmm. Doesn't. Scrambles wattcp.cfg. :-( But was a good idea. -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] VirtualBox and FTP
On Sat, Aug 30, 2014 at 11:10 PM, Michael Brutman wrote: > > It pains me to see this much effort going into what should be a small > utility that takes the relevant mTCP obtained network parameters and > writes them into the WATTCP file. There are 15 invocations of the > mt.exe program in that script. Among other things, the MiniTrue docs indicate you can have multiple find/replace strings on a command line, so there isn't a need to invoke mt that often. For example, instead of mt -b- -c -n wattcp.cfg #ipaddr = my_ip= mt -b- -c -n wattcp.cfg #netmask = netmask= mt -b- -c -n wattcp.cfg #gateway = gateway= mt -b- -c -n wattcp.cfg #nameserver = nameserver= mt -b- -c -n wattcp.cfg #hostname = hostname= it looks like mt -b- -c -n wattcp.cfg #ipaddr = my_ip= #netmask = netmask= #gateway = gateway= #nameserver = nameserver= #hostname = hostname= would do the same thing. > As an alternative you can contact David Dunfield and see if he would > license his code in a way that FreeDOS could use it. Or just simply use > it, but don't distribute it with FreeDOS. (A readme file or the wiki > can point to it as a useful utility no matter what the license is, or if > source is not even available.) There are lots of useful DOS tools not offered under a license that permits distribution with FreeDOS, but that doesn't mean they shouldn't be used. If nothing else, the wiki can have pointers to them. > Mike __ Dennis https://plus.google.com/u/0/105128793974319004519 -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] VirtualBox and FTP
It pains me to see this much effort going into what should be a small utility that takes the relevant mTCP obtained network parameters and writes them into the WATTCP file. There are 15 invocations of the mt.exe program in that script. I suggest that somebody write a small program that takes the current configuration parameters from the mTCP configuration file and updates a WATTCP configuration file. It should not be a terribly complicated program - you just have to do some light string processing. Then one would be able to run the mTCP DHCP program, run the utility, and have both mTCP and WATTCP apps configured and ready to go. As an alternative you can contact David Dunfield and see if he would license his code in a way that FreeDOS could use it. Or just simply use it, but don't distribute it with FreeDOS. (A readme file or the wiki can point to it as a useful utility no matter what the license is, or if source is not even available.) Mike -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] VirtualBox and FTP
I am sorry, there were some errors in my previous post: The batchfile has to be called like this in AUTOEXEC.BAT, right after the line DHCP: DHCP CALL C:\FDOS\M2WAT.BAT Otherwise it wouldn't return to AUTOEXEC.BAT. There were also errors in the batchfile itself. I made some changes, now it seems to work. Sorry for the inconvenience. @echo off rem convert MTCP config file to WATTCP format rem 1. Make a backup of WATTCP.CFG copy /y c:\fdos\wattcp.cfg c:\fdos\wattcp.bak rem 2. Preserve the settings of WATTCP.CFG copy /y c:\fdos\wattcp.cfg c:\fdos\wattcp.mtr rem 3. Delete the settings we need to get from MTCP.CFG C:\MTR202B\mt.exe -b- -c -n c:\fdos\wattcp.mtr ^my_ip.*\n = \z C:\MTR202B\mt.exe -b- -c -n c:\fdos\wattcp.mtr ^IP.*\n = \z C:\MTR202B\mt.exe -b- -c -n c:\fdos\wattcp.mtr ^netmask.*\n = \z C:\MTR202B\mt.exe -b- -c -n c:\fdos\wattcp.mtr ^gateway.*\n = \z C:\MTR202B\mt.exe -b- -c -n c:\fdos\wattcp.mtr ^nameserver.*\n = \z C:\MTR202B\mt.exe -b- -c -n c:\fdos\wattcp.mtr ^hostname.*\n = \r C:\MTR202B\mt.exe -b- -c -n c:\fdos\wattcp.mtr \r = \z rem 4. Get the settings from MTCP.CFG copy /y c:\fdos\mtcp.cfg c:\fdos\wattcp.cfg rem 5. First comment out every line with a '#' C:\MTR202B\mt.exe -b- -c -n c:\fdos\wattcp.cfg (^) = # rem 6. Now uncomment the ones we want, add equal sign and change if needed C:\MTR202B\mt.exe -b- -c -n c:\fdos\wattcp.cfg #ipaddr = my_ip= C:\MTR202B\mt.exe -b- -c -n c:\fdos\wattcp.cfg #netmask = netmask= C:\MTR202B\mt.exe -b- -c -n c:\fdos\wattcp.cfg #gateway = gateway= C:\MTR202B\mt.exe -b- -c -n c:\fdos\wattcp.cfg #nameserver = nameserver= C:\MTR202B\mt.exe -b- -c -n c:\fdos\wattcp.cfg #hostname = hostname= rem 7. Remove all lines leftover from MTCP.CFG C:\MTR202B\mt.exe -b- -c -n c:\fdos\wattcp.cfg #.*\n = C:\MTR202B\mt.exe -b- -c -n c:\fdos\wattcp.cfg # = rem 8. Append all the other settings from the original WATTCP.CFG type c:\fdos\wattcp.mtr >> c:\fdos\wattcp.cfg rem 9. Clean up. del c:\fdos\wattcp.mtr -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] VirtualBox and FTP
Am 30.08.2014 um 23:56 schrieb Mateusz Viste : > Thanks for sharing! > I might have missed something, but why haven't you used the DHCP.COM tool > from Dave Dunfield, instead of all the sed-like magic? Just curious. The main reason is that (unfortunately) DHCP.COM doesn't seem to be free software (yet). So it can't be distributed. Ulrich -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] VirtualBox and FTP
Hi Ulrich, Thanks for sharing! I might have missed something, but why haven't you used the DHCP.COM tool from Dave Dunfield, instead of all the sed-like magic? Just curious. Mateusz On August 30, 2014 11:47:35 PM GMT+02:00, Ulrich wrote: > >I think I found a solution. > >The problem was: > >When I choose "NAT" as network type for a VirtualBox FreeDOS 1.1 guest, >only mTCP DHCP.EXE is able to get the correct IP addresses from the >DHCP server provided by VirtualBox. WATTCP applications fail to get >their IPs from that DHCP server. > >The idea: >Let mTCPs DHCP.EXE get the correct settings and write them to >C:\FDOS\MTCP.CFG. Then extract them from MTCP.CFG and put them as fixed >network settings into C:\FDOS\WATTCP.CFG. > >Dave pointed me to Minitrue and provided a batch file. So I >experimented a bit and made some additions: >- no lines from MTCP.CFG are leftover in WATTCP.CFG >- all other settings in WATTCP.CFG stay intact and are not modified. > >Prerequisites >Get Minitrue 2.02 which is free software under GNU GPL. >http://www.pement.org/sed/minitrue.htm >http://www.idiotsdelight.net/minitrue/ > >Copy the files into "C:\MTR202B". >Add "C:\MTR202B" to the PATH statement in AUTOEXEC.BAT >Make a batch file "C:\FDOS\M2WAT.BAT" with the following content: > > >@echo off >rem This batch file extracts IP settings from MTCP.CFG and >rem writes them into WATTCP.CFG. > >rem 1. Make a backup of WATTCP.CFG >copy wattcp.cfg wattcp.bak > >rem 2. Preserve the settings in WATTCP.CFG >copy wattcp.cfg wattcp.mtr > >rem 3. Delete the settings we need to get from MTCP.CFG >mt -b- -c -n wattcp.mtr ^my_ip.*\n = >mt -b- -c -n wattcp.mtr ^IP.*\n = >mt -b- -c -n wattcp.mtr ^netmask.*\n = >mt -b- -c -n wattcp.mtr ^gateway.*\n = >mt -b- -c -n wattcp.mtr ^nameserver.*\n = >mt -b- -c -n wattcp.mtr ^hostname.*\n = > >rem 4. Get the settings from MTCP.CFG >copy mtcp.cfg wattcp.cfg > >rem 5. First comment out every line with a '#' >mt -b- -c -n wattcp.cfg (^) = # > >rem 6. Now uncomment the ones we want, add equal sign and change if >needed >mt -b- -c -n wattcp.cfg #ipaddr = my_ip= >mt -b- -c -n wattcp.cfg #netmask = netmask= >mt -b- -c -n wattcp.cfg #gateway = gateway= >mt -b- -c -n wattcp.cfg #nameserver = nameserver= >mt -b- -c -n wattcp.cfg #hostname = hostname= > >rem 7. Remove all lines leftover from MTCP.CFG >mt -b- -c -n wattcp.cfg #.*\n = >mt -b- -c -n wattcp.cfg # = > >rem 8. Append all the other settings from the original WATTCP.CFG >type wattcp.mtr >> wattcp.cfg > >rem 9. Clean up. >del wattcp.mtr > > > >Now you can insert a line >C:\FDOS\M2WAT.BAT >after the line >DHCP >in AUTOEXEC.BAT. > >Conclusion: I can now use FreeDOS 1.1 as a VirtualBox guest with NAT >networking and DHCP. I can FTP from host to guest by using Port >Forwarding in VirtualBox. I don't have to be connected to a network >anymore to exchange files between host and guest with FTP (see previous >mail). mTCP and WATTCP applications work fine. > >I know the above solution is a bit ugly and can be improved. For >instance it is not as elegant as DHCP.COM by David Dunfield, which >inserts the network settings exactly into the places they had in the >original WATTCP.CFG. So if anyone has more ideas, please come forward. > >Thanks! > > > > >-- >Slashdot TV. >Video for Nerds. Stuff that matters. >http://tv.slashdot.org/ >___ >Freedos-user mailing list >Freedos-user@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/freedos-user -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] VirtualBox and FTP
I think I found a solution. The problem was: When I choose "NAT" as network type for a VirtualBox FreeDOS 1.1 guest, only mTCP DHCP.EXE is able to get the correct IP addresses from the DHCP server provided by VirtualBox. WATTCP applications fail to get their IPs from that DHCP server. The idea: Let mTCPs DHCP.EXE get the correct settings and write them to C:\FDOS\MTCP.CFG. Then extract them from MTCP.CFG and put them as fixed network settings into C:\FDOS\WATTCP.CFG. Dave pointed me to Minitrue and provided a batch file. So I experimented a bit and made some additions: - no lines from MTCP.CFG are leftover in WATTCP.CFG - all other settings in WATTCP.CFG stay intact and are not modified. Prerequisites Get Minitrue 2.02 which is free software under GNU GPL. http://www.pement.org/sed/minitrue.htm http://www.idiotsdelight.net/minitrue/ Copy the files into "C:\MTR202B". Add "C:\MTR202B" to the PATH statement in AUTOEXEC.BAT Make a batch file "C:\FDOS\M2WAT.BAT" with the following content: @echo off rem This batch file extracts IP settings from MTCP.CFG and rem writes them into WATTCP.CFG. rem 1. Make a backup of WATTCP.CFG copy wattcp.cfg wattcp.bak rem 2. Preserve the settings in WATTCP.CFG copy wattcp.cfg wattcp.mtr rem 3. Delete the settings we need to get from MTCP.CFG mt -b- -c -n wattcp.mtr ^my_ip.*\n = mt -b- -c -n wattcp.mtr ^IP.*\n = mt -b- -c -n wattcp.mtr ^netmask.*\n = mt -b- -c -n wattcp.mtr ^gateway.*\n = mt -b- -c -n wattcp.mtr ^nameserver.*\n = mt -b- -c -n wattcp.mtr ^hostname.*\n = rem 4. Get the settings from MTCP.CFG copy mtcp.cfg wattcp.cfg rem 5. First comment out every line with a '#' mt -b- -c -n wattcp.cfg (^) = # rem 6. Now uncomment the ones we want, add equal sign and change if needed mt -b- -c -n wattcp.cfg #ipaddr = my_ip= mt -b- -c -n wattcp.cfg #netmask = netmask= mt -b- -c -n wattcp.cfg #gateway = gateway= mt -b- -c -n wattcp.cfg #nameserver = nameserver= mt -b- -c -n wattcp.cfg #hostname = hostname= rem 7. Remove all lines leftover from MTCP.CFG mt -b- -c -n wattcp.cfg #.*\n = mt -b- -c -n wattcp.cfg # = rem 8. Append all the other settings from the original WATTCP.CFG type wattcp.mtr >> wattcp.cfg rem 9. Clean up. del wattcp.mtr Now you can insert a line C:\FDOS\M2WAT.BAT after the line DHCP in AUTOEXEC.BAT. Conclusion: I can now use FreeDOS 1.1 as a VirtualBox guest with NAT networking and DHCP. I can FTP from host to guest by using Port Forwarding in VirtualBox. I don't have to be connected to a network anymore to exchange files between host and guest with FTP (see previous mail). mTCP and WATTCP applications work fine. I know the above solution is a bit ugly and can be improved. For instance it is not as elegant as DHCP.COM by David Dunfield, which inserts the network settings exactly into the places they had in the original WATTCP.CFG. So if anyone has more ideas, please come forward. Thanks! -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] VirtualBox and FTP
Hi, thanks for pointing me to minitrue. Last year I learned to use "sed" in linux and minitrue seems to be comparable. It's also great to see that this is free software under GNU GPL. Maybe this should be included in the util repo of FreeDOS? It seems to be very useful and it is also well documented. AND it has a great name, for those who read "1984" :-) BTW: The homepage is here: http://www.pement.org/sed/minitrue.htm while the download is hosted at: http://www.idiotsdelight.net/minitrue/ While minitrue certainly does the job for most users, I am not sure if this is the best way to get the settings from MTCP.CFG into WATTCP.CFG: - when copying over MTCP.CFG to WATTCP.CFG, lines for telnet, ircjr etc. also go into WATTCP.CFG. They are commented out, but it's kind of strange. But of course it's only one more minitrue command necessary to delete them in WATTCP.CFG, so this is not a big deal. - WATTCP.CFG can be used for much more than for configuring the network. See: http://lazybrowndog.net/freedos/wattcp.txt for an original version of WATTCP.CFG. This means all other settings in the original WATTCP.CFG should stay intact. This seems a bit harder to achieve with minitrue. DHCP.COM by David Dunfield on the other hand can change the relevant WATTCP.CFG settings and leave everything else untouched. DHCP.COM can be downloaded from the homepage, Mike pointed at: http://www.classiccmp.org/dunfield/dos/index.htm (You have to scroll down to the network section.) DHCP.COM is a replacement for DHCP.EXE from the mTCP collection. As the mTCP apps are useful and in the path, either you have to call DHCP.COM with the full name or delete or rename DHCP.EXE. DHCP.COM did not work for me, if it isn't in the same directory as WATTCP.CFG. While with mTCP, it uses the environment variable in AUTOEXEC.BAT: SET MTCPCFG=C:\FDOS\MTCP.CFG But the environment setting for WATTCP.CFG in AUTOEXEC.BAT SET WATTCP.CFG=C:\FDOS is ignored by DHCP.COM. Using the full path like DHCP.COM /W=C:\FDOS\WATTCP.CFG didn't work either. So the right place for DHCP.COM is C:\FDOS\DHCP.COM. It is also necessary to call DHCP.COM twice: DHCP.COM /M=MTCP.CFG /W=WATTCP.CFG doesn't work. So I put these two lines in AUTEXEC.BAT C:\FDOS\DHCP.COM /M=MTCP.CFG C:\FDOS\DHCP.COM /W=WATTCP.CFG and everything works fine. The appropriate lines in WATTCP.CFG are replaced. Everything else stays intact. Other than with minitrue, backups are not made. Unfortunately there is no license file included with DHCP.COM and the homepage says nothing about it. This means it can't be distributed with FreeDOS or other projects. So far this review - thanks again for pointing me to these programs. Ulrich > Am 27.08.2014 um 15:41 schrieb cordat...@aol.com: > >> For those who want a DIY conversion of MTCP DHCP to WATTCP, you can do this: >> >> >> Step 1: Install minitrue on your PC. mt.exe ... google it. (I think it's >> "idiotsdelight.net" or something) >> >> Step 2: Create a batch file called "M2WAT.BAT" >> >> Put this stuff in the batch file: >> >> @echo off >> rem convert MTCP config file to WATTCP format >> copy mtcp.cfg wattcp.cfg >> rem first comment out every line with a '#' >> mt -b- -c -n wattcp.cfg (^) = # >> rem now uncomment the ones we want, add equal sign and change if needed >> mt -b- -c -n wattcp.cfg #ipaddr = my_ip= >> mt -b- -c -n wattcp.cfg #netmask = netmask= >> mt -b- -c -n wattcp.cfg #gateway = gateway= >> mt -b- -c -n wattcp.cfg #nameserver = nameserver= >> mt -b- -c -n wattcp.cfg #hostname = hostname= >> >> >> Step 3 Run it after MTCP DHCP. >> >> Dave >> >> >> -Original Message- >> From: Michael Brutman >> To: Discussion and general questions about FreeDOS. >> >> Sent: Tue, Aug 26, 2014 10:53 am >> Subject: Re: [Freedos-user] VirtualBox and FTP >> >> >> David Dunfield has a utility called DHCP that will work with both mTCP >> and WATTCP. I've not tried it, but David is well known in >> vintage-computer circles and his software is supposed to be pretty good. >> >> http://www.classiccmp.org/dunfield/dos/index.htm >> >> >> Mike >> -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] VirtualBox and FTP
Hello, Tom. Previously, we use ODI stack (Novell) with NIC autodetection (net.bat): https://github.com/ya-mouse/dos-net-odi/ It is already contains a few drivers. It's easy to add more. I hope iPXE would have packet's driver support soon. 29.08.2014, 14:58, "Tom Ehlert" : >> We use undipd driver: >> http://www.shikadi.net/network/files/undi2pd/undipd.com > > this is great - if and only if booted from PXE. > > Tom >> It is widely tested on the newest hardware: notebooks, desktops and servers. >> 28.08.2014, 23:14, "Rugxulo" : >>> Hi, >>> >>> On Mon, Aug 25, 2014 at 10:59 PM, Mateusz Viste wrote: Might be that the DHCP implementation of VirtualBox is incompatible with the DHCP client embedded in Watt32... A PCAP capture might show more, although not sure if there is any point, since watt32 probably won't be updated/fixed any time soon. >>> I'm not really in the loop, but I don't think this is quite true. It's >>> not nearly as dire as it seems, though I admit that DOS overall is >>> always low on volunteers. >>> >>> Here's the new webpage for Watt-32: >>> >>> http://www.watt-32.net/ >>> >>> The latest DJGPP (binary) build of it is here (otherwise you also have >>> to manually rebuild something for correct error numbers with 2.04, I >>> forget): >>> >>> http://na.mirror.garr.it/mirrors/djgpp/beta/v2tk/wat3222br3.zip >>> >>> And there were some posts (on news://comp.os.msdos.djgpp) a few months >>> ago from the author saying he still supports it. Of course, most of >>> his focus these days is Windows (MinGW, etc). But you could probably >>> email him directly if really desperate. >>> >>> >>> -- >>> Slashdot TV. >>> Video for Nerds. Stuff that matters. >>> http://tv.slashdot.org/ >>> ___ >>> Freedos-user mailing list >>> Freedos-user@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/freedos-user > > Mit freundlichen Grüßen/Kind regards > Tom Ehlert > +49-241-79886 > > -- > Slashdot TV. > Video for Nerds. Stuff that matters. > http://tv.slashdot.org/ > ___ > Freedos-user mailing list > Freedos-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/freedos-user -- Anton D. Kachalov ITO, System Architect Tel: 7 (495) 739-70-00 ext.7613 -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] VirtualBox and FTP
> We use undipd driver: > http://www.shikadi.net/network/files/undi2pd/undipd.com this is great - if and only if booted from PXE. Tom > It is widely tested on the newest hardware: notebooks, desktops and servers. > 28.08.2014, 23:14, "Rugxulo" : >> Hi, >> >> On Mon, Aug 25, 2014 at 10:59 PM, Mateusz Viste wrote: >>> Might be that the DHCP implementation of VirtualBox is incompatible with >>> the DHCP client embedded in Watt32... A PCAP capture might show more, >>> although not sure if there is any point, since watt32 probably won't be >>> updated/fixed any time soon. >> >> I'm not really in the loop, but I don't think this is quite true. It's >> not nearly as dire as it seems, though I admit that DOS overall is >> always low on volunteers. >> >> Here's the new webpage for Watt-32: >> >> http://www.watt-32.net/ >> >> The latest DJGPP (binary) build of it is here (otherwise you also have >> to manually rebuild something for correct error numbers with 2.04, I >> forget): >> >> http://na.mirror.garr.it/mirrors/djgpp/beta/v2tk/wat3222br3.zip >> >> And there were some posts (on news://comp.os.msdos.djgpp) a few months >> ago from the author saying he still supports it. Of course, most of >> his focus these days is Windows (MinGW, etc). But you could probably >> email him directly if really desperate. >> >> -- >> Slashdot TV. >> Video for Nerds. Stuff that matters. >> http://tv.slashdot.org/ >> ___ >> Freedos-user mailing list >> Freedos-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/freedos-user Mit freundlichen Grüßen/Kind regards Tom Ehlert +49-241-79886 -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] VirtualBox and FTP
Hello. We use OpenWatcom compiled version of Watt32: https://github.com/ya-mouse/dos-utils This repo contains watt32-version of curl also. We use undipd driver: http://www.shikadi.net/network/files/undi2pd/undipd.com It is widely tested on the newest hardware: notebooks, desktops and servers. 28.08.2014, 23:14, "Rugxulo" : > Hi, > > On Mon, Aug 25, 2014 at 10:59 PM, Mateusz Viste wrote: >> Might be that the DHCP implementation of VirtualBox is incompatible with >> the DHCP client embedded in Watt32... A PCAP capture might show more, >> although not sure if there is any point, since watt32 probably won't be >> updated/fixed any time soon. > > I'm not really in the loop, but I don't think this is quite true. It's > not nearly as dire as it seems, though I admit that DOS overall is > always low on volunteers. > > Here's the new webpage for Watt-32: > > http://www.watt-32.net/ > > The latest DJGPP (binary) build of it is here (otherwise you also have > to manually rebuild something for correct error numbers with 2.04, I > forget): > > http://na.mirror.garr.it/mirrors/djgpp/beta/v2tk/wat3222br3.zip > > And there were some posts (on news://comp.os.msdos.djgpp) a few months > ago from the author saying he still supports it. Of course, most of > his focus these days is Windows (MinGW, etc). But you could probably > email him directly if really desperate. > > -- > Slashdot TV. > Video for Nerds. Stuff that matters. > http://tv.slashdot.org/ > ___ > Freedos-user mailing list > Freedos-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/freedos-user -- Anton D. Kachalov ITO, System Architect Tel: 7 (495) 739-70-00 ext.7613 -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] VirtualBox and FTP
Hi, On Mon, Aug 25, 2014 at 10:59 PM, Mateusz Viste wrote: > > Might be that the DHCP implementation of VirtualBox is incompatible with > the DHCP client embedded in Watt32... A PCAP capture might show more, > although not sure if there is any point, since watt32 probably won't be > updated/fixed any time soon. I'm not really in the loop, but I don't think this is quite true. It's not nearly as dire as it seems, though I admit that DOS overall is always low on volunteers. Here's the new webpage for Watt-32: http://www.watt-32.net/ The latest DJGPP (binary) build of it is here (otherwise you also have to manually rebuild something for correct error numbers with 2.04, I forget): http://na.mirror.garr.it/mirrors/djgpp/beta/v2tk/wat3222br3.zip And there were some posts (on news://comp.os.msdos.djgpp) a few months ago from the author saying he still supports it. Of course, most of his focus these days is Windows (MinGW, etc). But you could probably email him directly if really desperate. -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] VirtualBox and FTP
Thanks a lot Dave and Michael for your answers, which are VERY helpful. I will have time to try and compare the two solutions on the weekend. Looking forward to it. Thanks again! Ulrich Am 27.08.2014 um 15:41 schrieb cordat...@aol.com: > For those who want a DIY conversion of MTCP DHCP to WATTCP, you can do this: > > > Step 1: Install minitrue on your PC. mt.exe ... google it. (I think it's > "idiotsdelight.net" or something) > > Step 2: Create a batch file called "M2WAT.BAT" > > Put this stuff in the batch file: > > @echo off > rem convert MTCP config file to WATTCP format > copy mtcp.cfg wattcp.cfg > rem first comment out every line with a '#' > mt -b- -c -n wattcp.cfg (^) = # > rem now uncomment the ones we want, add equal sign and change if needed > mt -b- -c -n wattcp.cfg #ipaddr = my_ip= > mt -b- -c -n wattcp.cfg #netmask = netmask= > mt -b- -c -n wattcp.cfg #gateway = gateway= > mt -b- -c -n wattcp.cfg #nameserver = nameserver= > mt -b- -c -n wattcp.cfg #hostname = hostname= > > > Step 3 Run it after MTCP DHCP. > > Dave > > > -Original Message- > From: Michael Brutman > To: Discussion and general questions about FreeDOS. > > Sent: Tue, Aug 26, 2014 10:53 am > Subject: Re: [Freedos-user] VirtualBox and FTP > > > David Dunfield has a utility called DHCP that will work with both mTCP > and WATTCP. I've not tried it, but David is well known in > vintage-computer circles and his software is supposed to be pretty good. > > http://www.classiccmp.org/dunfield/dos/index.htm > > > Mike > > > -- > Slashdot TV. > Video for Nerds. Stuff that matters. > http://tv.slashdot.org/ > ___ > Freedos-user mailing list > Freedos-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/freedos-user > -- > Slashdot TV. > Video for Nerds. Stuff that matters. > http://tv.slashdot.org/___ > Freedos-user mailing list > Freedos-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/freedos-user -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] VirtualBox and FTP
For those who want a DIY conversion of MTCP DHCP to WATTCP, you can do this: Step 1: Install minitrue on your PC. mt.exe ... google it. (I think it's "idiotsdelight.net" or something) Step 2: Create a batch file called "M2WAT.BAT" Put this stuff in the batch file: @echo off rem convert MTCP config file to WATTCP format copy mtcp.cfg wattcp.cfg rem first comment out every line with a '#' mt -b- -c -n wattcp.cfg (^) = # rem now uncomment the ones we want, add equal sign and change if needed mt -b- -c -n wattcp.cfg #ipaddr = my_ip= mt -b- -c -n wattcp.cfg #netmask = netmask= mt -b- -c -n wattcp.cfg #gateway = gateway= mt -b- -c -n wattcp.cfg #nameserver = nameserver= mt -b- -c -n wattcp.cfg #hostname = hostname= Step 3 Run it after MTCP DHCP. Dave -Original Message- From: Michael Brutman To: Discussion and general questions about FreeDOS. Sent: Tue, Aug 26, 2014 10:53 am Subject: Re: [Freedos-user] VirtualBox and FTP David Dunfield has a utility called DHCP that will work with both mTCP and WATTCP. I've not tried it, but David is well known in vintage-computer circles and his software is supposed to be pretty good. http://www.classiccmp.org/dunfield/dos/index.htm Mike -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] VirtualBox and FTP
David Dunfield has a utility called DHCP that will work with both mTCP and WATTCP. I've not tried it, but David is well known in vintage-computer circles and his software is supposed to be pretty good. http://www.classiccmp.org/dunfield/dos/index.htm Mike -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] VirtualBox and FTP
>mTCP vs wattcp.cfg - I agree this would be awesome if mTCP could read/write >>WatTCP config files for backward compatibility :) Step 1: Install minitrue on your PC. mt.exe ... google it. Step 2: Create a batch file called "M2WAT.BAT" Put this stuff in the batch file: @echo off rem convert MTCP config file to WATTCP format copy mtcp.cfg wattcp.cfg rem first comment out every line with a '#' mt -b- -c -n wattcp.cfg (^) = # rem now uncomment the ones we want, add equal sign and change if needed mt -b- -c -n wattcp.cfg #ipaddr = my_ip= mt -b- -c -n wattcp.cfg #netmask = netmask= mt -b- -c -n wattcp.cfg #gateway = gateway= mt -b- -c -n wattcp.cfg #nameserver = nameserver= mt -b- -c -n wattcp.cfg #hostname = hostname= Run it. -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] VirtualBox and FTP
Hi, Might be that the DHCP implementation of VirtualBox is incompatible with the DHCP client embedded in Watt32... A PCAP capture might show more, although not sure if there is any point, since watt32 probably won't be updated/fixed any time soon. About some programs needing a fixed IP: yes, this is true, but only for WatTCP (ie. 16 bit) programs. WatTCP doesn't have any DHCP client. This came only with Watt32. mTCP vs wattcp.cfg - I agree this would be awesome if mTCP could read/write WatTCP config files for backward compatibility :) cheers, Mateusz On 08/26/2014 05:32 AM, Ulrich wrote: > > Am 22.08.2014 um 00:47 schrieb Ulrich : > >> As the guest is connected through NAT, he can also do network operations >> like "FDNPKG update". > > I just tried that and "FDNPKG update" still doesn't work. This seems to be > caused by WATTCP. WATTCP.CFG has the line > > my_ip = DHCP > > so it should get the settings from VirtualBox DHCP sever - but it doesn't. > With VirtualBox "Bridged Adapter" FDNPKG gets its settings from the routers > DHCP server and works. With "NAT" it doesn't get them from the VirtualBox > DHCP server and complains about failed downloads. This is not a FDNPKG bug: > WGET also says "Configuring through DHCP..failed". While DHCP.exe and the > mTCP programs work fine. > > After setting the IPs manually in C:\FDOS\WATTCP.CFG it worked. Wouldn't it > be helpful if there was a little tool, that runs after DHCP.EXE and > translates the settings from MTCP.CFG into WATTCP.CFG? Or maybe an option to > DHCP.EXE that makes it change WATTCP.CFG as well? > > If I remember correctly some WATTCP programs need fixed IPs anyway. > > Ulrich > -- > Slashdot TV. > Video for Nerds. Stuff that matters. > http://tv.slashdot.org/ > ___ > Freedos-user mailing list > Freedos-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/freedos-user > -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] VirtualBox and FTP
Am 22.08.2014 um 00:47 schrieb Ulrich : > As the guest is connected through NAT, he can also do network operations like > "FDNPKG update". I just tried that and "FDNPKG update" still doesn't work. This seems to be caused by WATTCP. WATTCP.CFG has the line my_ip = DHCP so it should get the settings from VirtualBox DHCP sever - but it doesn't. With VirtualBox "Bridged Adapter" FDNPKG gets its settings from the routers DHCP server and works. With "NAT" it doesn't get them from the VirtualBox DHCP server and complains about failed downloads. This is not a FDNPKG bug: WGET also says "Configuring through DHCP..failed". While DHCP.exe and the mTCP programs work fine. After setting the IPs manually in C:\FDOS\WATTCP.CFG it worked. Wouldn't it be helpful if there was a little tool, that runs after DHCP.EXE and translates the settings from MTCP.CFG into WATTCP.CFG? Or maybe an option to DHCP.EXE that makes it change WATTCP.CFG as well? If I remember correctly some WATTCP programs need fixed IPs anyway. Ulrich -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] VirtualBox and FTP
>Just use passive mode >connections >and you'll be fine. It's exactly the other way around ;) Ulrich has its server behind a masquerading PAT, not the client. So ACTIVE mode is what should work, IF its ftp client is smart enough to ignore the IP presented by the server in the control channel (or if vbox provides some FTP hack on its NAT implementation, but this I have much doubts about) cheers, Mateusz -- Sent from mobile mail. -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] VirtualBox and FTP
Am 21.08.2014 um 22:47 schrieb Michael B. Brutman : > I am a little late in responding; moving an entire house of belongings > and children is not fun. Wow, best wishes! We are looking for a new house at the moment, so this is something that might happen to our family too, sooner or later. > Mateusz provided a good explanation - it is "active" vs. "passive" mode > connections. Reading your explanation just encouraged me to work on this again - and this time I succeeded: Switching from the default "passive" mode to "active" did the trick for me. I just tried this successfully with Filezilla, Cyberduck and ForkLift. My configuration: In Oracle VM VirtualBox Manager I click on the FreeDOS guest VM. In the guest configuration on the right side I open "Network". In the field "Attached to" I choose "NAT". I open "Advanced". I click on "Port Forwarding" I add a new rule by clicking on the "+" sign My settings: Name: guestftp Protocol: TCP Host IP: Host Port: 2121 Guest IP: Guest Port: 21 (Host IP and Guest IP are left blank). Alternatively, if you prefer the terminal, use the command VBoxManage modifyvm "nameoftheguest" --natpf1 "guestftp,tcp,,2121,,21" (This forwards all TCP traffic from the host port 2121 to the guest port 21.) In FreeDOS, AUTOEXEC.BAT runs DHCP.EXE at boot. With VirtualBox NAT this works fine, so this will update C:\FDOS\MTCP.CFG to have the following lines at the end: IPADDR 10.0.2.15 NETMASK 255.255.255.0 GATEWAY 10.0.2.2 NAMESERVER 192.168.1.1 LEASE_TIME 86400 This is correct, 192.168.1.1 is my router, 10.0.2.2 is the virtual adapter that VirtualBox creates. C:\FDOS\MTCP.CFG also defines the password file for FTP users in this line: ftpsrv_password_file c:\fdos\ftppass.txt My C:\FDOS\FTPPASS.TXT has only one line: user password /drive_c/share [any] all So the "user" with the password "password" can access the directory C:\SHARE. Filezilla Configuration: In FIlezilla I open the Site Manager, I select the entry for the FreeDOS FTP settings In the tab "General" these are my settings: Host: 127.0.0.1 Port: 2121 Protocol: FTP Encryption: Use Plain FTP Logon: Normal User: your username as defined in mTCP C:\FDOS\FTPPASS.TXT Password: your password as defined in mTCP C:\FDOS\FTPPASS.TXT Then I open the tab "Transfer Settings" and set the "Transfer Mode" to "Active". I can now successfully transfer files between the FreeDOS guest and my host. As the guest is connected through NAT, he can also do network operations like FDNPKG update. That the FreeDOS guest can only be accessed from the outside through Port Forwarding is perhaps more secure than using the "Bridged Adapter" mode (But on the other hand, DOS is not a networking OS anyway so it won't answer to portscans etc..). Last but not least the Filezilla Log: Status: Connecting to 127.0.0.1:2121... Status: Connection established, waiting for welcome message... Response: 220 mTCP FTP Server Command:USER user Response: 331 User OK, send Password Command:PASS Response: 230 User logged in Status: Server does not support non-ASCII characters. Status: Connected Status: Retrieving directory listing... Command:PWD Response: 257 "/" is current directory Command:TYPE I Response: 200 Type set to I Command:PORT 127,0,0,1,220,17 Response: 200 PORT command successful Command:LIST Response: 150 Sending file list Response: 226 Transfer complete Status: Directory listing successful > I'm not sure what is wrong with the VirtualBox host only mode. It is > not working for me here either. Yes, I only got this working with a fixed IP (see my previous mail). The VirtualBox DHCP server isn't recognized here. But I am really glad now, NAT is working and allows a host-guest connection through port forwarding. AFAIK this might be what most VirtualBox users want anyway.. Ulrich -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] VirtualBox and FTP
I am a little late in responding; moving an entire house of belongings and children is not fun. Mateusz provided a good explanation - it is "active" vs. "passive" mode connections. Back 15 years ago before NAT was in widespread use all FTP connections were "active." The client would initiate a connection to the server for sending commands. If data needed to be sent the server would initiate the connection to the client. And in the very very old days, specific port numbers were assumed. NAT completely screws this up by acting as a "diode", allowing new connections to pass through in one direction but not in the other. So your FTP client can make the control connection to the server, but the server can not make a connection back to the client because of NAT. Directory listings require a new socket, so this breaks even simple commands. There are two ways around this. Most firewalls that implement NAT do some basic packet inspection and detect this particular FTP problem, and correct for it. So even though NAT dictates that the FTP server should not be able to make an inbound TCP connection to your client behind the firewall, the firewall actively does some work to allow this. It has to inspect packets to do this, and it only works with the well-known FTP port (21). If you choose a non-standard FTP control port to work with, it breaks. The second is to use "passive" connections. When in passive mode, the client always initiates new socket connections, even for data transfers. If your client can make the control connection then it can also make the data connection. The FTP protocol is really very powerful. It allows you to direct data transfers between multiple machines, if you can coordinate them. It was too complex for it's own good though. Just use passive mode connections and you'll be fine. I'm not sure what is wrong with the VirtualBox host only mode. It is not working for me here either. Mike -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] VirtualBox and FTP
Hi Mateusz, Am 20.08.2014 um 08:23 schrieb Mateusz Viste : > If your client is behind NAT, the ACTIVE mode will not work without > special hacks, because the server won't be able to reach the client. > If your server is behind NAT, then it's PASSIVE mode that won't work, > because your server will announce its private IP to the client, and even > if you force it to announce its correct (public) IP, it still won't work > because you'd need a redirection on your NAT box to handle data ports > (and this is tricky as well, since the port can be anything - you'd have > to force your server to use only a specific pool of ports, and redirect > them all...) > Thanks a lot! This sounds conclusive. I was really struggling to make this work last night. > The "bridge" configuration is IMHO the best, since it provides you a > full connectivity, just like for a real machine in your network. But if, > for any reason, you are scared that FreeDOS will hack your home router, > then "HOSTONLY" is definitely the answer. > > Now, why does the VirtualBox DHCP fail in HOSTONLY mode, this I don't > know. I can only guess there is some kind of special vbox configuration > that will allow you to choose where you want to set up the vbox DHCP > server for listening. This can be done with the VirtualBox GUI (the main program, not the guest), just go to Settings - Network - Host-only Network. Or you use the VBoxManage command and do something like this: VBoxManage dhcpserver modify --ifname vboxnet0 --ip 192.168.56.2 --netmask 255.255.255.0 --lowerip 192.168.56.101 --upperip 192.168.56.120 --enable Unfortunately the DHCP server is not recognized neither by the mTCP dhcp client nor by the WATTCP programs. But: I got the host-only mode working! By using fixed IPs in MTCP.CFG. In "Settings" - "Network" - "Host-only Network" I edit (the screwdriver icon) vboxnet0 to have the values: IPv4 address: 192.168.56.1 Netmask: 255.255.255.0 (These are the default settings for host-only mode) My C:\FDOS\WATTCP.CFG looks like this: my_ip = 192.168.56.10 netmask = 255.255.255.0 gateway = 192.168.56.1 nameserver = 192.168.56.1 domain_list = your.domain.com Then I can just connect with Filezilla to 192.168.56.10. Here is the view under the hood: Status: Connecting to 192.168.56.10:21... Status: Connection established, waiting for welcome message... Response: 220 mTCP FTP Server Command:USER user Response: 331 User OK, send Password Command:PASS Response: 230 User logged in Command:SYST Response: 215 UNIX Type: L8 Command:FEAT Response: 211-mTCP FTP server features: Response:MDTM Response:SIZE Response: 211 End Status: Server does not support non-ASCII characters. Status: Connected Status: Retrieving directory listing... Command:PWD Response: 257 "/" is current directory Command:TYPE I Response: 200 Type set to I Command:PASV Response: 227 Entering Passive Mode (192,168,56,10,9,181) Command:LIST Response: 150 Sending file list Response: 226 Transfer complete Status: Calculating timezone offset of server... Command:MDTM INSERTS.TXT Response: 213 20140820150442 Status: Timezone offsets: Server: -14400 seconds. Local: 7200 seconds. Difference: 21600 seconds. Status: Directory listing successful So this works. I do not need to have a real network connection. I can just run FreeDOS as VirtualBox guest on my MacBook and connect to it with Filezilla or any other FTP-client, no matter if I am in my LAN, in a train or at work. So that's great. Thanks again! Ulrich -- Slashdot TV. Video for Nerds. Stuff that matters. http://tv.slashdot.org/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] VirtualBox and FTP
Hi, FTP is a nasty protocol, that never should have existed in the first place... But once it's done, it's impossible to get rid of it, unfortunatly. The problem is that FTP is an out-of-band protocol, meaning it separates data and control in two different channels (aka connections). There are several modes of operation, where the two most known are ACTIVE and PASSIVE. ACTIVE: your server receives a PORT request, and then it tries to establish a new connection back to the client, to send data PASSIVE: your client sends a PASV request to the server, and then the server answers by providing an IP and a port to which the client has to establish a second (data) connection. When it comes to NAT, everything brakes. Vendors implements hacks of various kinds into theor products to jump over hoops with FTP vs NAT... If your client is behind NAT, the ACTIVE mode will not work without special hacks, because the server won't be able to reach the client. If your server is behind NAT, then it's PASSIVE mode that won't work, because your server will announce its private IP to the client, and even if you force it to announce its correct (public) IP, it still won't work because you'd need a redirection on your NAT box to handle data ports (and this is tricky as well, since the port can be anything - you'd have to force your server to use only a specific pool of ports, and redirect them all...) Short answer: What you need is simply a FTP connectivity between two local hosts, so the easy solution is simply to skip NAT, since you don't need it in the first place. The "bridge" configuration is IMHO the best, since it provides you a full connectivity, just like for a real machine in your network. But if, for any reason, you are scared that FreeDOS will hack your home router, then "HOSTONLY" is definitely the answer. Now, why does the VirtualBox DHCP fail in HOSTONLY mode, this I don't know. I can only guess there is some kind of special vbox configuration that will allow you to choose where you want to set up the vbox DHCP server for listening. If you're really stuck with vbox NAT, then find a way to set up your FTP client so it always uses ACTIVE mode (most clients allow such configuration, FileZilla provides such settings for sure). This will work, because in your specific configuration, it's the server that's behind NAT, so the client can't establish the secondary connection by itself. On top of this, you might need to configure the mTCP FTP server to announce its public IP, unless your client is smart enough to ignore the RFC and connect back to the server's IP, as used for the control channel. cheers, Mateusz On 08/20/2014 01:44 AM, Ulrich wrote: > Hi > > I just tested a bit more what is possible with DOS networking and VirtualBox. > > I always wondered why I need to choose "Bridged Adapter" in the guest network > settings to establish a FTP connection between host and guest. Because that > means the connection needs the physical router in my LAN. > > It should be possible to make a connection between the host and the FreeDOS > guest only locally, even when I am not connected to a physical network. > > Normally this is possible by choosing "NAT" in the guest network settings. > Then you need to activate port forwarding. Either in the GUI, choosing the > guest, choosing "Network" - "Advanced" - "Port Forwarding". Or by using the > terminal and commanding: > > VBoxManage modifyvm "nameoftheguest" --natpf1 "guestftp,tcp,,2121,,21" > (This forwards all TCP traffic from the host port 2121 to the guest port 21.) > > If I do this, the following happens: > FreeDOS 1.1 boots and the network is up. > mTCP dhcp gets network address 10.0.2.15 > I start mTCP ftpsrv > I connect with Mac OSX terminal ftp client. > I login. > Then, when I try to list the directory, there is a timeout of 1 minute and 17 > seconds. After that it tells me "PORT command successful" and everything > seems to work. Here the log. > > ftp> open 127.0.0.1 2121 > Connected to 127.0.0.1. > 220 mTCP FTP Server > Name (127.0.0.1:uhansen): user > 331 User OK, send Password > Password: > 230 User logged in > Remote system type is UNIX. > Using binary mode to transfer files. > ftp> ls > 227 Entering Passive Mode (10,0,2,15,8,82) > ftp: Can't connect to `10.0.2.15': Operation timed out > 200 PORT command successful > 150 Sending file list > drwxrwxrwx 1 ftp ftp 0 Dec 28 1980 DRIVE_C > > Is it possible, the client is trying to connect to 10.0.2.15 instead of > 127.0.0.1 2121 ? > > But from there on everything seems to work. > > Unfortunately I had no success with Filezilla and Forklift (my favorite > filemanager on the Mac). > > If I connect with Filezilla and try to list the directory I get: "425 Cant > open connection - please try again". > Then the connection is closed. > > Status: Verbinde mit 127.0.0.1:2121... > Status: Verbindung hergestellt, warte auf Willkommensnachricht... > Antwort: