Running two VRS

Are you having trouble getting Virtual Radar Server installed and running? If so then this is the place to ask about it.
Post Reply
Posts: 1
Joined: Mon Apr 15, 2013 1:22 pm

Running two VRS

Post by iansuth21 » Mon Apr 22, 2013 2:53 pm

Hi firstly thanks for the great program i love it,i tried to run 2 instances of VRS on the same PC at the same time but got a message saying 1 instance is already running,so is it not possible to run two?,i had installed the 2nd copy to a different folder.

Mtia Ian.S

Posts: 2249
Joined: Fri Feb 17, 2012 3:20 am

Re: Running two VRS

Post by agw » Tue Apr 23, 2013 9:40 am

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

VirtualRadar.exe -workingFolder:<NEW-CONFIG-FOLDER>
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.

Post Reply