hide random home http://www.wam.umd.edu/~walrus/Miami-HowTo.html (Amiga Plus Extra No. 5/97, 05/1997)

World Wide Walrus
Walrus@Home
Frame-Free Zone

Cool ARexx Scripts for Miami 1)

How my Amiga stays connected to the internet using a dynamic IP address, and how I can reach my Amiga from afar, regardless how often the network goes down and how often this address changes in my absence.
The Walrus' Pages
My Amiga at Home
Amiga Info

Cool Web Sites
Miami Home


Software Reference

FTPMount-1.0.lha
sed

oplay1231.lha
MiniMail.lha
Now

I leave up to you how to learn how to configure, use, and customize Miami. The following, however, are some useful scripts to demonstrate customizing Miami beyond the common "go online", "go offline" functions provided by Miami's GUI.

Using these scripts I have practically completely automated the establishment and persistent re-establishment of my internet connection, including the maintenance of a "Gateway Page" that is automagically updated to always reflect the currently assigned dynamic IP address for my Amiga.

Please note that the use of the scripts below is entirely at your own discretion. If your telephone connection is not a flat rate, then you may end up with a system so configured that you run up 24 hours of telephone bills a day. Do not install these scripts without a good understanding what each of them does. You have been warned!

  1. Start.miami
    A script that simply announces that Miami will now attempt to establish the network connection. This script is executed whenever Miami is started and it begins dialing or finds the connection active and re-establishes the link (according to your settings.)

  2. Online.miami
    A script that is executed whenever Miami has successfully established the network connection. Online is the most important event in my case: it announces success (digitized sound is fun!), starts up my mail/POP software, and updates my "Gateway Page" on www.wam.umd.edu with the current dynamic IP address so that I (or anyone) can reach my Amiga with maximum ease and without me having to pay for a static IP address. :-)

  3. FailedConnect.miami
    I have Miami configured to redial 10 times. After that, Miami executes this Failed script, which announces that "Miami is having trouble connecting to the Internet Service Provider." The problem is either a busy signal (no, I'm not using AOL, thankyouverymuch!) or some other problem that may need diagnosing. In my case, I am also extremely stubborn and issue an ARexx command to Miami to try once again to go online. The cycle repeats until Miami succeeds or until the folks from the telephone company break down my door and shoot my Amiga.

  4. PassiveOffline.miami
    Telephone lines are finicky. Sometimes the line quality deteriorates and the modems cannot recover. Carrier drops, and the network goes offline. In such a case I have Miami automatically re-establish the network connection and also issue some feedback to me with another digitized message that is played through this script: "Crap, the network disconnected!"

  5. End.miami
    And yes, there actually are times when I choose to take down the network myself! In such a case I kill various tasks that are using TCP/IP (my mail/POP software, the telser.device used by VLT, etc.) and then send an ARexx command to Miami itself to quit.

Nifty? The scripts above are free for the downloading. If you like them, please let me know. If you have awesome additions, don't hesitate to share them!


1)Miami stands for Modem-based Internet for Amiga computers. Miami is a superb TCP/IP stack for the Amiga that takes longer to download than to install and configure (at least with a 14.4K or slower modem.) Miami is written by Holger Kruse.
About the Images


These pages are maintained by Udo Schuermann <walrus@wam.umd.edu>