Guillermo Mart?nez Jim?nez wrote: > >Hello Freedosoyds ;-) > >I want to connect my FreeDOS to the Internet. Do I need a TCP/IP stack? If so, >how must I set-up it? > >Thanks. (sorry for my bad english).
I don't know if Erick Engelke's WATTCP can be classified as a TCP/IP stack, but it works. I have used it to connect to the Internet with Arachne 1.90, Lynx386 2.85r1, UKA_PPP 1.72, and FDSMTPOP 0.35. As I understand it, the WATTCP framework uses the files WATTCP.CFG and IP-UP.BAT to set some TCP/IP parameters. Also the application has to follow the WATTCP protocols in order to use those parameters. With appropriate data, the application can connect to the Internet. Alternatively, the WATTCP.CFG and IP-UP.BAT files can store parameters for a router (instead of true Internet addresses). If everything is set up correctly, then it should work. So what values should be in WATTCP.CFG and IP-UP.BAT? That depends on your system's characteristics (which router, which application, etc.). The first question is: "What are the requirements for connecting to the router?". E.g. Which IP addresses does the router recognize? What is the router's gateway address? Which DNS servers do you use? Some routers assign IP addresses via DHCP, BOOTP, or RARP. Some routers expect the application to choose an appropriate IP address without any help. The second question is "What are the application's requirements for communicating via WATTCP?" Some applications expect the WATTCP.CFG file to be complete before the application starts up. Some applications can receive the info for the WATTCP.CFG via DHCP, BOOTP, or RARP. Some applications depend on the environment variables set by IP-UP.BAT. Of course you also need a packet driver for your NIC. Here are the WATTCP.CFG and IP-UP.BAT files that I used with a BEFSR41 router that I used to have. These values did *not* depend on DHCP, BOOTP, or RARP. WATTCP.CFG: MY_IP =192.168.1.3 NETMASK =255.255.255.0 GATEWAY =192.168.1.1 REMIP =192.168.1.1 NAMESERVER =207.69.188.185 NAMESERVER =207.69.188.186 DOMAIN_SUFFIX = "nobody.invalid" SOCKDELAY = 60 PEERMRU=1500 MSS=512 TXBUFSIZE=1024 RXBUFSIZE=1024 ;DEBUG=1 IP-UP.BAT: set myip=192.168.1.3 set remip=192.168.1.1 set netmask=255.255.255.0 set peermru=1500 set dns=207.69.188.185 set dns2=207.69.188.186 HTH. -Eddie ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user