TCP/IP Setup for OS/2

You should read this document carefully if you are experiencing ANY networking or TCP/IP problems with the operation of your PowerWeb server.

Requirements

PowerWeb Server++ for OS/2 requires OS/2 Warp with TCP/IP, using either the Warp Connect or the Warp Server version.

Regardless of whether you are running Warp Connect or Warp Server, you must install the fixpack ic12657.zip before running PowerWeb, as this fixes a number of problems with IBM's TCP/IP that can cause system crashes and invalid IP addresses to be reported. The fixpack is available from our FTP site at:

ftp://www.compusource.co.za/pub/tcpipfix/ic12657.zip


Licensing and TCP/IP

If you see the message "License number does not match your IP Address or Host Name" then your TCP/IP setup is not consistent with your license number that was issued to you when you enrolled for a Test Drive or when you Registered.

Run the program "Install -d" to diagnose any TCP/IP problems and to report the IP address and Host name that PowerWeb believes to be the primary interface on your machine.

Important note: If you are running a dialup connection ONLY, then you do not have a permanent IP address so you must install PowerWeb in local mode, which will avoid this error message, by executing

install -local

If you are running a dialup connection on a different IP address in addition to the main IP address of your server, you may see the IP address of your dialup connection being reported instead of your server. A similar situation can occur if you have multiple network cards on your machine. The primary IP address can be changed by running the HOSTID program that is contained within the IBM ic12657 fixpack mentioned above.

To inform TCP/IP that 196.12.34.56 is your primary IP address, use:

hostid 196.12.34.56
Simply add this line at the top of your "PowerWeb.cmd" startup file to force TCP/IP to consistently use the same primary IP address.

Diagnosing Problems

Run the program "install -d" to diagnose TCP/IP problems. It will check out your TCP/IP configuration and report any problems it discovers. It does not perform an install or modify your existing installation in any way when the "-d" command line argument is used.

Error 1: The operating system cannot find an IP address on your system.

Either TCP/IP is not installed on your system, or there is no IP address defined on your machine. To install TCP/IP, purchase Warp Connect or Warp Server and perform a selective install of Networking Products.

If you have installed TCP/IP, and you haven't got a LAN adapter or a permanent Internet link, you will need to run PowerWeb in local mode, which means that it will serve to your machine only. The easiest way to setup OS/2 to server locally is:

  1. Run TCPCFG.EXE (the icon labelled "TCP/IP Configuration" in your TCP/IP folder)
  2. Select the "Network" tab within the notebook.
  3. Within the "Interface to Configure" listbox, select "Loopback Interface" and check the checkbox labelled "Enable Interface" and ensure that the edit field "IP Address" contains the text "127.0.0.1".
  4. Close the configuration notebook and save your changes.
  5. Shutdown and reboot your machine.
  6. Change directory to PowerWeb.
  7. Run "install -local" to install your PowerWeb server.

If you have a LAN adapter or permanent Internet link, then use "ping" to determine whether your interface is working. For example, if your IP address is 196.12.34.56, then use ping 196.12.34.56 and check whether the ping packets are being transmitted successfully. If they are not coming through, your TCP/IP configuration is not setup correctly, and you will need to run the TCPCFG.EXE (the icon labelled "TCP/IP Configuration" in your TCP/IP folder) configuration program.

If the ping was successful, then try running "hostid 196.12.34.56" (according to your IP address) and repeat running "install -d". If this still does not find an IP address, you could have a damaged set of TCP/IP or PowerWeb files, in which case you should re-install TCP/IP and unzip and re-install PowerWeb again.

Error 2: The operating system cannot find a host name on your system.

TCP/IP requires a one-to-many mapping between an IP address and its host names. This mapping is set up either within your HOSTS file or by your domain name server (DNS). We recommend that you set up your HOSTS file regardless of whether you are running DNS, as it enables faster lookup of your server's host name while PowerWeb is running.

The HOSTS file is contained within your TCP/IP etc directory. To discover its location, type "set etc" on an OS/2 command line. If this ETC environment variable is not set, your TCP/IP should be re-installed.

Your HOSTS file is a list of IP addresses (one per line) followed by the equivalent host names. For example, our HOSTS file looks like this:

196.31.1.61 www.compusource.co.za compusource.co.za
127.0.0.1 localhost
An alternative way of defining your host names is:
  1. Run TCPCFG.EXE (the icon labelled "TCP/IP Configuration" in your TCP/IP folder)
  2. Select the "HostNames" tab within the notebook and goto page 2.
  3. Add or modify your existing entries in the listbox.
  4. Be sure to check the checkbox "Look through HOSTS file before going to nameserver"
  5. Close the configuration notebook and save your changes.

Error 3: Your host name does not resolve to any IP address.

PowerWeb ensures that your IP address maps to your host name and also that your host name maps back to the original IP address. If the mapping back from the host name to the IP address fails, it means that your HOSTS file is not set up correctly.

Refer to the notes regarding Error 2 above for setting up your HOSTS file.

Error 4: Your host name maps to the IP address xx whereas TCP/IP reports your IP address to be yy

This error message occurs when you have multiple IP addresses defined on your machine, and your HOSTS file is inconsistent. In this case PowerWeb mapped your primary IP address to a specific host name, but when that host name was mapped back to an IP address, a different IP address was returned. This is a serious error and will cause malfunctioning of your server.

Refer to the notes regarding Error 2 above for setting up your HOSTS file.

Warning 5: The operating system is unable to resolve an external host name to an IP address.

This warning message indicates that you are either not online to the Internet or that your domain name server (DNS) is malfunctioning. If you are serving only locally or to your private LAN and not to the Internet you can ignore this warning.

If your server is meant to be online to the Internet, then the most likely cause of this message is that your TCP/IP configuration settings do not specify a valid DNS server IP address, or your service provider's DNS is either not operating or is not setup correctly. The easiest way to test this is to use your Web browser to access other sites on the Internet.

To define your DNS server's IP address for a permanent Internet connection:

  1. Run TCPCFG.EXE (the icon labelled "TCP/IP Configuration" in your TCP/IP folder)
  2. Select the "HostNames" tab within the notebook and goto page 1.
  3. Fill in the "Nameserver addresses" listbox.
  4. Close the configuration notebook and save your changes.
  5. Shutdown and reboot your machine.

Error 6: A xx Server is already running on socket port yy.

This message indicates that you were previously running a server on the same machine as you are installing PowerWeb. If you shut down that TCP/IP service and wait a while (sometimes as long as 5 minutes), IBM's TCP/IP will release the port and enable PowerWeb to use it. In the case of port 80 (for HTTP), PowerWeb will automatically choose port 8000 instead and install itself on that port, allowing you to run your old server (if any) alongside PowerWeb. You can always change your HTTP port later by choosing "Services" from the main PowerWeb admin page while PowerWeb is running.

Warning 7: Your computer does not have its timezone defined.

PowerWeb needs to know your timezone for your machine's location so that it can send the correct timestamp information to remote clients. Many Web browsers rely on the server's clock and timezone being correctly set so that they can cache images or documents locally, fetching new copies only when the cache is out-of-date.

To define your timezone:

  1. Run TCPCFG.EXE (the icon labelled "TCP/IP Configuration" in your TCP/IP folder)
  2. Select the "General" tab within the notebook.
  3. Fill in the "Timezone" edit field.
  4. If you are unsure what setting to use, read the Help - it can be complex, but then the specifications of timezones around the world are complex anyway.
  5. Close the configuration notebook and save your changes.
  6. Shutdown and reboot your machine.

Performance Issues

If your PowerWeb server seems to be slow, then it is likely to be a networking problem. This can be diagnosed as follows:
  1. Start PowerWeb
  2. Within an OS/2 command session, change directory to "\powerweb\sys207\bin" (which is the location for version 2.07 and may be different on your system if you are running another version).
  3. Execute the command
    submit -r10
    which will send 10 consecutive requests to your server for its home page.
  4. Look at the average time reported - it should be between 10 and 80 milliseconds depending on the speed of your machine and whether any other programs are running at the time.
  5. If the time is substantially above 80 milliseconds, shutdown and reboot your machine, because the IBM TCP/IP stack sometimes needs re-initialising. If the speed is still slow, you probably have a TCP/IP configuration problem.
  6. If the speed is OK on the server machine, then go to another workstation on the same TCP/IP subnet and execute the "submit" command again, but this time mention your server's IP address and also execute a ping, as follows:
    submit -r10 -i12.34.56.78
    ping 12.34.56.78
  7. Network delays will mean the average response time is likely to be worse, but the time should not increase by much more than the average ping time.

Copyright © CompuSource
All rights reserved.
source@iaccess.za