Connecting to STN via a Gateway or Firewall using 'Watch Me' in STN Express 8.0 with Discover! (Microsoft Windows)
Assumptions
- You have an STN login ID and your STN account is administered by STN Karlsruhe. (The setup procedure for other STN service centers is very similar, but this example uses STN Karlsruhe.)
- Your firewall/gateway is configured to allow you to communicate over the the Internet via the telnet protocol.
Use this technique when your PC is not connected transparently to the Internet, but your PC can connect to another computer that is connected to the Internet. This other computer might be known as a gateway or firewall. For example, one way to reach STN through the Internet might be to logon to the computer named "guardian" and then use the telnet command to connect to STN as shown in the following transcript:
OS rev 42 (guardian)
login: abc
Password: *****
Last login: Thu Jun 9 09:43:11 from wookie
$ telnet stnk.fiz-karlsruhe1.de
Trying 141.66.16.239...
Connected to stnk.fiz-karlsruhe1.de.
Escape character is '^]'.
^M
Welcome to STN International! Enter x:
In this situation, the gateway acts as an intermediary between STN Express and STN.
Before setting-up STN Express to connect through a gateway, you will need to know details about the gateway. These details will depend on your particular gateway. In this example, the details are found in the transcript shown above. You'll need to know:
- The name or address of your gateway computer (guardian)
- How to log on to the gateway. You may need to know
- Your gateway logon ID, if needed (abc)
- Your password, if needed (shown as asterisks)
- The gateway command that lets you connect to another computer. In the example above, the command is telnet. Another common command is "c." (If you do not know what command to use, contact your help desk or network administrator.)
There are two major steps to creating a setup using Watch Me. First, configure STN Express to use Watch Me. Second, make a connection to STN through the gateway while STN Express watches and records what you do. The following example guides you through the process.
Create a logon setup.
Step A
- To create a setup, start STN Express and click the Setup (key) icon on the main STN Express toolbar. If you are asked whether you want to use the STN Setup Wizard, click No. The STN Setup dialog box opens.
Step B

- The names of logon setups that you have already created, if any, are listed under Setup Names.
- Click New to begin creating a new setup.
Step C
- Choose a name for the setup. If you plan to use STN Express to reach different online hosts, choose a name that will help you remember the purpose of the setup.
- Type your STN login ID and password. These are optional; if you do not save them in the setup, STN Express will ask for them when you log in. The password is encrypted when saved.
- In the Connect via field, click on the down arrow, scroll down to the bottom of the list, and select the Winsock option.
- Type the host name or IP address of your firewall/gateway in the appropriate field under Communication Settings.
- Choose the Custom radio button in the Logon Method section.
- Click the Configure... button under Logon Method.
Step D

- Click the Watch Me button.
- watchme.sc appears in the Selected scripts list.
- Click OK to return to the setup definition dialog.
Step E
If you have a login ID in the CAS academic program, follow these instructions to change the STN port letter. Then use your web browser's Back button to return here.
- Click OK to close the setup.
Step F

- The name of the new setup appears in the list.
- Click Save.
- Click OK.
Make the connection while STN Express watches.
Step G
- To log on, click the Logon (telephone) icon.
Step H

- Select the logon setup that was just created. In this example, it's STN via guardian. If you have just one logon setup, this dialog box is not displayed.
- Click OK.
Step I
STN Express will now record all interaction between you and your firewall/gateway in a script file to be named by you. When finished, this script will replace "watchme.sc" in your logon setup.
- The script will be saved in the Uscripts folder inside the STN Express installation folder.
- Enter a file name in the File name box. A .sc extension is added if you do not type it.
- Click Open. If you did not save your STN login ID or password in the logon setup, you'll be prompted for them. You'll also be asked if you'd like to capture a transcript, and the choice is yours.
Step J
- Respond appropriately to your firewall/gateway prompts for a login ID and password if required. NOTE: The password that is supplied and recorded in the script is NOT encrypted.
- At the appropriate gateway prompt, enter the command necessary to telnet to STN followed by STN-C's hostname or IP address. In this case, we used the telnet command. In some cases, the command may be c. In some cases, a command is not needed.
- Once you receive confirmation that you have successfully connected to STN, hit the carriage return key.
- After you see the "Welcome To STN International! Enter x:" prompt...
- ... click the Stop button in the Watch Me window.
Step K
- STN Express will complete the logon process by executing the remainder of the logon script. STN Express will automatically respond with the appropriate STN port letter, your STN login ID, STN password (not displayed on the screen), and the correct terminal type.
- STN News headers will be displayed (omitted from this example).
- You are placed in your default file, usually HOME, and
- the STN arrow prompt (=>) is displayed.
The next time you log in to STN using the setup you just created, STN Express will automatically log you on to the gateway, make the connection to STN, and log you on to STN.
What if the new setup doesn't make the connection?
- Do you see any error messages from your PC, from the gateway, or from STN that point to a problem?
- Can you connect to the gateway computer? If not, then the problem is likely in your PC, the gateway, or the network between them. Verify the name of the gateway computer in your setup. Try to connect to the gateway without using STN Express.
- Does the gateway computer connect to STN? If not, then something about the gateway prevents the connection. Even if STN is down, you should still be able to connect to stnk.fiz-karlsruhe1.de.
If you have any questions about Watch Me, contact the STN Help Desk.







