Search code examples
multi-device-hybrid-apps

Specifying the port when debugging under Ripple?


Visual Studio appears to select a port between 4400 and 4444 when running on Ripple. How can I set this port permanently? The problem is that the app I'm working on relies on a SQLite database. When Visual Studio changes the port it effectively starts the application off on a clean slate, so I lose all existing data unless I copy the relevant files from:

C:\Users\user\AppData\Roaming\Microsoft\VisualStudio\MDA\RPL_UserData\Default\databases\http_localhost_44XX

to

C:\Users\user\AppData\Roaming\Microsoft\VisualStudio\MDA\RPL_UserData\Default\databases\http_localhost_44YY

Is there any way to force Visual Studio to use a predefined port? I'm running on Windows 8.1 and building for Android.


Solution

  • Currently you cannot fix the port no for Ripple. Visual Studio randomly picks port no. between 4400 and 4444. This issue will be fixed in next Visual Studio Tools for Apache Cordova update.