Århus 03-02-09
How to have BcView update through the internet
This note is meant to help setup BcView to update trough the internet. The most recent version of this note can be found as www.bcview.com/tech/upinet.htm. This note has been written for BcView version 2.00H, BcUpdat version 1.005, and BcLog version 1.002.
When you first purchase BcView the system will be setup by your dealer. Although he will ask some questions. For you to answer it is recommended that you read this document.
If you want to make an existing BcView installation update trough the internet instead of via modem you will need to make sure to have BcView version 2.00H or later. You can establish the version by looking at the about dialog. You enter the dialog by entering main menu item etc\about. If your version is prior to 2.00H contact your dealer for a newer version. Your dealer will send you an upgrade and you need to install it before you can continue. The upgrade will insert some internet defaults.
BcView keeps static setup in an ini-file. The file holds a set of internet update defaults including the variable UseINet. The variable probably is set to N which makes BcView update via modem. Otherwise the internet defaults are set to have BcView update at random via an active FTP connection from one of these two sites:
www.bcview.com (130.228.36.163) and www.aktiesiden.dk (87.104.233.200).To have BcView update trough the internet, you are required to make modifications to the ini-file. You must first set the ini-file variable UseINet to Y in order to have BcView start updating trough the internet. Secondly if you need to run trough a proxy or/and to run passive FTP you must make further modifications. See Ini-file Changes.
If it is part of your companies internet policy to prevent FTP unless required, you will need to have your computer department modify the firewall setup to allow you to read, write, and list files at least one of the 2 sites.
Requirements
BcView 2.00H, BcUpdat version 1.005, BcLog version 1.002 or later.
Win 95, Win 98, Windows NT 4.0 or later.
Windows must be setup for internet.
Rights to read/write/list files via FTP for at least one of
www.bcview.com (130.228.36.163) and www.aktiesiden.dk (87.104.233.200).This happens when BcView updates trough the internet
The figure shows that BcView updates trough the BcUpdat program, which handles the FTP communication via the internet. It also shows which ini-file variables are read by BcView and which ini-file variables are read by BcUpdat.
Update overview
Communication between BcUpdat and ftp site in detail
Ini-file changes
BcView uses an ini-file to store its technical setup. By default this file is called bc.ini and is located in the same directory as BcView. If not so, take a look in the properties of the icon starting BcView. The path holds a -i command line slash. It is followed by the full path name of the ini-file. E.g. -ic:\bcview\bclocal.ini tells BcView to use the c:\bcview\bclocal.ini file.
The ini-file holds a number of variables that equals a value e.g. UseINet = N. When you change a variable, you modify the behavior of BcView or its service programs (BcUpdat and BcLog). Because BcView and its service programs only read the ini-file when they start, you will need to restart before the modification will take effect. Because BcView starts BcUpdat each time it updates, it is not necessary to restart BcView, if the variable only is read by BcUpdat. In any case remember to save the ini-file after editing.
Description of variables
UseINet
=YThe UseINet variable tells if BcView should communicate via the internet or via a direct modem to modem connection. The variable should be set to Y to make BcView communicate via the internet. If the variable is missing or not set to Y BcView will communicate via a direct modem line.Default: N. Should be Y. Must be modified. Read by BcView.
BcUpdat
The pathname of BcUpdat program. The program handles the internet communication for BcView. If empty the program should be located in the same directory as BcView and be named BcUpdat.exe.
Default: <empty>. Normally left empty. Read by BcView.
BcLog
The pathname of BcLog program. The program sends a log via the internet. Service program called by BcView. If empty the program should be located in the same directory as BcView and be named BcLog.exe.
Default: <empty>. Normally left empty. Read by BcView.
UpdateDir
Directory to store temp update files passed between BcUpdat and BcView. If left empty the programs use directory called Updates.
Default: <empty>. Normally be left empty. Read by BcView and BcUpdat.
INetFtpHome
The variables INetFtpHome1, InetFtpHome2, and INetFtpHome3 represents 3 different internet sites. BcUpdat will try all 3 in sequence until it successfully gets the updates it requires. The variables is set to a string representing a FTP site. The string consists of a number of semicolon separated parts. The parts in order:
<Site>; The host name of the FTP site. Currently BC holds 2 sites for updates www.bcview.com and www.aktiesiden.dk.
<UserId>; The user id required to log onto the FTP site.
www.bcview.com: 101m82093085f93i88070o67094e36
www.aktiesiden.dk: 053t10n26k14s00e29y29i68i1s0m8
<Password>; The password you need to log onto the FTP site.
www.bcview.com: 103i88i86h86d86092i68v67c95
www.aktiesiden.dk: a98017i24q31023mk9028
<Dir>; The root directory of the FTP site. Defaults to /.
www.bcview.com: /bcview.com
www.aktiesiden.dk: ftp
<FtpPort>; The FTP command port. Defaults to 21.
<Ftp Active/Passive>; Should active or passive mode be used. A – Active, P – Passive, <Empty> - passive if proxy else active.
An example.The upgrade program inserts the following:
INetFtpHome1=www.bcview.com;101m82093085f93i88070o67094e36;103i88i86h86d86092i68v67c95;/bcview.com;;A
INetFtpHome2=www.aktiesiden.dk;053t10n26k14s00e29y29i68i1s0m8;a98017i24q31023mk9028;;;P
INetFtpHome1 represents
www.bcview.com. It has been setup for active FTP. InetFtpHome2 represents www.aktiesiden.dk. It has been setup for passive FTP.Default: <empty>. Read by BcUpdat.
Proxy
IP-address of proxy server. Cannot be a domain name. If no proxy is used (or it transparent for BcUpdat) the variable should be left empty. If a proxy should be used the variable must be set to the ip-address of the proxy server.
Defaults to <empty>. Read by BcUpdat. See also ProxyFtpPort and ProxySeparator.
ProxyFtpPort
The port of the proxy server given in Proxy. Not used if proxy is left empty.
Defaults to 21. Read by BcUpdat. See also Proxy and ProxySeparator.
ProxySeparator
Delimiter used when logging on the FTP server trough the proxy. The proxy expects the username send as part of the FTP login sequence. The username send consists of the real username, the separator, and the host name of the site. BcUpdat will, based on the variables in the ini-file, generate this login, but if the separator is not @ ProxySeparator must be setup to the character used by your proxy. E.g. Novell Border Manager is known to use $ as default. Also it must have NDS disabled.
Default is @. Read by BcUpdat. See also Proxy and ProxyFtpPort.
Go trough a proxy
Some companies use a proxy for FTP. If your company require you to go through a proxy, you will need to setup the ip-address of the proxy in the ini-file variable Proxy. Also if the proxy does not use port 21 for the FTP commands, you will need to set ProxyFtpPort to the port used. Further more if the proxy does not accept @ as a separator within login-info send to the proxy, you will need to set ProxySeparator to the character used by your proxy. Currently we are not able to handle the SOCKS protocol.
Go trough a firewall
Some companies setup their firewall to limit access to FTP. You will at least need to read, write, and list files at one of the 2 sites: 130.228.36.163 and 87.104.233.200. There exists no standard for firewalls, so it is out of scope for this document. Contact your computer department to setup the firewall. Only the user/PC running the BcView update need access.
Passive mode FTP
Some companies will not allow sockets to be opened from the ‘outside’. FTP in active mode does exactly that. Therefore use passive mode if your company does not allow sockets to be opened from the ‘outside’. See ini-file variable InetFtpHome <Ftp Active/Passive >.
Know problem with given software
Problem: Novell Border Manager is known to use $ as separator
Novell Border Manager is known to use $ as default. Also it must have NDS disabled.
Trouble shooting
Problem: BcView updates by modem not by internet.
Set ini-file variable UseINet to Y. Close and reopen BcView in order to have BcView read the variable again. If the problem persists then make sure BcView use the ini-file you are correcting.
Problem: BcView shows the update dialog, but no update program is shown.
BcView is probably not able to locate the communication program (BcUpdat). BcView writes "Trouble starting communication program" in the status line (the line following Msg:). Check that BcUpdat.exe exists. The ini-file variable BcUpdat specifies the location of BcUpdat.exe. As default the variable is empty and BcUpdat should be placed in the same directory as BcView. If not correct modify the BcUpdat variable, save the ini-file, and reopen BcView.
Problem: BcView shows both the update dialog and the update program, but cannot connect.
The update program says "Connecting to www.bcview.com" and/or and "Connecting to www.aktiesiden.dk" and continue to do so. The log will display an error in the RequestDone following the attempted connect. If the error is 11001 then the ftp site cannot be found. If BcView tries both sites without luck the problem is likely to be at your site. The problem can be one of many. Here are some: