I had the same problem: I have several addresses for various reasons, and for a phone call, just ping the address and call it good, it doesnβt cut it.
This is not the most elegant solution, but it works like a quick hack.
Edit the file <path to npm install>\npm\node_modules\phonegap\node_modules\connect-phonegap\lib\util\ip.js
At the end of the file before callback(null, localAddress);
Add localAddress = '<yourip>';
Hope they can add a command line argument.
source share