Idea on Internet access from C64/C128

From: Christian Johansson (c64_at_comhem.se)
Date: 2005-01-02 15:24:33

Hello everybody,

I read on http://www.nenie.org/cpcip/telprot.html that it is possible to 
use email, Usenet and the web with telnet. I found this very 
interesting. Then, it would be possible to write a C64/C128 program that 
sends the commands listed on the just mentioned page over a null-modem 
cable to a PC. The PC could then send the received commands just as if 
they had been entered on a telnet client on the PC (I'm not sure what 
kind of PC software that is needed for this.)

Here follows a Usenet message that Adam Dunkels wrote on comp.sys.cbm in 
2001 where he wrote that he "surfed the web" using Lunix by writing the 
telnet commands directly. However, on 
http://www.nenie.org/cpcip/telprot.html they write that this causes a "a 
degree of comfort the Spanish Inquisition would be proud of". Therefore, 
I wonder if somebody has already written a C64/C128 e-mail or Usenet 
program that sends the necessary telnet commands over a null-modem cable 
so that it doesn't have to be done manually.

Start of message from Adam Dunkels
-----------------------------------

"Lunix is a Unix-like operating system for the C64/C128 (and I believe an
Atari port is in progress). It has drivers for Swiftlink and userport
RS-232 interfaces and a TCP/IP stack with both PPP and SLIP support. Lunix
can be found at [http://lng.sourceforge.net/].

I have been "surfing the web" using Lunix, but only in the Vice emulator
since I don't have access to any RS-232 interface for the C64.

Anyway, these are the steps that I took:

(On the PC)
1) Connected and configured the serial link between the C64 and the PC and
enabled SLIP.
2) Configured NAT.

(On the C64)
1) I loaded Lunix and started a shell (load "*",8, run, l sh)
2) I loaded the Swiftlink RS232 interface driver (swiftlink)
3) Started the SLIP driver with 2400 bits/sec (slip 2400 &)
4) Started the TCP/IP stack with IP address 192.168.0.64 (tcpip
192.168.0.64). According to some documentation on the Lunix homepage, this
address is hard coded into the binary and can only be changed by
recompiling the kernel.

Now, Lunix is connected to the PC using SLIP. It should now be possible to
do all kinds of TCP/IP stuff, such as "ping 192.168.0.64" from the PC,
"telnet 193.10.66.94 80" from the C64, etc.

In order to really reach the Internet from the C64, the PC will have to run
NAT (Network Address Translation) which basically translates the IP address
192.168.0.64 to the globally unique IP address of the PC. It is also
possible to assign a global IP address to the C64 and recompile Lunix.

It is now possible to use the C64 to surf the web, send/read email,
post/read Usenet news, etc (don't expect too much, though! ;-). Look at
[http://www.nenie.org/cpcip/telprot.html] for some instructions how this
can be done.

/adam"

/Christian Johansson

       Message was sent through the cbm-hackers mailing list

Archive generated by hypermail pre-2.1.8.