The reason why it stops you from running two instances is because they would both be sharing the same configuration and listening to the same port. Only one program can listen to a port at once. However, it is possible to run two instances. You only need to install the program once. The steps to follow are:
1. Copy the contents of the configuration folder to another folder. You can find the configuration folder by going to Help | About and clicking the link in the bottom-left.
2. In the new configuration folder edit the WebServerPort entry in InstallerConfiguration.xml, choosing a port number between 1024 and 65535 that nothing else is listening to. 8080 is a common choice.
3. Windows Vista, 7 and 8 will not let user-mode programs use the built-in web server, you need to give them permission. Open a command-prompt in administrator mode (right-click the icon for the command-prompt and choose Run as Administrator) and from the command-prompt type this, replacing 8080 with the port number you chose in step 2:
Code: Select all
http add urlacl url=http://*:8080/VirtualRadar/ sddl=D:(A;;GX;;;WD) listen=yes
4. Close the administrator command prompt and open a normal command prompt. Change to the folder where VRS is installed and type this, replacing <NEW-CONFIG-FOLDER> with the folder you created in (1):
Code: Select all
If your two instances of VRS are both using the database writer plugin then you should not point them to the same BaseStation.sqb file as both of them might try to write new aircraft and flight records for the same aircraft at the same time. If you do then eventually you will get an exception saying that a record couldn't be inserted because it already exists, or that a record is locked.