HGserver Option Summary

The following command line options are available for hgserver.  Many of these have corresponding configuration variables, named in brackets, which are described in greater detail in the next section.

-a <-2 to 2> [Aggression]  Set MTP/IP's aggression level.
-b <kilobytes> [StreamSize]  Set the buffer size for packaging commands.  The default is 2048 kilobytes.
-c <number> [MaxTran]  Limit the number of transactions to be served at any one time.  This may be bounded by the terms of your license configuration.
-d <level> [Debug]  Turn on diagnostic output.  Levels above 1 will produce copious output and degrade performance.
-e <seconds> [Expire]  Change the default expire time for stalled transfers.  Longer values may be useful on highly unreliable networks.
-f <config> Read the given configuration file instead of the defaults.  hgserver will ignore all configuration files if you specify: -f ""
-h <address:port> [Host]  Sets the default HTTP server to be used if the client does not specify.
-i Windows Only.  Self install as a Windows Service.  hgserver will copy itself to %SystemRoot%\system32 and operate with the values given for relevant command line options.  If an hgserver service is already running, it will be shutdown and replaced.  The newly installed service will be started automatically.
-k <kilobytes> [MaxRate]  Limit bandwidth in kilobytes per second.
-l <logfile> [LogFile]  Append diagnostic output to the named file path.
-L <rtt>[:<rate>] [Latency]  Advise MTP/IP of operation on a path with a high latency (over 500ms).  See the "Latency" configuration variable below.
-n <address> [Interface]  Listen on the given network interface.
-p <port> [Port]  Change the UDP port number used to listen for requests.  Use this option if there is a port conflict or you wish to take advantage of another UDP port that is already open in your firewall.
-R Modify or remove license code registration.
-u Windows Only.  Uninstall Windows Service.  The application will unregister the current hgserver and delete its binary from %SystemRoot%\system32.
-v Display version information and exit.