TCP/IP for a Macintosh 512Ke (68000, 512 KB, System 6.0.8) over LocalTalk, without MacTCP.
The Mac carries IP inside AppleTalk DDP (MacIP) to a MacIP gateway, which forwards it to the LAN and the internet:
512Ke app ── talkip (IP/ICMP/UDP/TCP + MacIP client) ── DDP socket 72 ── .MPP (ROM AppleTalk)
── LocalTalk (PhoneNET) ── TashTalk 2 hat ── TashRouter ── EtherTalk ── netatalk macipgw ── IP
MacTCP doesn't fit in a 512Ke's RAM alongside System 6 and AppleShare, so talkip links a small stack into each
application instead. It needs no MacTCP and no hardware beyond the LocalTalk link the Mac already has. For
applications built for MacTCP, the optional TalkIP Driver puts the same stack behind MacTCP's .ipp driver
interface.
| App | What |
|---|---|
| TalkIP Status | Opens socket 72, finds the gateway, leases an address, answers ping; shows counters and free memory |
| TalkIP Ping | ICMP echo to a host name or IP address |
| TalkIP Lookup | DNS lookups (A, PTR) through the nameserver the gateway hands out |
| TalkIP Fetch | Gopher/TCP fetch with timing, a test tool |
| TalkIP Web | An extremely basic HTTP/1.0 browser: text, headings, links. HTTPS sites through a proxy such as macproxy |
| TalkIP Driver | An INIT that installs a MacTCP-compatible .ipp driver: unmodified MacTCP applications use talkip |
| AppleTalk On | A 138-byte INIT that turns AppleTalk on at every startup, for Macs whose PRAM battery is dead or missing |
From the releases: talkip-<version>.dsk is an 800K disk image (for a
Floppy Emu, BlueSCSI or an emulator), and talkip-<version>.sit is a StuffIt 1.5 archive of the same files: the five
tools, the TalkIP Driver and AppleTalk On INITs, and a Read Me. The tools run as they are. To use an INIT, drag it into
the System Folder and restart.
talkip also provides the MacTCP-style API (_TCPCreate … _UDPRelease) that the
Geomys (Gopher) and Flynn (Telnet) clients
use, so they can be built against talkip instead of MacTCP ("Lite" builds for 512 KB). With talkip cloned next to
them:
./scripts/build.sh --preset minimal --talkip # in geomys/
./scripts/build.sh --preset minimal --finger --talkip # in flynn/A Macintosh 512Ke with System 6.0.8, reaching a netatalk macipgw over LocalTalk. These were taken in the
Snow emulator on LToUDP; the same apps run on the real machine.
On a real Macintosh 512Ke through netatalk's macipgw:
- lease and ping, DNS, Gopher, Telnet, and Wikipedia over HTTPS through macproxy;
- the TalkIP Driver: stock MacTCP builds of Geomys and Flynn run through it unmodified. It costs about 19K of application heap (docs/m8-ipp-driver.md).
The same tools through ClassicStack's MacIP gateway are compared in docs/m7-classicstack.md. That comparison led to a retransmission fix upstream, ObsoleteMadness/ClassicStack#21.
Design, milestones and the protocol notes: docs/PLAN.md, docs/research/macip-ddp.md.
Cross-compiled with Retro68 (68000, -m68000):
TOOLCHAIN=/path/to/Retro68-build/toolchain/m68k-apple-macos/cmake/retro68.toolchain.cmake ./scripts/build.shThe output in build/ is .bin (MacBinary), .dsk and .APPL files; ./scripts/package.sh then makes the release
disk image and archive, and ./scripts/release.sh vX.Y.Z publishes them. Host-side tests for the TCP, DNS, HTML and
URL code: make -C tests/host. Testing was done in Snow (an emulated 512Ke on
LToUDP), then on the real Mac.
- A Macintosh with the 128K ROM or later (512Ke, Plus, …) and System 6, on LocalTalk.
- A MacIP gateway on the same AppleTalk internet: netatalk's
macipgwor ClassicStack in MacIP mode.
ISC (see LICENSE). include/MacTCP.h is Apple's interface header, included for building.





