Objectif Lune joins Upland Software.Learn more >

Back to all How-tos

Connect to localhost with COTG on Windows 10

Original Author: Philippe Fontan

Running Capture OnTheGo (COTG) on Windows 10 is the perfect way to debug or demonstrate a COTG solution since you can have the COTG app, the Connect Workflow and the Connect Designer all running side by side on the same PC (or VM). No need to constantly switch from your computer to your mobile device in order to run each part of the solution. You can also take screenshots easily, which makes documentation so much simpler. However, Windows 10 has built-in restrictions on applications that need to loopback to the same computer and these restrictions apply to COTG when it tries to submit form data to a Workflow instance on the same computer.

In this article, we’ll see how to change those restrictions so that COTG can submit data to Workflow.

Update: now includes a script that does (almost) everything automatically.

Semi-automated procedure

  1. Download this Script zip file.
  2. Unzip the file in a folder somewhere on your machine; this will extract two files to that folder, a script and a batch file.
  3. Right click on the FixCOTGLocalHost.bat file and select Run As Administrator.
  4. If all goes well, you will get a confirmation that the procedure worked as expected. Otherwise, you will get an error message with directions on what to try next. If you can’t get anything to work, try the manual procedure below.

Manual procedure

  1. Install COTG on your Windows 10 system. Sounds obvious, but I’m being thorough…
  2. Download a COTG form and try to submit the data to a Workflow process. By default, this won’t work and you’ll get a message in COTG stating it cannot connect to the destination.
  3. Open Regedit and navigate to HKEY_CURRENT_USER\Software\Classes\Local Settings\Software
  4. Press CTRL-F and search for OnTheGo. You should get something 4. similar to this:cotg 2
  5. On the Left-hand side is the SID for the application (highlighted in gray, above). Right click on it and select
    Copy Key Name.
  6. Open a Command Prompt Window in Administrator mode.
    Type the following command:
    CheckNetIsolation LoopbackExempt -a
    where you replace the red value with your own SID value you just copied. Then press Enter. The command will emphatically (!) reply with : OK.
  7. Back in COTG, try submitting your data again: it should now work.
  8. The change is permanent, so you only have to perform this procedure once.

That’s all folks!

Leave a Reply

Your email address will not be published. Required fields are marked *