I'm working with Phonegap Developer App to load my application on devices for testing. When running phonegap serve in command line, I get the following:
[phonegap] starting app server... [phonegap] listening on 192.168.1.210:3000 [phonegap] [phonegap] ctrl-c to stop the server [phonegap]
We are instructed to enter 192.168.1.210:3000 in the Phonegap Developer App in order to load the application on our different devices.
How can you customize the 192.168.1.210:3000 value?
I had the same problem, I have multiple addresses for various reasons and for phonegap to simply ping an address and call it good wasn't cutting it.
This isn't the most elegant solution, but it works as a fast 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 right before callback(null, localAddress);
Add localAddress = '<yourip>';
Hopefully they might add a command line argument.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With