home *** CD-ROM | disk | FTP | other *** search
/ ftp.pasteur.org/FAQ/ / ftp-pasteur-org-FAQ.zip / FAQ / windows / win95 / faq / part08 < prev    next >
Encoding:
Text File  |  1998-11-09  |  44.6 KB  |  925 lines

  1. Newsgroups: comp.os.ms-windows.win95.misc,comp.os.ms-windows.setup.win95,comp.os.ms-windows.networking.win95,comp.os.ms-windows.apps.compatibility.win95,comp.os.ms-windows.apps.utilities.win95,comp.answers,news.answers
  2. Path: senator-bedfellow.mit.edu!bloom-beacon.mit.edu!news.kodak.com!news-nysernet-16.sprintlink.net!news-in-east1.sprintlink.net!news.sprintlink.net!newshub.northeast.verio.net!news-nyc.telia.net!newsfeed.cwix.com!204.174.67.209!news.bctel.net!srv4.reelwest.bc.ca!not-for-mail
  3. From: gordonf@intouch.bc.ca
  4. Subject: Win95 FAQ Part 8 of 14: Dial-up Networking
  5. Message-ID: <19981108.8D7FAB8.11D76@ras4vpn10.reelwest.bc.ca>
  6. Date: Sun, 8 Nov 98 20:11:08
  7. Approved: news-answers-request@MIT.EDU
  8. Followup-To: comp.os.ms-windows.win95.misc
  9. Summary: These postings list many questions asked in said newsgroups,
  10.          and answers them as best as I can.  I make references to other
  11.          Web sites and FAQs when appropriate.  Visit the WWW home of
  12.          this FAQ (http://www.orca.bc.ca/win95) for the appropriate
  13.          links.  This section is the 8th: Dial-up Networking
  14. Organization: Personal and Win95 FAQ maintainence
  15. X-NoSpamWanted: This address is not for unsolicited commercial e-mail
  16. X-ImNotKidding: By sending UCE to this address you agree to pay $50.00 CDN
  17. X-pensive-spam: Payable to G. Fecyk, c/o P.O. Box 373 Oakville, MB  R0H 0Y0
  18. X-ploded-spams: Stop e-mail trespassing. <http://www.orca.bc.ca/dul/>
  19. X-federal-bill: Section 302, HR3888 / S1618, R.I.P.
  20. Lines: 901
  21. Xref: senator-bedfellow.mit.edu comp.os.ms-windows.win95.misc:326149 comp.os.ms-windows.setup.win95:77828 comp.os.ms-windows.networking.win95:59631 comp.os.ms-windows.apps.compatibility.win95:17896 comp.os.ms-windows.apps.utilities.win95:62524 comp.answers:33783 news.answers:143969
  22.  
  23. Archive-name: windows/win95/faq/part08
  24. Last-Modified: 1998/11/08
  25. Posting-Frequency: Every two months
  26. URL: http://www.orca.bc.ca/win95/faq8.htm
  27.  
  28. Subject: 8. How do I connect to The Internet? And other dial-up networking
  29. questions
  30.  
  31.      * 8.1. TCP/IP under Windows 95 in a nutshell
  32.           + 8.1.1. How do I set up TCP/IP through a network card?
  33.           + 8.1.2. How do I set up TCP/IP through a modem? (Follow
  34.             exactly to the letter, or else!)
  35.                o 8.1.2.1. Should I get the ISDN/DUN 1.3 update if I
  36.                  don't have ISDN?
  37.                o 8.1.2.2. Can I use two modems at the same time to
  38.                  speed up my connection?
  39.                o 8.1.2.3. How come TCP/IP routing doesn't work if I
  40.                  have a net card AND dial-up connection?
  41.           + 8.1.3. How can I share one dial-up connection over my
  42.             network?
  43.      * 8.2. How come I have to dis-connect from my NetWare server when
  44.        just dialing to The Internet?
  45.      * 8.3. How do I run my Winsock program?
  46.      * 8.4. Using Trumpet (tm) and other TCP/IP stacks (Just don't!)
  47.           + 8.4.1. WARNING: Netscape 32 Personal Edition's Setup
  48.             Wizard screws up TCP/IP
  49.           + 8.4.2. Obtaining Winsock 2.0 for Win95
  50.      * 8.5. How do I get dial up networking to work with other stuff
  51.        besides The Internet?
  52.           + 8.5.1. How do I connect two Win95 computers together with
  53.             dial-up networking?
  54.                o 8.5.1.1. How do I connect two Win95 computers
  55.                  together with Direct Cable Connection?
  56.           + 8.5.2. I'm using DUN to connect to a NetWare server and
  57.             the IPX address for me keeps changing!
  58.      * 8.6. How do I get auto-dial to work?
  59.      * 8.7. How do I set up auto-disconnect?
  60.           + 8.7.1. How do I DISABLE auto-disconnect?
  61.      * 8.8. My provider only has SLIP. Can I use that? (yes.)
  62.      * 8.9. Dial-up networking won't save my password! How do I fix
  63.        it?
  64.      * 8.10. My computer hangs in the task "RNAAPP". How can I fix
  65.        it?
  66.      * 8.11. How can I track my time and costs on my connections?
  67.      * 8.12. How do I use dial-up networking on a null modem cable?
  68.      * 8.13. How do I write a dial-up script?
  69.           + 8.13.1. How can I send a "modem break" in a dial-up
  70.             script?
  71.      * 8.14. How do I set up a dial-up server?
  72.           + 8.14.1. ...for NetWare dial-in?
  73.           + 8.14.2. Top five reasons to use Win95 as a dial-up server
  74.           + 8.14.3. Top ten Dial-up Server mis-conceptions 
  75.      * 8.15. Top ten Internet/Dial-up mistakes 
  76.        
  77. ------------------------------
  78.  
  79. Subject: 8.1. TCP/IP under Windows 95 (Next five section fer Experten only; ist nicht fuer gerverken bei das dumbkoffen)
  80.    
  81.    So you don't trust the Internet Setup Wizard, eh? OK, here's
  82.    TCP/IP in a nutshell.
  83.    
  84.    Transmission Control Protocol/Internet Protocol (TCP/IP) comes with
  85.    Win95 as an NDIS 3.1 protocol. So, aside from connecting to The
  86.    Internet, you can use any other Win95 clients or services over TCP/IP
  87.    as well, or at least, those that don't depend on a particular
  88.    protocol. Now that's pretty cool, but we want to connect to The
  89.    Internet, right?
  90.    
  91.    Win95's network setup also copies the Windows Sockets libraries, based
  92.    on Berkeley University's UNIX Sockets interface. Winsock works over
  93.    any protocol really, which is why Win95 Setup must replace any other
  94.    WINSOCK.DLL with its own, but for The Internet we're primarily
  95.    concerned with Winsock over TCP/IP. All Windows Internet apps use the
  96.    Winsock interface, in one form or another.
  97.  
  98.      * 8.1.1. How do I set up TCP/IP through a network card? 
  99.        
  100.    If you don't already have a network card installed, install it and
  101.    load its Win95 driver. Then add TCP/IP protocol. TCP/IP has six
  102.    property sheets, some of which affect all of TCP/IP, and others only
  103.    affect the net card they're bound to:
  104.      * IP address: Either have it select an IP address automatically, or
  105.        give it an IP address and subnet mask directly. To perform
  106.        automatic IP selection you need a BOOTP server or DHCP server
  107.        operating within your local network. This is unique for each card
  108.        using TCP/IP. NOTE: Thanks to MS short-sightedness again, Win95's
  109.        TCP/IP won't auto-configure from a BOOTP server. Get the BOOTP
  110.        addon desceibed below.
  111.      * WINS configuration: To use Client for MS networks or any other
  112.        NetBIOS apps over TCP/IP, you should have a Windows Internet Name
  113.        Service (WINS) server accessible to you. Feed its IP address here,
  114.        or if you have a DHCP server you can let it fetch WINS information
  115.        from there. For regular Internet connections, select "Disable WINS
  116.        Resolution". These settings affect all net cards using TCP/IP.
  117.      * Gateway: To get to the rest of the Net, feed your router's IP
  118.        address here. I don't believe Win95 will grab Gateway info from a
  119.        DHCP server so ask your administrator for this value. This is
  120.        unique for each card using TCP/IP.
  121.      * DNS Config: This tab not only enables Domain Name Service for
  122.        Winsock apps, it also enables NetBIOS name resolution over DNS.
  123.        Select "Enable DNS" and feed it up to three addresses of DNS
  124.        servers. If you have a local DNS and an Internet provider's DNS,
  125.        you can enter both of them here. Yes, it does work. Also, if you
  126.        wish, enter the domains you wish to enable NetBIOS naming for. For
  127.        example, if you want to look for a server named \\JOE in the
  128.        domain my-domain.com, insert my-domain.com into the domain search
  129.        order list. For regular Internet access you can leave the search
  130.        order fields blank. This tab affects all net cards using TCP/IP.
  131.        NOTE: Supposedly, if you provide DNS info on a DHCP server and
  132.        you leave DNS disabled here, Win95 will grab DNS info from the
  133.        DHCP server.
  134.      * Advanced: This is a useless tab, probably inserted to provide
  135.        controls like TTL and hop count limits and such, but Microsoft
  136.        chose to omit it. Too bad, because enough people complain about
  137.        not being able to control them. Here are the settings I'm
  138.        talking about.
  139.      * Bindings: Very important tab if you don't want someone on The
  140.        Internet poking in your computer. If you have File & Print Sharing
  141.        for MS networks installed, turn off the checkmark to that service
  142.        in this Bindings tab. This way, FPS won't work over TCP/IP, and no
  143.        one on The Internet can get to your computer. This is unique for
  144.        each net card using TCP/IP.
  145.      * 4.00.950B users only: NetBIOS: If you don't use Client for MS
  146.        networks over TCP/IP, you have the option of disabling NetBIOS
  147.        over this protocol, which saves some bandwidth and avoids the
  148.        dreaded RNAAPP bug. If you use Client for MS over any other
  149.        protocol, you must disable the binding between TCP/IP and Client
  150.        for MS networks before it will allow you to turn off NetBIOS over
  151.        TCP/IP.
  152.        
  153.    perin@onyx.interactive.net spent a considerable amount of time
  154.    developing a BOOTP add-on for Win95. If you want to use BOOTP instead
  155.    of DHCP, install his add-in software. You can find it at
  156.    http://www.interactive.net/~perin/
  157.  
  158.      * 8.1.2. How do I set up TCP/IP through a modem? (Follow exactly to
  159.        the letter, or else!) 
  160.        
  161.    Make sure you installed Dial-up Networking from Add/Remove
  162.    Programs/Windows Setup. Then make sure you have the Dial-up Adapter
  163.    installed in your Network setup. Then add TCP/IP. Follow the
  164.    guidelines for net cards, except use these settings:
  165.      * IP address: Obtain IP address automatically
  166.      * WINS Resolution: Disable WINS resolution
  167.      * Gateway: leave blank unless your provider gave you a Gateway
  168.        address, if so put it here
  169.      * DNS: Disable DNS Resolution (We insert DNS addresses later!)
  170.      * Advanced: Nothing, but turn off "Use this as default protocol".
  171.      * Bindings: Definitely turn off the FPS for MS networks binding if
  172.        you have it.
  173.        
  174.    Then re-boot, double-click on your Dial-up Networking folder and make
  175.    a new connection. The modem configuration may be whatever you like,
  176.    but your Server type must have these settings:
  177.      * Server type: PPP (Win95, Win NT 3.5, Internet) (You can do
  178.        SLIP too, contrary to popular belief)
  179.      * Log on to network: OFF (This prevents disconnects if you're logged
  180.        into a NetWare network)
  181.      * Enable Software Compression: OFF (Unless you're dialing into an NT
  182.        dial up server, in which case this will really speed things up!)
  183.      * Require Encrypted password: OFF (Again, only useful if you're
  184.        dialing into an NT dial up server)
  185.      * Protocols supported: Only have TCP/IP turned on and the others
  186.        OFF!
  187.        
  188.    Then in TCP/IP Settings:
  189.      * Server assigned IP address: turned on unless your provider handed
  190.        you one, in which case feed it here. It will automatically use
  191.        Subnet mask 255.255.255.0.
  192.      * Specify Name server addresses: Here's where you feed the DNS
  193.        server addresses! Leave the WINS server addresses at 0.0.0.0 to
  194.        disable WINS over the dial-up connection.
  195.      * IP header compression: Turn ON unless your provider tells you not
  196.        to.
  197.      * Use Default Gateway: Turn ON unless your provider gave you a
  198.        specific gateway address, and you put in your TCP/IP properties
  199.        back in Network Setup.
  200.      * Finally hit OK.
  201.        
  202.    The above settings work with 99% of all UNIX and NT dial up servers
  203.    known to me. By hard-coding the DNS addresses here and specifying only
  204.    TCP/IP, you prevent Win95 from sending unusual PPP requests to the
  205.    dial up server, some of which can CRASH some UNIX dial-up servers. The
  206.    Internet Setup Wizard automatically prepares a dial-up connection
  207.    with all the proper switches set, except it turns on "Enable Software
  208.    Compression", which you can turn off if you have troubles connecting.
  209.    The next thing to turn off would be "Enable IP header compression" if
  210.    you still have troubles connecting.
  211.    
  212.    If your provider requires a special login procedure, bring up
  213.    properties for the dial up connection again, select "Configure...",
  214.    and in the Options tab, turn on "Bring up terminal window after
  215.    dialing". This will let you manually login to the dial up server. When
  216.    you connect, log in manually, and activate PPP, however you're
  217.    supposed to do it, then hit "Continue" or press F7, which continues
  218.    the PPP negotiation. Learn your provider's login procedure, then read
  219.    on to learn how to write an automated dial up script.
  220.  
  221.      * 8.1.2.1. Should I get the ISDN DUN 1.3 update if I don't have
  222.        ISDN? 
  223.        
  224.    Dial-up Networking 1.3 fixes a few problems in the original DUN, but I
  225.    haven't run into enough of them to suggest that everyone should
  226.    upgrade. Microsoft makes DUN 1.3 available at
  227.    http://www.microsoft.com/windows/downloads/contents/Communication
  228.    s/dun13win95/default.asp
  229.    
  230.    You should get DUN 1.3 if:
  231.      * You use Point to Point Tunnelling Protocol (PPTP) at all
  232.      * You need to connect to multiple TCP/IP networks at the same time
  233.        (such as two ISPs, or an ISP and a local LAN where the LAN has a
  234.        router or two)
  235.      * You need to get all the TCP/IP bugfixes with minimal fuss
  236.      * You want to run a dial-up server and don't have MS Plus
  237.          * 8.1.2.2. Can I use two modems at the same time to speed up my
  238.        connection? 
  239.        
  240.    Depending on your ISP's policies for such things, yes you can. Get the
  241.    DUN 1.3 update to install Multilink capability.
  242.    
  243.    To enable Multilink in DUN 1.3:
  244.      * Bring up your dial-up connection's properties (right-click on the
  245.        connection icon, hit "properties")
  246.      * Select the Multilink tab
  247.      * Hit Add to add modems and phone numbers to the list.
  248.        
  249.    NOTE: Your ISP may have policies against multiple connections. Phone
  250.    lines are not cheap. Also note that you may be billed at twice your
  251.    normal connection rate.
  252.  
  253.      * 8.1.2.3. How come TCP/IP routing past my router doesn't work if I
  254.        have a net card AND dial-up? 
  255.        
  256.    This is actually a classic bug in Microsoft's implementation of TCP/IP
  257.    that existed since MS introduced PPP into NT Workstation 3.5. What
  258.    happens is, you have one gateway (Your LAN's router) and you have a
  259.    "Hop count" of 1 to the rest of your inter-network. When you establish
  260.    a dial-up connection, the dial-up connection's gateway (the dial-up
  261.    server) has a hop count of 1 and your LAN's gateway will have a hop
  262.    count of 2, so when your machine needs to access a machine past your
  263.    local subnet it'll try to reach it through the dial-up gateway instead
  264.    of your LAN's gateway. (phew! How's that for an explanation?) This, of
  265.    course, won't work.
  266.    
  267.    You can actually view this with:
  268.  
  269. ROUTE PRINT
  270.  
  271.    from a DOS session. Try it before and after you dial up.
  272.    
  273.    You have three fixes you can try:
  274.     1. Don't use TCP/IP on your LAN connection. Use NetBEUI or IPX
  275.        instead, and disable bindings between TCP/IP and your net card (by
  276.        deleting that particular entry in the Network control panel).
  277.     2. Install the Winsock 2 update or the Dial-up Networking 1.3
  278.        update (DUN 1.3 includes Winsock 2). Winsock 2 allows for name
  279.        lookups and sessions over more than one TCP/IP connection.
  280.     3. Edit the routing table after you establish the connection. Say,
  281.        for example, your machine lives in a subnet of 192.1.1.0 and you
  282.        need to access a machine in the 192.1.2.0 subnet while you're
  283.        simultaneously connected to the Internet via a dial-up. Type this
  284.        at a DOS prompt:
  285.        
  286. route -f add 192.1.2.0  MASK 255.255.255.0  192.1.1.1
  287.  
  288.    This example describes the target subnet (192.1.2.0), the subnet mask
  289.    of the target subnet (255.255.255.0), and the router with which to
  290.    access that subnet (192.1.1.1). Thanks to Mike Ziemann for actually
  291.    getting this to work. Please send me corrections if this is wrong!
  292.    
  293.    NOTE: Win95 doesn't save routing tables between reboots. You'll need
  294.    to execute this after you establish a dial-up TCP/IP connection.
  295.      * 8.1.3. How can I share one dial-up connection over my network? 
  296.        
  297.    We all heard of Wingate and how you could use an NT workstation as a
  298.    dial-up router, but Wingate takes a LOT of TCP/IP knowledge, and NTWS
  299.    routing requires some co-operation from your ISP, both of which are
  300.    scarce. I suggest I-Way One, because it only requires ONE computer
  301.    (albeit a Windows NT Workstation) running TCP/IP, and only one dial-up
  302.    account. I-Way One replaces WINSOCK.DLL and WSOCK32.DLL and routes
  303.    requests to these libraries to the one NT machine connected to The
  304.    Internet, via NetBIOS or IPX.
  305.    
  306.    UPDATE 11 DEC 96: I-Way One isn't available from Workgroup
  307.    Communications anymore, but I have copies. I've asked for permission
  308.    from IXCHANGE (http://www.ixchange.com) to keep a copy on my
  309.    server if it's legal I'll do so. This software is just far too useful
  310.    to lose! In the meantime you can obtain it from ixchange.com.
  311.    
  312.    The only catch to using I-Way One vs Wingate is you end up replacing
  313.    Win95 system components (The Winsock libraries) and it can't co-exist
  314.    with any TCP/IP protocol on the client. It includes a library switcher
  315.    which watchdogs the system and swaps these libraries as needed, but it
  316.    makes more sense just to use I-Way One and no other version of Winsock
  317.    on the machines.
  318.    
  319.    So, the quick instructions on using it: first set up one NTWS and make
  320.    sure you can connect to your ISP using its included RAS software.
  321.    Then, install the I-Way One server on it and the clients on the
  322.    stations. The NTWS will dial out whenever a client needs any Winsock
  323.    access, and hang up after some moment of inactivity. You don't need
  324.    anything else special on the NTWS or on the clients.
  325.    
  326.    Another TCP/IP proxy exists from Technocratix. I have yet to try it,
  327.    but you can help yourself to it at
  328.    http://www.technocratix.com/webetc/
  329.    
  330.    Still another TCP/IP proxy to try is Microsoft's own Proxy Server, or
  331.    the "re-released" Routing and Remote Access Service (previously
  332.    code-named "Steelhead"). This allows an NT server to perform
  333.    dial-on-demand routing.
  334.    
  335. ------------------------------
  336.  
  337. Subject: 8.2. How come I have to disconnect from my NetWare server when just dialing to The Internet?
  338.    
  339.    The worst complication that rises over Win95 dial-up networking, is
  340.    when you try to dial out to The Internet while logged into a NetWare
  341.    network, it will warn you that it must disconnect from the NetWare
  342.    server, since the Client for NetWare can only log in to one NetWare
  343.    server at a time. To avoid this, have "Log on to network" turned off
  344.    in your dial up connection's Server Type.
  345.    
  346.    Rich Graves claims this is because of Microsoft's PPP "Extensions",
  347.    but I think it's just because Client for NetWare can't log in to more
  348.    than one server. LOGIN and ATTACH are two different actions; you can
  349.    ATTACH to a NetWare server remotely after you logged in to a LAN
  350.    NetWare server. Client for MS networks does not have this limitation.
  351.    
  352.    Client32 Warning: Many people wrote me to share their grief of trying
  353.    to get Client32 computers to dial-up to the Internet without having to
  354.    disconnect from their NetWare servers. While turning off "Log on to
  355.    network" in Server Type works great with Client for NetWare and
  356.    Services for NDS, it doesn't work with Client32! I'm sure Novell is
  357.    hard at work (NOT) on this problem...
  358.    
  359. ------------------------------
  360.  
  361. Subject: 8.3. How do I run my Winsock program?
  362.    
  363.    Make your connection, however you do it, then run your apps. Simple.
  364.    
  365.    Win95's WINSOCK.DLL and WSOCK32.DLL include a "standard" Windows
  366.    Sockets API that works with ANY properly written Winsock program. All
  367.    of the Public Domain, Freeware, Shareware, and a surprisingly large
  368.    number of Commercial apps, run with these libraries.
  369.    
  370.    If you installed Internet Explorer, you'll find that your dial-up
  371.    connection requester will pop up when you run a Winsock app, if you
  372.    aren't already connected. This is pretty nifty, and you can control
  373.    this auto-dialer from the new Internet control panel that shows up. Of
  374.    course, Auto-dial is pretty useless if you use TCP/IP over a network
  375.    card.
  376.    
  377.    Be VERY VERY CAREFUL if you install any one-shot packages which
  378.    include their own dialers. These will often replace the OS standard
  379.    WINSOCK.DLL with their own to accommodate their dialer. When you shop
  380.    for such programs, make sure they have an option to use any existing
  381.    TCP/IP and dialer you already installed. One such evil program is
  382.    Netscape Navigator Personal Edition. Make sure you tell this program
  383.    to "Use existing Winsock and dialer".
  384.    
  385.    A really good tip, regardless of whose TCP/IP stack you use, is to
  386.    write-protect WINSOCK.DLL and WSOCK32.DLL. Bring up a DOS prompt, type
  387.  
  388. CD \
  389. DIR WINSOCK.DLL /S
  390.  
  391.    and note what directory the file is in. You'll probably find multiple
  392.    WINSOCK.DLL files if you installed any "All in one" apps. Change to
  393.    that directory then type
  394.  
  395. ATTRIB +R WINSOCK.DLL
  396.  
  397.    Do this for WSOCK32.DLL as well.
  398.    
  399. ------------------------------
  400.  
  401. Subject: 8.4. Using Trumpet (TM) and other TCP/IP stacks (Just don't!)
  402.    
  403.    Yes they do work, as long as you don't have any Win95 networking
  404.    components installed. Problem is, when you make a networking change,
  405.    Setup might decide to re-copy the files over, and when it does it will
  406.    happily over-write WINSOCK.DLL. Remember: Winsock was designed for
  407.    other protocols too, not just TCP/IP, and it's a standard OS component
  408.    now! So, either use Win95's networking and Win95's dialer, or use no
  409.    Win95 networking and someone else's dialer.
  410.    
  411.    And yes, you can make 32-bit Winsock apps work with older stacks.
  412.    There's a WSOCK32 "thunk" available that works with an existing Win
  413.    3.1 dialer and their own WINSOCK.DLL. It's somewhere on
  414.    www.windows95.com but I forgot where.
  415.    
  416.    You could also check out Trumpet's own 32-bit TCPMAN or TGV's
  417.    replacement TCP/IP stack.
  418.  
  419.      * 8.4.1. Netscape 32 Personal Edition's Setup Wizard screws up
  420.        TCP/IP 
  421.        
  422.    If you install Netscape Personal Edition for Windows 95 (whatever
  423.    version) it presents you with a connection setup wizard similar to
  424.    Microsoft's Internet Setup Wizard. DON'T USE IT.
  425.    
  426.    Known problems:
  427.      * It will gladly install a second instance of TCP/IP without
  428.        checking first
  429.      * It skips components of Win95 dial-up networking
  430.      * It goofs up your TAPI location properties, so that whenever you
  431.        try to connect, Win95 presents you with "There was an error in
  432.        your configuration. It has been fixed." without actually FIXING
  433.        IT.
  434.        
  435.    You can only correct this goofup by removing and re-installing Dial-up
  436.    Networking, and any instances of TCP/IP from Network Properties. You
  437.    will also need to make sure you configure your modem and location
  438.    properties in the Modems control panel. See the steps in section
  439.    8.1.2 above.
  440.  
  441.      * 8.4.2. Obtaining Winsock 2.0 for Win95
  442.        
  443.    To allow for multiple TCP/IP connections or to support Winsock 2 apps,
  444.    MS released Winsock 2.0 for Win95 at
  445.    http://www.microsoft.com/windows/downloads/contents/Updates/W95So
  446.    ckets2/default.asp. This update resolves a few nasty bugs (mostly
  447.    revolving around Denial of Service attacks). This works with any net
  448.    card or release of Dial-up Networking before DUN 1.3; DUN 1.3 includes
  449.    Winsock 2.
  450.    
  451. ------------------------------
  452.  
  453. Subject: 8.5. How do I get dial-up networking to work with other stuff besides The Internet?
  454.    
  455.    The one really cool feature that allowed Win95 to devastate OS/2 Warp
  456.    Connect; general dial-up networking. MS included a Shiva-written
  457.    PPP/RAS dial-up stack that works with pretty much any transport
  458.    protocol, though there's only direct support for NetBEUI, IPX, and
  459.    TCP/IP. Clients can bind to these protocols to work over a dial-up
  460.    connection provided they support NDIS 3.1 PnP (So it can unload when
  461.    you disconnect, for example).
  462.    
  463.    Install Dial-up Networking in Add/Remove Programs/Windows Setup. Then
  464.    re-boot. A Dial-up Networking folder appears in "My Computer". You
  465.    will also find a Dial-up Adapter in your Network control panel; you
  466.    will have to add protocols for this adapter as needed.
  467.    
  468.    If you're connecting to a Win95, Windows NT, or WFWG dial-up server,
  469.    you can make a connection right from the "Make new connection" wizard.
  470.    This will also work if you're connecting to a NetWare network through
  471.    a Win95 or Windows NT dial-up server. If you log into an NT domain
  472.    this way, you need "Log on to network" turned on, otherwise you can
  473.    leave it turned off to save some time. Old WFWG or NT 3.1 dial-up
  474.    servers only work with the RAS server type; NT 3.5 and Win95 servers
  475.    work with the PPP server type.
  476.    
  477.    If you're connecting to a NetWare network using NetWare Connect (NRN),
  478.    Install IPX/SPX Protocol, bring up properties for your connection, and
  479.    change the Server Type to NRN: NetWare Connect. This disables all
  480.    other protocols but IPX over that connection. You will need "Log on to
  481.    network" turned on; this will have Win95 search for a NetWare server
  482.    (Or the preferred server) and bring up the NetWare log in requester.
  483.    
  484.    NOTE: You can also use PPP to connect to a NetWare server remotely, if
  485.    your NetWare network has a Windows NT or Win95 dial-up server
  486.    running. This is a less expensive option than Novell's NetWare Connect
  487.    software.
  488.  
  489.      * 8.5.1. How do I connect two Win95 computers together with dial-up
  490.        networking? 
  491.        
  492.    You can start by reading the beginning of FAQ page 7. This covers
  493.    setting up two Win95 machines so they talk to each other. The only
  494.    real difference is you use the Dial-up Adapter instead of a regular
  495.    net card to connect the machines together with. To add the dial-up
  496.    adapter, run Add/Remove Programs/Windows Setup, double-click on
  497.    Communications, and turn on Dial-up Networking.
  498.    
  499.    Next, install MS Plus or DUN 1.3 on the machine that will answer
  500.    the phone, and include Dial-up Server in the list of components. In
  501.    FPS for MS networks properties, set this machine's Browse Master
  502.    setting to "Enabled" instead of "Automatic". Once you finish this,
  503.    turn on the dial-up server in Dial-up networking options. Specify a
  504.    password if you want. Note that, if you use other Win95 apps to send
  505.    faxes or to dial-out to other locations, you can leave the dial-up
  506.    server turned on! Yes you can!
  507.    
  508.    Finally, on the machine dialing in, set its Browse Master preferences
  509.    to "Disabled". Create a connection that uses only NetBEUI (This is the
  510.    fastest protocol for slow links), meaning turn IPX and TCP/IP OFF in
  511.    Server Type. Then try dialing the machine with the dial-up server
  512.    running. Use the username and password you specified on the server.
  513.    Once you connect, you should be able to browse the other machine.
  514.  
  515.      * 8.5.1.1. How do I connect two Win95 computers together with Direct
  516.        Cable Connection?
  517.        
  518.    Direct Cable Connection is basically Dial-up Networking without
  519.    modems. This is why you need to install DUN at the same time as DCC.
  520.    DCC lets you connect two Win95 computers together with the same kind
  521.    of cables you would use for LapLink or Interlink, but once connected
  522.    you treat the two systems as though you connected them through DUN
  523.    (Meaning you need a common client, service, and protocol).
  524.    
  525.    First, install DCC from Add/Remove Programs / Windows Setup. Bring up
  526.    Communications details and add DCC. If you haven't already installed
  527.    Dial-up Networking it will offer to do so. After it loads the needed
  528.    components, and before you restart the computer, open the Network
  529.    control panel and install the same components you would use to hook
  530.    two Win95 machines together. These should be:
  531.      * Client for MS Networks
  532.      * Dial-up Adapter
  533.      * NetBEUI
  534.      * File & Print Sharing for MS Networks
  535.        
  536.    If you have other components, like TCP/IP, they should coexist nicely.
  537.    Now restart the computer. Do the same thing to the other machine.
  538.    
  539.    Now, connect the two machines together using a Null Modem Cable (if
  540.    you use a serial port) or a LapLink cable (if you use a printer port).
  541.    One sample pinout for a parallel cable lives at
  542.    http://oacosf.na.astro.it/rossi/hwb/ca_InterLink.html. The big
  543.    advantage of parallel over serial null modem cables is you can
  544.    transmit information four bits at a time instead of one, and it's
  545.    supposedly four times as fast (115 200 bps * 4 = 460 800 bps, just
  546.    under half the speed of Ethernet).
  547.    
  548.    Establish the connection by launching DCC (Start / Programs /
  549.    Accessories / Drect Cable Connection) and telling each machine wether
  550.    it's the host or the client. Start the host first, then the client.
  551.    Once done, the client will bring up any network shares that the host
  552.    has. Of course you should make some network shares on the host before
  553.    connecting. You can use any devices available on the host, including
  554.    printers (provided you have another printer port for the printer, that
  555.    is), just like you could if these machines used a network cable.
  556.    
  557.    One side effect of using DCC is you will see some new "modem" devices
  558.    in Device Manager (Parallel cable on LPT1 for example). If you remove
  559.    these, DCC will re-create them when you launch it again.
  560.    
  561.    NOTE: Supposedly, you can use other protocols besides NetBEUI over
  562.    DCC. While IPX games might be possible over DCC, I haven't tried, and
  563.    I'm suspicious of the speed of IPX over even a parallel cable. It is
  564.    also very unlikely that IPX routing would work over DCC as well. I
  565.    would like feedback on DCC experiments and results.
  566.  
  567.      * 8.5.2. I'm using DUN to connect to a NetWare server and my IPX
  568.        address keeps changing! 
  569.        
  570.    The Dial-up Adapter generates a "fake" MAC address (a 48-bit number
  571.    representing an Ethernet address) so that protocols designed for
  572.    Ethernet will work on it, such as IPX. It will generate a random
  573.    number for the MAC address each time you dial in. This happens
  574.    REGARDLESS of what protocol you dial in with.
  575.    
  576.    IPX addresses look like this: NNNN-AAAAAAAA where "NNNN" is a Network
  577.    Number and "AAAAAAAA" is the adapter's MAC address. Typically, a
  578.    dial-up server (like NT RAS) can assign a network number for this
  579.    two-station "network", but the MAC address comes from the client. It's
  580.    up to the dial-up server to route to this new network number. However,
  581.    programs that depend on the MAC address being fixed (such as remote
  582.    backup agents) won't work. I haven't found a practical reason to use a
  583.    fixed address on a dial-up line, and as such I don't have a solution.
  584.    
  585. ------------------------------
  586.  
  587. Subject: 8.6. How do I set up auto-dial when I run my Winsock program?
  588.    
  589.    To set up auto-dial, install Microsoft Plus! or Internet
  590.    Explorer. Once installed, your computer will bring up the dial-up
  591.    requester when any program accesses WSOCK32.DLL. Pretty cool. For some
  592.    reason this won't work with 16-bit Winsock programs though.
  593.    
  594.    There's a new Internet control panel when you install either of those,
  595.    and you can control auto-dial and auto-disconnect from there.
  596.    
  597. ------------------------------
  598.  
  599. Subject: 8.7. How do I set up auto-disconnect?
  600.    
  601.    As per auto-dial; install MS Plus! or Internet Explorer, and check out
  602.    the Internet control panel. You then tell it to disconnect after some
  603.    amount of in-activity (20 minutes by default).
  604.  
  605.      * 8.7.1. How do I DISABLE auto-disconnect? 
  606.        
  607.    Auto-disconnect does have one dumb bug; unless you're performing
  608.    active surfing in Internet Explorer (Other apps it just ignores), the
  609.    disconnect timer will activate. This includes when you're downloading
  610.    large files via FTP, and not doing any other mouse clicking. Pretty
  611.    dumb.
  612.    
  613.    Turn it off in the new Internet control panel, that shows up when you
  614.    install Internet Explorer, or MS Plus.
  615.    
  616. ------------------------------
  617.  
  618. Subject: 8.8. My Internet provider only has SLIP. Can I use that? (yes.)
  619.    
  620.    Install DUN 1.3 or install MS Plus. The dial-up scripter includes
  621.    a SLIP server type for dial-up networking. When you select SLIP: Unix
  622.    Connection, or CSLIP: Unix Connection, from the server type options,
  623.    you will only be able to use TCP/IP.
  624.    
  625.    There are additional scripting commands for using SLIP; be sure to
  626.    check out dial-up scripting help for the details. You may need to use
  627.    the script to obtain an IP address.
  628.    
  629.    4.00.950B users have a better scripting interface which is part of the
  630.    dial-up connection's properties.
  631.    
  632. ------------------------------
  633.  
  634. Subject: 8.9. Why can't the dial up connection save my password?
  635.    
  636.    Password caching only happens if you install a Win95 network client,
  637.    or enable User Profiles on a stand alone computer. By default, the
  638.    Internet Setup Wizard only installs TCP/IP protocol and the
  639.    dial-up networking components, which is all you really need.
  640.    
  641.    However, MS Exchange will do login password caching independent of
  642.    the dial-up settings. In the Internet Mail properties, select
  643.    "Connection" and "Login As...", then type the username and password.
  644.    If you leave these blank, it will use the defaults for the dial-up
  645.    connection. Other utilities like RoboDUN and DUNCE will not
  646.    only save your password, but instantly dial-up without asking you for
  647.    an "OK".
  648.    
  649. ------------------------------
  650.  
  651. Subject: 8.10. Why does my computer hang in task "RNAAPP" when I dial out to The Internet?
  652.    
  653.    Before I rip into this speech, jmckone@excalibur-group says that you
  654.    only have to install DUN 1.3 to fix this hanging RNAAPP bug.
  655.    
  656.    A Message from William Hunt (E-MAIL address unknown) says that
  657.    sometimes the computer hangs with "RNAAPP (Not Responding)" when you
  658.    press CTRL-ALT-DEL to bring up the task list. His fix was to hide the
  659.    file named VNBT.386 which is not needed for an Internet session.
  660.    
  661.    Well this is correct; VNBT is a virtual device for NetBIOS over
  662.    TCP/IP, not needed for connecting to The Internet and using Winsock
  663.    apps. You will need this file back, however, if you run Client for MS
  664.    networks over TCP/IP or otherwise want to use NetBIOS apps over it. It
  665.    also appears, according to Eric Mitchell, that deleting VNBT.386
  666.    doesn't work.
  667.    
  668.    A better solution, which would prevent this VxD from being invoked, is
  669.    to set "Disable DNS" and "Disable WINS Resolution" in TCP/IP
  670.    properties, and specify the DNS address in the dial-up connection's
  671.    properties directly. However, this bug seems to still creep up. One
  672.    thing I've noticed is this bug never seems to happen to me. At least
  673.    not anymore. So I figure I'm doing something different... here's what
  674.    I do when I set up a connection on a Win95 machine in order to prevent
  675.    this bug:
  676.     1. Remove any traces of non-standard comm drivers, TCP/IP stacks, etc
  677.        that aren't designed for Win95
  678.     2. Remove and re-install Dial-up Networking from Add/Remove Programs
  679.        / Windows Setup (to replace the related files). Add TCP/IP.
  680.     3. Remove any unneeded protocols, clients, etc, and disable any
  681.        Client or Service bindings to TCP/IP not needed (such as Client
  682.        for MS Networks)
  683.     4. Disable WINS resolution and set "Disable DNS". Finally, OK
  684.        everything without re-starting.
  685.     5. Install Service Pack 1 and the KERNEL32 update, and any
  686.        other update related to the software you use (Netscape users
  687.        should get the OLE2 update as well, because I believe it uses OLE)
  688.        and re-boot
  689.     6. When you make your dial-up connection, specify the name servers
  690.        yourself, and turn off all server type options EXCEPT TCP/IP.
  691.        
  692.    I don't know why, but doing the connection up this way seems to
  693.    prevent this RNAAPP lockup.
  694.    
  695. ------------------------------
  696.  
  697. Subject: 8.11. How can I track time and costs for my dial-up connection?
  698.    
  699.    Many providers have different costing schemes, so MS didn't bother.
  700.    However, check out RAS Plus 95 which monitors dial-up connection
  701.    times, and lets you define your billing scheme. There are much simpler
  702.    programs for free from TUCOWS.
  703.    
  704. ------------------------------
  705.  
  706. Subject: 8.12. How can I get dial-up networking to work with a null modem cable?
  707.    
  708.    MS didn't include a null modem driver for the Telephony Interface
  709.    (TAPI). However, check out this bogus MODEM.INF file, which
  710.    serves the purpose. One installed, you can treat the null modem like
  711.    any other modem in Win95.
  712.    
  713.    NOTE: Windows 98 and NT 4.0 include descriptors for null modem cables
  714.    already.
  715.    
  716. ------------------------------
  717.  
  718. Subject: 8.13. How do I write a dial-up script?
  719.    
  720.    Download DUN 1.3 from Microsoft's Win95 site, or grab it off your
  721.    CD-ROM in ADMIN\APPTOOLS\DSCRIPT, and install it from Add/Remove
  722.    Programs/Windows Setup/Have Disk. Or install Microsoft Plus! This
  723.    adds a Dial-up scripting tool to your Accessories group. If you
  724.    re-install Win95, you will have to re-install this tool; Setup will
  725.    over-write the Registry keys that hook DSCRPT into dial-up networking.
  726.    
  727.    4.00.950B users already have far better scripting options, and older
  728.    versions can take advantage of them with the Dial-up networking
  729.    update.
  730.    
  731.    NOTE: This will also add SLIP and CSLIP to the list of dial up server
  732.    choices! However, you can only use TCP/IP over SLIP and no other
  733.    protocol.
  734.    
  735.    Run the tool to list all of your dial up connections. Select your
  736.    connection, then type a path/filename to a script. The script doesn't
  737.    have to exist yet. Then hit "Edit", and you'll see Notepad. It'll ask
  738.    you if you want to create a new file; do so. Here's a sample script:
  739.  
  740. proc main
  741.        waitfor "Username:"
  742.        transmit $USERID
  743.        transmit "<cr>"
  744.        waitfor "Password:"
  745.        transmit $PASSWORD
  746.        transmit "<cr>"
  747.        delay 1
  748.        transmit "ppp default<cr>"
  749.        delay 1
  750. endproc
  751.  
  752.    The $USERID and $PASSWORD come from whatever you fed the dial-up
  753.    connection. I feed "ppp default" to the provider because a successful
  754.    log in only gives me a Unix prompt. "ppp default" runs a program at
  755.    the dial-up server which starts a PPP session, but it isn't necessary
  756.    for all dial-up servers. I even know of one public dial-up server in
  757.    Taiwan that doesn't even ask for a username and password! This is why
  758.    you should perform one manual login ("Bring up terminal window after
  759.    dialing") and learn how your provider prompts you for this info, and
  760.    then write the script based on that.
  761.    
  762.    Microsoft Plus and DUN 1.3 include an improved scripter which allows
  763.    some branching and IF/THEN programming, but it isn't necessary for all
  764.    providers. The above example works with both Plus! scripting and the
  765.    basic scripter on MS's web site.
  766.    
  767.    And finally, save this script and hit "Apply" to attach the script to
  768.    the dial-up connection. You can turn on "Step through script" to test
  769.    and debug the script, then turn it off when you know it works. Hit
  770.    "Apply" to save any changes you make to a script attachment or
  771.    settings.
  772.  
  773.      * 8.13.1. How can I issue a "modem break" in a dial-up script? 
  774.        
  775.    Some terminal servers require that you switch the server's pass
  776.    through options (so 8-bit ASCII codes don't get mistaken for terminal
  777.    control codes, for example.) Users of SLiRP will need to do this
  778.    depending on how their dial-up server works.
  779.    
  780.    Here's a piece of script that Jeff Lawson uses to issue the break,
  781.    then set his local options and then resume. I gather he'd then run
  782.    SLiRP on the remote terminal and then continue SLIP processing in
  783.    Win95.
  784.  
  785.    waitfor "jzl>"
  786.    transmit "+++"
  787.    waitfor "0"
  788.    transmit "AT\\B0O0^M^M" (This part actually issues the break with AT\B0)
  789.    waitfor "Local>"
  790.    transmit "set session passall^M"
  791.    waitfor "Local>"
  792.    transmit "resume^M^M"
  793.    waitfor "jzl>"          (Resume normal processing, such as run SLiRP)
  794.    
  795. ------------------------------
  796.  
  797. Subject: 8.14. How do I set up a dial-up server?
  798.    
  799.    Install MS Plus or DUN 1.3. It will add a new Dial-up server...
  800.    menu to the Dial-up networking window. The Win95 dial-up server is
  801.    really a NetBIOS router, meaning it doesn't actually perform WAN
  802.    routing of a low level protocol (though they did hack IPX routing in
  803.    there for NetWare clients).
  804.    
  805.    In Dial-up Networking, you have a new menu: Connections/Dial-Up
  806.    Server. You can choose ONE modem to receive calls on (Not more than
  807.    one, sorry), and you can pick what kind of dial up server it is
  808.    (either PPP, WFWG RAS, or Default, which allows for both). You can
  809.    also enter a dial up password, or pick users from a user list if you
  810.    have User Level security enabled.
  811.    
  812.    It does appear that you CAN select more than one modem to let the
  813.    Dial-up Server answer, but when it answers one it refuses to answer on
  814.    the other. This is the limit of Win95's dial-up server capabilities.
  815.    
  816.    Now I wrote above that it's a NetBIOS router. That means it's designed
  817.    to route MS Network style traffic to a network. Normally, a dial-up
  818.    client will have Client for MS networks and NetBEUI installed (or for
  819.    WFWG clients, they just use the Remote Access software included),
  820.    because NetBEUI's the fastest NetBIOS compatible protocol for slow
  821.    links. NetBEUI isn't route-able, but that doesn't matter; the network
  822.    itself could use IPX or TCP/IP instead, as long as it's an MS Windows
  823.    style network.
  824.  
  825.      * 8.14.1. ...for NetWare dial-in? 
  826.        
  827.    NetWare dial-in works too, because Microsoft hacked a simple IPX
  828.    router in there. To do NetWare dial-up access, make sure you install
  829.    IPX protocol and bind it to the Dial-up Adapter in Network Control
  830.    Panel. The clients can be Win95 or Windows NT clients, but they need
  831.    to have IPX protocol and Client for NetWare installed. When the user
  832.    dials in, a NetWare login prompt will come up, login scripts will
  833.    execute, and connections will appear.
  834.    
  835.    WARNING: IPX over PPP is quite slow! Some tips for the client, to
  836.    speed up performance:
  837.      * Allow only IPX protocol for dial-out to the dial-up server (turn
  838.        NetBEUI and TCP/IP OFF in Server Type)
  839.      * Keep local copies of MAP.EXE and CAPTURE.EXE on the remote
  840.        computer, in the WINDOWS\COMMAND directory
  841.      * Turn Software Compression ON
  842.      * Pick a frame type in IPX properties (Don't use Auto-Detect)
  843.      * Don't run NetBIOS apps over the dial-up connection through IPX
  844.          * 8.14.2. Top five reasons to use a Win95 machine as a dial-up
  845.        server 
  846.        
  847.    5. Cheap NetWare dial-in access (A LOT cheaper than NetWare Connect!)
  848.    
  849.    4. Cheap Windows Network dial-in access
  850.    
  851.    3. Effortless (almost) connection to your network from home
  852.    
  853.    2. Works with non-Win95 MS Network clients (like an Amiga using
  854.    SAMBA!)
  855.    
  856.    1. User-Level security works here (Not like NT RAS Server)
  857.  
  858.      * 8.14.3. Top ten misconceptions about Win95 dial-up servers 
  859.        
  860.    10. Fast connection speeds (NOT!)
  861.    
  862.    9. It routes TCP/IP (This is a Resource Kit error.)
  863.    
  864.    8. It does MS-Mail Remote (Sorry, it doesn't)
  865.    
  866.    7. It routes NetBEUI (It's a NetBIOS router; NetBEUI isn't route-able)
  867.    
  868.    6. You need NetBEUI on the net card to route (It's a NetBIOS router;
  869.    it doesn't matter)
  870.    
  871.    5. You need NetBEUI on the Dial-up Adapter to use it (It's faster, but
  872.    it doesn't matter)
  873.    
  874.    4. It won't work with non-Win95 dial-up clients (Bull... I've used my
  875.    Amiga to dial in! Couldn't transfer any files though...)
  876.    
  877.    3. It doesn't work with null modem cables (check out this bogus
  878.    modem.inf file if you want to use a null modem)
  879.    
  880.    2. It's a security risk to my network! (Geez, you can disable the
  881.    dial-up server in system policies for the default computer, then
  882.    enable it for the computers you want it to work on.)
  883.    
  884.    1. It doesn't work. (I think this was a vicious rumor spread by some
  885.    OS/2 advocates.)
  886.    
  887. ------------------------------
  888.  
  889. Subject: 8.15. Top ten Internet/dial-up mistakes
  890.    
  891.    10. Using a Win 3.1 TCP/IP protocol
  892.    
  893.    9. Installing Netscape Navigator Personal Edition and using its dialer
  894.    instead of Win95's
  895.    
  896.    8. Buying lots of Winsock software before checking out
  897.    www.windows95.com
  898.    
  899.    7. Using default dial-up connection settings and crashing your
  900.    provider's server
  901.    
  902.    6. Installing the Dial-up Networking update for no particular reason
  903.    
  904.    5. Buying Microsoft Plus! JUST for dial up scripting, before trying
  905.    DUN 1.3
  906.    
  907.    4. Installing a provider's setup disk for Win 3.1 (dumb mistake; many
  908.    providers do that!)
  909.    
  910.    3. Leaving "File & Print Sharing for MS networks" turned on over
  911.    TCP/IP
  912.    
  913.    2. Not getting connection and server information from your provider
  914.    
  915.    1. Not reading the Modem section of this FAQ page
  916.  
  917. --
  918. ==============================================================================
  919. = I am Gordon of Winterpeg. Junk mail is futile.          Post MakeMoneyFast =
  920. = Find out why: http://spam.abuse.net/spam/      Or eat pink meat from a can =
  921. = World's best computer: http://www.amiga.de/          they're both the same =
  922. = Windows 95 FAQ: http://www.orca.bc.ca/win95/             http://ga.to/mmf/ =
  923. ==============================================================================
  924.  
  925.