marak / natman Goto Github PK
View Code? Open in Web Editor NEWForwards external public ports to internal ports without router access.
Forwards external public ports to internal ports without router access.
Hangs on attempting to connect
Nathaniels-iMac:moviebox-web Nathaniel$ sudo natman open 1337
info: Creating NAT...
warn: Using gateway: 172.26.0.254
help: You can manually specify a gateway with -g argument
warn: Attempting to connect...
I was unable to find this Github repo on the npm page. Should there be a link to this Github repo from there?
I get an error that the address is in use. I can't see how it would be on my local machine, though.
/usr/local/share/npm/bin/natman -> /usr/local/share/npm/lib/node_modules/natman/bin/natman
[email protected] /usr/local/share/npm/lib/node_modules/natman
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
╭─@Jasons-MacBook-Air.local ~/node_modules ‹ruby-1.9.3›
╰─ natman open 22 8000
info: Creating NAT...
warn: Using gateway: 10.0.1.1
help: You can manually specify a gateway with -g argument
warn: Attempting to connect...
events.js:71
throw arguments[1]; // Unhandled 'error' event
^
Error: bind EADDRINUSE
at errnoException (dgram.js:356:11)
at Socket.bind (dgram.js:123:15)
at lookup (dgram.js:49:12)
at UDP.lookup4 [as lookup] (dgram.js:59:10)
at Socket.bind (dgram.js:120:16)
at new Client (/usr/local/share/npm/lib/node_modules/natman/node_modules/nat-pmp/index.js:78:15)
at Object.exports.connect (/usr/local/share/npm/lib/node_modules/natman/node_modules/nat-pmp/index.js:55:10)
at new exports.Nat (/usr/local/share/npm/lib/node_modules/natman/lib/natman.js:12:17)
at Object.natman.createNat (/usr/local/share/npm/lib/node_modules/natman/lib/natman.js:24:13)
at app.commands.open (/usr/local/share/npm/lib/node_modules/natman/bin/natman:116:19)
╭─@Jasons-MacBook-Air.local ~/node_modules ‹ruby-1.9.3›
╰─ natman open 22 9987 1 ↵
info: Creating NAT...
warn: Using gateway: 10.0.1.1
help: You can manually specify a gateway with -g argument
warn: Attempting to connect...
events.js:71
throw arguments[1]; // Unhandled 'error' event
^
Error: bind EADDRINUSE
at errnoException (dgram.js:356:11)
at Socket.bind (dgram.js:123:15)
at lookup (dgram.js:49:12)
at UDP.lookup4 [as lookup] (dgram.js:59:10)
at Socket.bind (dgram.js:120:16)
at new Client (/usr/local/share/npm/lib/node_modules/natman/node_modules/nat-pmp/index.js:78:15)
at Object.exports.connect (/usr/local/share/npm/lib/node_modules/natman/node_modules/nat-pmp/index.js:55:10)
at new exports.Nat (/usr/local/share/npm/lib/node_modules/natman/lib/natman.js:12:17)
at Object.natman.createNat (/usr/local/share/npm/lib/node_modules/natman/lib/natman.js:24:13)
at app.commands.open (/usr/local/share/npm/lib/node_modules/natman/bin/natman:116:19)
╭─@Jasons-MacBook-Air.local ~/node_modules ‹ruby-1.9.3›
╰─ lsof -i | grep LISTEN 1 ↵
postgres 272 jasongarber 5u IPv6 0x4779b6c855439443 0t0 TCP localhost:postgresql (LISTEN)
postgres 272 jasongarber 6u IPv4 0x4779b6c85802bbb3 0t0 TCP localhost:postgresql (LISTEN)
postgres 272 jasongarber 7u IPv6 0x4779b6c8581f0fe3 0t0 TCP localhost:postgresql (LISTEN)
mongod 274 jasongarber 6u IPv4 0x4779b6c85446279b 0t0 TCP localhost:28017 (LISTEN)
mongod 274 jasongarber 7u IPv4 0x4779b6c85802dfcb 0t0 TCP localhost:27017 (LISTEN)
memcached 275 jasongarber 18u IPv6 0x4779b6c855439823 0t0 TCP localhost:11211 (LISTEN)
memcached 275 jasongarber 19u IPv4 0x4779b6c854462ed3 0t0 TCP localhost:11211 (LISTEN)
node 276 jasongarber 8u IPv4 0x4779b6c858a7da23 0t0 TCP *:20559 (LISTEN)
SpotifyWe 277 jasongarber 6u IPv4 0x4779b6c85d3d515b 0t0 TCP localhost:4370 (LISTEN)
SpotifyWe 277 jasongarber 7u IPv4 0x4779b6c85e4dd79b 0t0 TCP localhost:4380 (LISTEN)
1Password 381 jasongarber 6u IPv4 0x4779b6c85cd9ca23 0t0 TCP localhost:6258 (LISTEN)
1Password 381 jasongarber 7u IPv6 0x4779b6c8581f0443 0t0 TCP localhost:6258 (LISTEN)
mysqld 388 jasongarber 12u IPv6 0x4779b6c8581f0c03 0t0 TCP *:mysql (LISTEN)
Growl 401 jasongarber 4u IPv4 0x4779b6c85802ad43 0t0 TCP localhost:23053 (LISTEN)
Growl 401 jasongarber 5u IPv6 0x4779b6c8581f0823 0t0 TCP localhost:23053 (LISTEN)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.