Dial-Up Networking with Windows 3.1 (3.x)
Trumpet Winsock Configurations
------------------------------
All questions regarding the use and setup of the Public
Domain utility "Trumpet Winsock" can be directed to
trumpet-info@trumpet.com.au, or trumpet-support@trumpet.com.au
You can access http://www.panix.com/~rryan/trumpet.html
for further documentation on configuring Trumpet
winsock for Remote Access & troubleshooting tips.
You can find the most current version at:
http://www.trumpet.com.au/ in the /winsock directory
and the file is called twsk30d.exe
Also you can look at the following site with any
browser, ftp://ftp.trumpet.com/winsock/twsk30d.exe
The trumpet winsock is public domain utility and is not supported
by Remote Access Support, we can answer general questions you
might have about setting it up.
Configurations:
---------------
First, address the SETUP under the FILE pull down menu.
IP address: 0.0.0.0
Netmask: 255.255.255.0
Default gateway 38.1.1.1
Name server: 38.8.219.2 38.8.220.2
Time server: (blank)
Packet vector 00
*** MTU, TCP RWIN, TCP MSS can vary. Try setting 1) or 2)
1) MTU: 1064 (this should be TCP MSS plus 40)
TCP RWN: 4096 (this should be TCP MSS times 4)
TCP MSS: 1024 (this should be a multiple of 512 up to 2096 -- lower
number for faster response; higher number for more efficient
transport, ie, big binaries)
2) MTU: 552 (this should be TCP MSS plus 40)
TCP RWN: 2048 (this should be TCP MSS times 4)
TCP MSS: 512 (this should be a multiple of 512 up to 2096 -- lower
number for faster response; higher number for more efficient
transport, ie, big binaries)
Demand Load Time out (secs) 5
TCP RTO MAX: 60
Internal PPP checked
SLIP Port (your com port number)
Baud Rate: your hardware baud rate setting
Hardware handshake: checked
Van Jacobsen CSLIP Compression: unchecked
Online Status Detection: None
Set the PPP OPTIONS under the FILE menu to use PAP authentication.
Username: original login/userid
Password: your 8 character case sensitive password
Under the DIALLER menu, invoke 1SETUP CMD and fill in the phone
number, but leave the next two fields (login/password) blank.
Under the DIALLER menu, invoke OPTIONS and select:
Automatic login & logout on demand
Use standard SLIP settings for parity & word size
Under the DIALLER menu, choose EDIT SCRIPTS; Edit LOGIN.CMD by deleting
everything after the the line "wait 30 dcd"
Your LOGIN.CMD file should look like this:
#
# Trumpet Winsock 2.1 Login.cmd
#
# Copyright (C) 1994,1995 Peter R. Tattam &
# Trumpet Software International Pty Ltd (TSI)
# All rights reserved.
#
# Unless TSI has given prior written consent to such use,
# no permission is granted to distribute or otherwise make available
# to the public modified versions of this script for commercial purposes.
# Any permitted distribution of modified versions of the script must
# retain the copyright notice at the start of this file and must clearly
# identify those parts of the file which have been modified.
#
#trace on
#
# set up some strings for dialling up^?
#
if ![load $number]
if [query $number "Enter your dial up phone number"]
save $number
end
end
if ![load $username]
if [username "Enter your login username"]
save $username
end
end
if ![load $password]
if [password "Enter your login password"]
save $password
end
end
$modemsetup = "&c1&d2"
$prompt = ">"
$userprompt = "sername:"
$passprompt = "assword:"
$slipcmd = "slip"
$addrtarg = "our address is"
$pppcmd = "ppp"
$pppready = "PPP."
%attempts = 10
###############################################
# timeouts for various sections of the script #
###############################################
#
# timeout for busy tone... adjust this until the BUSY string is detected.
#
%busytimeout = 10
#
# time between successive busy attempts.
#
%busywait = 30
#
# time to wait for a CONNECT string to be received
#
%connecttimeout = 60
#^?
# time to wait until DCD is detected
#
%onlinetimeout = 60
#
# time to wait for username & password prompts
#
%logintimeout = 60
#
# time to wait for server prompt to appear
#
%prompttimeout = 30
#
# time to wait for a SLIP address to be parsed
#
%addresstimeout = 30
#
#
#
#
#----------------------------------------------------------
#
# initialize modem
#
status "Initializing modem..."
output "atz"\13
if ! [input 5 OK\n]
message "Modem is not responding"
abort
end
#
# setup our modem commands
#
output "at"$modemsetup\13
if ! [input 10 OK\n]
message "Modem is not responding"
abort
end
#^?
# send phone number
#
%n = 0
repeat
%n = %n + 1
if %n > %attempts
message "Too many dial attempts"
abort
end
status Dialling $number...(attempt %n)
output "atdt"$number\13
%busy = [input %busytimeout BUSY]
if %busy
status "The line is busy...pausing for a while"
sleep %busywait
%ok = 0
else
%ok = [input %connecttimeout CONNECT]
end
until %ok
input 10 \n
#
# wait till it's safe to send because some modem's hang up
# if you transmit during the connection phase
#
wait %onlinetimeout dcd
#
# now we are finished.
#
|