Waiting for Monaca Debugger connecting to apipa adress
-
Hi,
Whe I start:monaca debug
from Local Toolkit it says:
Waiting for Monaca Debugger connecting to 169.254.44.238:8001
My correct address is 192.168.178.107, and I can use LAN and Internet resources without problems.
How can I tell the debugger to listen to my IP address?
My firewall is off, my smartphone says it has found a PC on the LAN but it runs on timeout.What can I do?
Cheers!
-
Do you have Node installed on your system? If you do, try running this program:
const os = require('os'); const nif = os.networkInterfaces(); console.log(JSON.stringify(nif, null, 2));
From the program output, look for the first object with
"family": "IPv4"
and"internal": false
. This is the address that Monaca Debugger will use.I’m guessing that both
192.168.178.107
and169.254.44.238
appear in your output and both are non-internal and IPv4, and that169.254.44.238
appears first.(By the way, I figured out this behaviour by looking at the Monaca CLI source code. It looks like this is the function that determines the IP address that Monaca Debugger will use: https://github.com/monaca/monaca-lib/blob/766ace80f1245ad7142d1608ca18f1b4e4cfa658/src/localkit.js#L248)