PC*MILER TCP/IP can be started from a command line or from a batch file. Within the Multi-Version Switch installation, each copy of PC*MILER TCP/IP (pcmsock.exe) has been renamed to reflect the PC*MILER version it is returning mileage and routing information for. The format is pcmsockxx.exe where xx is the PC*MILER version. This enables identification of a particular version within the Windows Task Manager.


Pcmsock.exe takes two parameters, the PC*MILER package and the port number.

  • The PC*MILER package is PC_MILER.  
  • The convention for Port Number Assignment is for PC*MILER versions to use the 8000 range with the last three digits being the version number. For example: For V21.0  the default port is 8210. With both V21.0 and V21.1 installed, the default Ports would be 8210 for V21.0 and 8211 for V21.1.


Installation Tips

  • Easy-to-remember conventions make troubleshooting and maintaining installations easier.
  • There are no hard rules for port assignments. You do need strict agreement between the port number in Pcmmv.ini and the port number that the particular version of pcmsock.exe was started with. For example: Pcmsock20.exe<space>PC_MILER<space>8200 would be the command to start Version 20 PC*MILER TCP/IP.
  • It is best to use a batch file to start the various services. Within the batch file you must change directories to the installation directory of PC*MILER TCP/IP before launching the start command.


NOTE:  If you are using a multiple PC setup, you will need to have a batch file on each PC.