How to set the IP address of Phonegap Developer application

I am working with the Phonegap Developer App to download my application to devices for testing. When I launch the phone screen saver on the command line, I get the following:

[phonegap] starting the application server ... [phonegap] listening 192.168.1.210haps000 [PhoneGap] [phonegap] ctrl-c to stop the server [PhoneGap]

We are ordered to enter 192.168.1.210haps000 into the Phonegap developer application to download the application on different devices.

How can you adjust the value of 192.168.1.210haps000?

+5
source share
4 answers

This is the IP address of your LAN created using DHCP (Dynamic Host Configuration Protocol). You can configure it manually. Go to "Control Panel \ Network and Internet \ Network Connections." Follow the image below. Select your connection

Select Internet Protocol Version 4

Set Your favorite IP Address

Caution: Your Internet connection will be lost to set your DNS and / or default gateway.

0
source

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.

+1
source

because you have multiple network connections (possibly virtual ones like VMWare). then go to Control Panel / Network and Internet / Network Connections and delete (or delete) all other connections.
he must solve your problem

0
source

NOTE. . This does not apply specifically to this problem, but for those who end up here because you are having problems connecting to the application at a hosted address using the PhoneGap developer application. provide the information below

Since there are not many SO issues related to this, at least directly with viable solutions, to save time more time, since the problems are intertwined at a basic level, the following is a good guide to solve the connection problems between PhoneGap Desktop and PhoneGap developer application (found link via GitHub Issues ):

PhoneGap Developer Application Cannot Download From Server

0
source

Source: https://habr.com/ru/post/1204736/


All Articles