Open harshjv opened 9 years ago
I've run into the same issue, are you able to use any of the other functions within the module?
I can replicate this (same debug output). I've tried it on two different networks.
I'm running the tests, so the posted issue would be the output corresponding to DEBUG=nat-pmp node test/test-external.js
However, none of the tests I've tried work. They all hang indefinitely. Here's the output from test-mapping-udp.js
:
DEBUG=nat-pmp node test/test-mapping-udp.js
hello
nat-pmp creating new Client instance for gateway 192.168.1.254 +0ms
nat-pmp Client#request() [ 1, { public: 3000, private: 3000, type: 'udp' }, [Function] ] +1ms
nat-pmp using default "ttl" value of 7200 +2ms
nat-pmp Client#_next() +1ms
nat-pmp _next: not "listening" yet, cannot send out request yet +0ms
nat-pmp Client#connect() +0ms
nat-pmp on: socket event "listening" +5ms
nat-pmp Client#onlistening() +1ms
nat-pmp Client#_next() +0ms
nat-pmp _next: sending request <Buffer 00 01 00 00 0b b8 0b b8 00 00 1c 20> 192.168.1.254 +0ms
As pointed out in issue #8, I am using index.js of master branch but still, it isn't showing external IP address even with sample code provided in README.md
Here is the debug output, after sending request, it takes forever.