All Projects → txthinking → Mr2.js

txthinking / Mr2.js

Javascript client with built-in free server of mr2 can help you expose local server to external network.

Programming Languages

javascript
184084 projects - #8 most used programming language

Mr2.js

License: GPL v3 EN

Deprecated! Please use https://github.com/txthinking/mr2 instead

Mr2.js is javascript client with built-in free server of mr2 can help you expose local server to external network.

Install

$ npm install -g @txthinking/mr2

Usage

$ mr2 -c 127.0.0.1:1234

Advanced usage

Built-in server

# expose your local server 127.0.0.1:1234
$ mr2 -c 127.0.0.1:1234
# expose your local directory /path/to/www
$ mr2 -d /path/to/www
# Specify a subdomain
$ mr2 -D xxx -c 127.0.0.1:1234
# View built-in server list
$ mr2 -l
# Specify a built-in server
$ mr2 -s us.mr2.dev:2222 -c 127.0.0.1:1234
# Specify a built-in server and subdomain
$ mr2 -s us.mr2.dev:2222 -D xxx -c 127.0.0.1:1234

Customize mr2 server

# Local server is 127.0.0.1:1234, expect to expose: server_address:5678
$ mr2 -s server_address:port -p password -P 5678 -c 127.0.0.1:1234
# Local web root is /path/to/www, expect to expose: server_address:5678
$ mr2 -s server_address:port -p password -P 5678 -d /path/to/www

License

Licensed under The GPLv3 License

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].