The "TCP/IP Configuration (LAN)" notebook will also let you configure your system to run telnetd and ftpd as part of the computer's startup process. As an alternative, you can add progam objects to your "Startup" folder for them. You can find the programs in the \TCPIP\BIN directory.
Edit the variables near the begining of autodial.cmd and sendip.cmd and webip.cmd to match your setup. Edit or replace runppp.cmd with a command to dial your ISP using PPP. Additonal changes will be needed for SLIP.
To allow AutoDial to put the computer in suspend mode, install APMTST and run AutoDial with "S" for a parameter. You will also need to open the "Power" object from the "System Setup" folder for this to work.
AutoDial must be told what to do after a connection is made. Pass a parameter, after the "S" for suspend. of a command to run. You may specify any parameters to the command you like. The included commands are:
To force the system running AutoDial to disconnect remotely, open a telnet session to the computer (this requires you to run telnetd along with AutoDial) and give the command "pppkill ppp0".
Detailed instructions:
Please note that while these instructions look long, AutoDial is not terribly difficult to setup. The instructions are made to walk you through each step so that its difficult (in therory) to screw it up.
Unzip the AutoDial archive and put it somewhere on your hard drive. Open "autodial.cmd" in a text editor. Scroll down to the line 28. It reads: SerialPort = "com2:"
. Change com2
to name the serial port your modem is attached to.
The next line, TestConnect = "ping ro.com 1 1 | RxQueue"
, needs to be changed to reflect your network setup. ro.com
should be replaced with the name of a system your ISP uses. It might be fly.hiwaay.net
, or totcon.com
. Usually you'll want to use the name of the machine you can telnet to and get, normally, a UNIX command prompt.
Save "autodial.cmd" with any changes you have made.
Next, open "runppp.cmd" in a text editor. This file should contain the command to dial your ISP. It currently is setup for my account (minus passwords). If you don't know what to put here, download pppfake. Then unzip it. In your \TCPIP\BIN directory, rename ppp.exe to something else (doesn't matter what, just don't lose it!). Rename pppfake.exe (in the pppfake archive) to ppp.exe and place it in \TCPIP\BIN. Next, run the dialer program you use to connect with and tell it to dial your ISP. You will get the pppfake window listing a bunch of parameters. Don't worry about it; pppfake has recorded the information on your drive C. Close the window, and put the original ppp.exe into its original (\TCPIP\BIN) place. Copy the file "C:\MYPPP.CMD" to where you have AutoDial installed, and rename it to "runppp.cmd".
The final file you will need to modify is "sendip.cmd" to email you the IP address ("205.216.92.5", for example) of the computer. Using the address, you can gain access to the remote AutoDial system in the following ways, replacing <IP> with the IP address. The list shows a command that can be given from the command line, a URL that can be given to a web browser, and a description.
Now you can run "autodial sendip" from the command line if you switch to the directory AutoDial has been installed in first. Or, you can create a program object for AutoDial. If you do, be sure the working directory is set to the directory where AutoDial resides.
You can optionally install APMTST (check its instructions) and give AutoDial an "S" for a parmeter ("autodial s sendip") and AutoDial will put your computer into suspend mode when its not connected to your ISP. You will also need to open the "Power" object from the "System Setup" folder for this to work.